CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Header files not found

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2006, 13:44
Default I have been trying to compile
  #1
New Member
 
Matthew Shapiro
Join Date: Mar 2009
Posts: 3
Rep Power: 17
kalldrexx is on a distinguished road
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!
kalldrexx is offline   Reply With Quote

Old   July 7, 2006, 13:53
Default Have a look through the forum
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   July 10, 2006, 09:25
Default Ah I missed that section of th
  #3
New Member
 
Matthew Shapiro
Join Date: Mar 2009
Posts: 3
Rep Power: 17
kalldrexx is on a distinguished road
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?
kalldrexx is offline   Reply With Quote

Old   July 11, 2006, 12:48
Default Best comment out that section
  #4
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Best comment out that section (printStack) in error.C - it is not really essential.

Once all is working see what you need to include.
mattijs is offline   Reply With Quote

Old   July 11, 2006, 13:44
Default Cool. It semes to be continui
  #5
New Member
 
Matthew Shapiro
Join Date: Mar 2009
Posts: 3
Rep Power: 17
kalldrexx is on a distinguished road
Cool. It semes to be continuing to compile. Thanks :D
kalldrexx is offline   Reply With Quote

Old   September 13, 2022, 07:57
Default
  #6
Dcn
New Member
 
Join Date: Aug 2022
Posts: 16
Rep Power: 3
Dcn is on a distinguished road
Quote:
Originally Posted by hjasak View Post
Have a look through the forum for demangle - all explained.

For parallel compilation add

setenv WM_NCOMPPROCS 8

to your environment.

Enjoy,

Hrv
Hi hjasak
can you kindly provide the forum link ,i did not get the forum you have mentioned , Thank you
Dcn is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
no libudf files found after building it pilli4u FLUENT 2 March 22, 2007 15:08
Header files shuo OpenFOAM Running, Solving & CFD 1 September 10, 2006 03:38
how to add header file shanu FLUENT 1 February 14, 2006 09:00
uhf.h header file giridhar_tech FLUENT 0 February 7, 2006 07:51


All times are GMT -4. The time now is 18:07.