CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 2.0.x libscotch issues (http://www.cfd-online.com/Forums/openfoam-installation/90393-openfoam-2-0-x-libscotch-issues.html)

gfilip July 8, 2011 11:24

OpenFOAM 2.0.x libscotch issues
 
1 Attachment(s)
Hello

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:

Code:

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

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

Code:

/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 http://www.cfd-online.com/Forums/ope...tml#post315198 #32)!

What did you do or change to cause this error?

Best regards,
Bruno

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.


Thanks

Greg

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:
Code:

foam
wcleanAll
wcleanLnIncludeAll

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

./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!
Bruno

gfilip July 11, 2011 11:23

Bruno,

Thank you very much, that did the trick!


All times are GMT -4. The time now is 09:32.