I have been trying to compile
I have been trying to compile OpenFOAM quit a bit for the past week and have yet to succeed on any of our systems (Solaris and Linux). I have followed the directions to the T from the wiki page (I copy/pasted most of the commands it told me to use).
At first I was confused as the error that it showed was the "/usr/bin/ld: cannot find -lOpenFOAM" Error. After doing some reading I saw that it is actually being caused by a previous error in compiling. After putting all the output into a file I found the problem:
SOURCE=global/global.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -DWM_PROJECT_VERSION='"'1.3'"' -I/home/ssd/OpenFOAM/OpenFOAM-1.3/src/zlib-1.2.1 -I/home/ssd/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/global.o
In file included from global/global.C:61:
/home/ssd/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:41:22: error: demangle.h: No such file or directory
/home/ssd/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C: In static member function ‚static void Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&)‚:
/home/ssd/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:193: error: ‚auto_demangling‚ was not declared in this scope
/home/ssd/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:194: error: ‚cplus_demangle‚ was not declared in this scope
make: *** [Make/linuxGcc4DPOpt/global.o] Error 1
This happns both on my Solaris and my Fedora core systems, both instances followed the compiling instructions on the wiki exactly. If anyone can help I would be very appreciative.
Also one unrelated last thing, is there any way to compile OpenFoam using more then one processor? I tried to alias make="make -j8" but it didn't work.
Have a look through the forum
Have a look through the forum for demangle - all explained.
For parallel compilation add
setenv WM_NCOMPPROCS 8
to your environment.
Ah I missed that section of th
Ah I missed that section of the instructions. So I followed the binutils sections exactly and I now get this error:
/home/ssd/OpenFOAM/linux/binutils-2.15/include/demangle.h:460: error: expected ‚,‚ or ‚...‚ before ‚typename‚
Best comment out that section
Best comment out that section (printStack) in error.C - it is not really essential.
Once all is working see what you need to include.
Cool. It semes to be continui
Cool. It semes to be continuing to compile. Thanks :D
|All times are GMT -4. The time now is 16:52.|