CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   OpenFOAM 2.0.x libscotch issues (

gfilip July 8, 2011 11:24

OpenFOAM 2.0.x libscotch issues
1 Attachment(s)

I am trying to compile 2.0.x and I believe I am having issues with decomposition libraries. Solvers and such compile fine, but snappyHexMesh for example does not. I am attaching a log of Allmake which seems to successfully make the necessary ThirdParty libs.

The first error I locate in the log:


+ wmake libso scotchDecomp
g++: no input files
make: *** [/l/gfilip/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/dummy/] Error 1

and so on, for various decomposition tools. Eventually when sHM tries to compile, it fails with


/usr/bin/ld: cannot find -lptscotchDecomp
collect2: ld returned 1 exit status
make[3]: *** [/l/gfilip/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/bin/snappyHexMesh] Error 1

Any ideas?

wyldckat July 9, 2011 05:27

Greetings Grzegorz,

I don't understand. Everything was fine in the previous build you posted in the other thread (this post #32)!

What did you do or change to cause this error?

Best regards,

gfilip July 10, 2011 00:46

Hello Bruno,

In the previous post, I had both warnings and ld errors. After a git pull, the warnings went away but these errors posted above remained. Just to be clear, when I posted last, most applications did not work outside of checkMesh and some other utilities. Snappy definitely did not work at that time either. The git pull resolved the solver and most application issues, but sHM is still not compiling.



wyldckat July 10, 2011 07:04

Hi Greg,

OK, now I'm getting a better notion of what happened. With the git version sometimes we have to start the build process from scratch once again. When too many changes occur, the wmake build system is unable to cope with the changes and gets confused.

So, to re-start the building process, here's what you do:


This will clean up most of the problems. Then you can start building process:

./Allwmake > make.log 2>&1
There are ways to only clean some things and not everything, but in this case I guess it's best to do a good clean up first.

Best regards and good luck!

gfilip July 11, 2011 11:23


Thank you very much, that did the trick!

All times are GMT -4. The time now is 00:29.