|
[Sponsors] |
July 7, 2006, 14:44 |
I have been trying to compile
|
#1 |
New Member
Matthew Shapiro
Join Date: Mar 2009
Posts: 3
Rep Power: 17 |
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_DIR=global 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:stream&)â: /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. Thanks! |
|
July 7, 2006, 14:53 |
Have a look through the forum
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Have a look through the forum for demangle - all explained.
For parallel compilation add setenv WM_NCOMPPROCS 8 to your environment. Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
July 10, 2006, 10:25 |
Ah I missed that section of th
|
#3 |
New Member
Matthew Shapiro
Join Date: Mar 2009
Posts: 3
Rep Power: 17 |
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â Any ideas? |
|
July 11, 2006, 13:48 |
Best comment out that section
|
#4 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
Best comment out that section (printStack) in error.C - it is not really essential.
Once all is working see what you need to include. |
|
July 11, 2006, 14:44 |
Cool. It semes to be continui
|
#5 |
New Member
Matthew Shapiro
Join Date: Mar 2009
Posts: 3
Rep Power: 17 |
Cool. It semes to be continuing to compile. Thanks :D
|
|
September 13, 2022, 08:57 |
|
#6 |
New Member
Join Date: Aug 2022
Posts: 19
Rep Power: 4 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
no libudf files found after building it | pilli4u | FLUENT | 2 | March 22, 2007 16:08 |
Header files | shuo | OpenFOAM Running, Solving & CFD | 1 | September 10, 2006 04:38 |
how to add header file | shanu | FLUENT | 1 | February 14, 2006 10:00 |
uhf.h header file | giridhar_tech | FLUENT | 0 | February 7, 2006 08:51 |