CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Compiling an application with OpenFOAM-1.6-ext ubuntu binaries

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By ZKM

Reply
 
LinkBack Thread Tools Display Modes
Old   June 4, 2011, 13:50
Default Compiling an application with OpenFOAM-1.6-ext ubuntu binaries
  #1
ZKM
New Member
 
Join Date: Mar 2010
Posts: 12
Rep Power: 7
ZKM is on a distinguished road
I use openFoam-1.6-ext on ubuntu. I installed it using binaries and development packages from the repository. I am trying to compile a new application and I get this error:
Code:
/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/label.H:39:19: error: climits: No such file or directory
/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/label.H:40:19: error: cstdlib: No such file or directory
In file included from /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/label.H:130,
                 from /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/labelList.H:36,
                 from /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/Pstream.H:44,
                 from /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/OPstream.H:36,
                 from /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/parRun.H:36,
                 from /usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvCFD.H:4,
I think I have all required packages installed and my /usr/include/c++/4.4 contains both climits and cstdlib. What is missing here?

Thanks in advance
ZKM is offline   Reply With Quote

Old   June 5, 2011, 22:28
Default
  #2
ZKM
New Member
 
Join Date: Mar 2010
Posts: 12
Rep Power: 7
ZKM is on a distinguished road
Hello,

OK. I solved this problem by explicitly pointing gcc to /usr/include/c++/4.4 using -I. It seems that my system cannot locate this default path.

Now I receive this error:
Code:
cc1: error: unrecognised debug output level "nu"
make: *** [Make/linux64GccDPOpt/xFoam.o] Error 1
make: *** Waiting for unfinished jobs....
cc1plus: error: unrecognised debug output level "nu"
make: *** [Make/linux64GccDPOpt/tractionDisplacementFvPatchVectorField.o] Error 1
Any Ideas?
ZKM is offline   Reply With Quote

Old   June 6, 2011, 12:33
Default
  #3
ZKM
New Member
 
Join Date: Mar 2010
Posts: 12
Rep Power: 7
ZKM is on a distinguished road
The error is solved by a soft link trick to the required include. Now I pass that part but I get this typical error:

Code:
/usr/include/c++/4.4/cstddef:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
/usr/include/c++/4.4/cstddef:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
.
.
.
/usr/include/c++/4.4/cstdlib:102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
/usr/include/c++/4.4/cstdlib:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
/usr/include/c++/4.4/cstdlib:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
/usr/include/c++/4.4/cstdlib:106: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
/usr/include/c++/4.4/cstdlib:107: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
/usr/include/c++/4.4/cstdlib:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
...
Thoughts?
ZKM is offline   Reply With Quote

Old   June 6, 2011, 13:08
Default Solved
  #4
ZKM
New Member
 
Join Date: Mar 2010
Posts: 12
Rep Power: 7
ZKM is on a distinguished road
Caused by a stupid mistake. I used .c instead of .C as the extension of my main file.
I leave this note here for future reference of others and myself

Good luck
ZKM
Jonathan likes this.
ZKM is offline   Reply With Quote

Old   March 24, 2014, 07:05
Default
  #5
Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 51
Rep Power: 8
sita is on a distinguished road
Hi ZKM,

Sorry, you posted this already some years ago, but what did you mean by "a soft link trick to the required include"?
I have a similar problem when trying to compile an application with wmake: gcc can't find stuff, because for some reason, on my system it's not located in the default search path. I tried to point gcc to the correct path by adding "-I <correct-path>" to Make/options. This seems to work, but it gives me (nearly) exactly the same error you got:

cc1plus: error: unrecognised debug output level "nu"

So I'm really curious to know how you solved this, can you explain?

Thanks in advance,
Sita
sita is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam 1.7.1 in Ubuntu 10.04 won't start working Leech OpenFOAM Installation 8 August 10, 2014 20:42
OpenFOAM on non-English Ubuntu distribution fabian_roesler OpenFOAM 3 January 11, 2010 08:16
OpenFOAM 1.6 installation in Ubuntu 9.1 jsm OpenFOAM Installation 4 January 3, 2010 23:53
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 8 March 12, 2008 05:58


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