Third-Party-v2512 Scotch 6.1.0 fails to build on Ubuntu 25.10
When building OpenFOAM-v2512 (I haven't tested other versions) the compilation of the Third-Party scotch 6.1.0 fails with the following error:
```bash
Skipping pt-scotch - no \<scotch.h\> found
---------------------------------------------------
Optional component (SCOTCH) had build issues
OpenFOAM will nonetheless remain largely functional
---------------------------------------------------
```
My system:
- Ubuntu 25.10
- gcc: 15.2.0
- cmake: 3.31.6
- openmpi: 5.0.8-8ubuntu1
- flex: 2.6.4
- m4: 1.4.19
Compilation using ./Allwmake -j -l -s
According to the [Requirements](https://gitlab.com/openfoam/core/openfoam/blob/develop/doc/Requirements.md), flex 2.6.2, 2.6.3 fail to build scotch, however, I wonder if it is also the same issue with 2.6.4? I attached the section of the build log below.[scotch_log](/uploads/7a6f7f51caa5e5ba54177ca6d83aee6a/scotch_log)
### EDIT:
I have reproduced the same error using a Docker build. I attached the Dockerfile I used.
[Dockerfile](/uploads/d0a083e235894bc6a9f7862e398ba5b4/Dockerfile)
issue