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

Include file not found while compiling new solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2011, 14:10
Default Include file not found while compiling new solver
  #1
New Member
 
Luca Bertocchi
Join Date: Apr 2011
Posts: 3
Rep Power: 15
Luca B85 is on a distinguished road
Hi, I'm trying to compile mine custom solver to a cluster (on my laptop it compiles and works fine).

Some errors occurs and I'm not able to sort it out... Here I post the output:

SOURCE=rhopUCavitatingDyMFoamDowson.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -ggdb3 -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/dynamicFvMesh/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/dynamicMesh/lnInclude -IcompressibilityModels/compressibilityModel -IlnInclude -I. -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OSspecific//lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/rhopUCavitatingDyMFoamDowson.o

In file included from /home/lb711/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvCFD.H:6,
from rhopUCavitatingDyMFoamDowson.C:32:
/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Time.H:47:21: error: cpuTime.H: No such file or directory

In file included from /home/lb711/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvCFD.H:20,
from rhopUCavitatingDyMFoamDowson.C:32:
/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/argList.H:83:20: error: sigFpe.H: No such file or directory

/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/argList.H:84:20: error: sigInt.H: No such file or directory


And so on....
Could it be possibly and error on the nineth line:
/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OSspecific//lnInclude

where, maybe, it should be
/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude
?
I think so, but I don't know how to change the path, can anyone help me?
Thank you!
Luca
Luca B85 is offline   Reply With Quote

Old   September 6, 2011, 15:27
Default
  #2
New Member
 
Luca Bertocchi
Join Date: Apr 2011
Posts: 3
Rep Power: 15
Luca B85 is on a distinguished road
I fixed it by changing properly the Make/options file. But now there is another problem:

g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -ggdb3 -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/dynamicFvMesh/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/dynamicMesh/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -IcompressibilityModels/compressibilityModel -IlnInclude -I. -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OSspecific//lnInclude -fPIC Make/linux64GccDPOpt/rhopUCavitatingDyMFoamDowson.o Make/linux64GccDPOpt/compressibilityModel.o Make/linux64GccDPOpt/newCompressibilityModel.o Make/linux64GccDPOpt/linear.o Make/linux64GccDPOpt/Wallis.o Make/linux64GccDPOpt/Chung.o -L/home/lb711/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt \
-ldynamicFvMesh -ldynamicMesh -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/lb711/OpenFOAM/lb711-1.6/applications/bin/linux64GccDPOpt/rhopUCavitatingDyMFoamDowson
/usr/bin/ld: cannot find -liberty
collect2: ld returned 1 exit status


What is -liberty?
Thanks!
Luca
Luca B85 is offline   Reply With Quote

Old   September 6, 2011, 16:04
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Luca and welcome to the forum!

"-liberty" indicates that "libiberty.so" is missing. Usually this is part of the binutils package. The desired package in Ubuntu is named "binutils-dev"; in openSUSE might be "binutils-devel", I can't remember...

Suggestion: when in doubt, search the forum!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 8, 2011, 13:26
Default
  #4
New Member
 
Luca Bertocchi
Join Date: Apr 2011
Posts: 3
Rep Power: 15
Luca B85 is on a distinguished road
Thank you, I solved this problem!
now, obviously I have a lot of other error messages... as usual!
I'm looking forward to fix they using the forum and google...

Luca
Luca B85 is offline   Reply With Quote

Reply

Tags
compile solver


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
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 07:29
OpenFoam install script Error during paraFoam installation SePe OpenFOAM Installation 10 June 19, 2010 16:15
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
OpenFOAM Install Script ljsh OpenFOAM Installation 82 October 12, 2009 12:47
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 11:46


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