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

OpenFOAM 1.6 Compiling Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 21, 2009, 07:04
Default OpenFOAM 1.6 Compiling Error
  #1
New Member
 
Austin Kochs
Join Date: Dec 2009
Posts: 6
Rep Power: 16
AustinK is on a distinguished road
This is my first experience with OpenFOAM and currently I am having a quite a problem with it. I have been able to work my way around the bashrc and settings.sh files, however after about 30 minutes or so into the compile I start getting errors: "ld: can't find specie". (Just so you know, I am using the Intel C Compiler.) This is the part where it begins to compile adiabaticFlameT.

(I have included a copy of the build errors the compile spits out when it starts having problems.)

If I have read it correctly, then it is having problems with linking the folder $HOME/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/specie/lnInclude as -lspecie. I have no experience with dealing with an error in the compiler (at least, I think it is in the compiler). Anyone's helps would be greatly appreciated.

Thanks,

Austin
Attached Files
File Type: txt build-errors.txt (7.6 KB, 29 views)
AustinK is offline   Reply With Quote

Old   December 22, 2009, 08:49
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi Austin,

Which operating system are you using?

When you execute './Allwmake' in the '$WM_PROJECT_DIR', what is the first error you get?

I am guessing there might be an earlier error.

Or just try each step in Allwmake and check for errors:

first:
(cd wmake/src && make)

then:
(cd $WM_THIRD_PARTY_DIR && ./Allwmake)

then:
(cd src && ./Allwmake)

then if no errors then this should be fine:
(cd applications && ./Allwmake)


Hopefully it helps,
Philip C
bigphil is offline   Reply With Quote

Old   January 6, 2010, 09:06
Default
  #3
New Member
 
Austin Kochs
Join Date: Dec 2009
Posts: 6
Rep Power: 16
AustinK is on a distinguished road
Philip,

Thanks for your response. I am sorry for not getting back to you for a while.

The problem was actually a matter of modules. The first build of OpenFOAM, whose bashrc and settings.sh files I stole the configuration from, had used the mvapich-1.1-intel module while the mpi module was loaded. In the new setup, I just loaded the mvapich-1.1-intel module and that worked. Doh. So far I've gotten no errors and hopefully it'll all work out.

Again, thanks for your help. If you celebrate it, then I hope that you had a merry Christmas and a happy New Year!

Sincerely,

Austin
AustinK is offline   Reply With Quote

Old   January 6, 2010, 09:18
Default
  #4
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Austin,

No problem. Good luck and a merry christmas and happy new year to you.

Philip
bigphil is offline   Reply With Quote

Old   January 7, 2010, 08:17
Default
  #5
New Member
 
Austin Kochs
Join Date: Dec 2009
Posts: 6
Rep Power: 16
AustinK is on a distinguished road
Well, might as well not change the title because I ran into more problems.

It started compiling and all was fine and dandy as it ran for about an hour to an hour and a half error free. After this time of it working and liking me, I started getting some errors about "libPstream.so: undefined reference to [*]".

It seems to me like the entire libPstream.so file didn't compile correctly. As a test, I tried to delete libPstream and OpenFOAM hasn't recognized that it needs to recompile it and just keeps spitting out the same error. Is there any way that I can compile just libPstream.so?

Also, if you have an answer as to why libPstream is giving a bunch of undefined references, I would appreciate it. I have attached a file with the exact list of "undefined references" that I was getting yelled at about.

Thanks,

Austin
Attached Files
File Type: txt libPstream.txt (3.4 KB, 13 views)
AustinK is offline   Reply With Quote

Old   January 7, 2010, 10:02
Default
  #6
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Austin,

if you go to the directory $WM_PROJECT_DIR/src/Pstream,
and then try ./Allwmake, does it get any errors?

I think there is probably errors earlier than the error you get about libPstream, if you could
./Allwmake > logAllwmake 2>&1 &
in the $WM_PROJECT_DIR directory,
and then attach the logAllwmake file here when it has finished,
then I'll have a look through it and see can I find what's wrong.


Philip
bigphil is offline   Reply With Quote

Old   January 11, 2010, 08:35
Default
  #7
New Member
 
Austin Kochs
Join Date: Dec 2009
Posts: 6
Rep Power: 16
AustinK is on a distinguished road
Philip,

Due to problems with the Intel compilers, and the success of the included GNU compilers, my site is going to drop the compilation that I have been working on and instead move forward using the GNU compilers. Thanks for all your help on this mater and, if I have any more problems with this new setup I will be sure to ask you.

Sincerely,

Austin

P.S. Just so I can get a better idea as to what went wrong with libPstrean, here is a log file from when I tried to compile it directly.
Attached Files
File Type: txt Pstream.txt (1.4 KB, 11 views)
AustinK is offline   Reply With Quote

Old   January 11, 2010, 08:48
Default
  #8
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Austin,

Hopefully you will have more success with the GNU compilers.

I am not sure why the Pstream compilation cannot find some header files, but I suspect that it is due to an earlier error.

If you were to try and get this compilation to work, I would recommend making sure you downloaded the source files properly from the OpenFOAM homepage, and then follow each step in my first post (http://www.cfd-online.com/Forums/ope...tml#post240745).

Good luck with your new method,

Philip C
bigphil is offline   Reply With Quote

Old   January 20, 2010, 06:57
Default Another compiling errors with OpenFOAM
  #9
New Member
 
Andreas Ho
Join Date: Jan 2010
Posts: 4
Rep Power: 16
andreho is on a distinguished road
Hej OpenFoam users,

I just installed OpenFoam 1.6 including all packages; however compiling doesn't work:


SOURCE=hoard-371/src/libhoard.cpp ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -DNDEBUG -D_REENTRANT=1 -IlnInclude -I. -I/home/hoelzer/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/hoelzer/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/libhoard.o
In file included from /home/hoelzer/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/bin/../lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/i686-pc-linux-gnu/bits/c++config.h:40,
from /home/hoelzer/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/bin/../lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/cstddef:48,
from /home/hoelzer/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/bin/../lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/new:44,
from hoard-371/src/libhoard.cpp:33:
/home/hoelzer/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/bin/../lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/i686-pc-linux-gnu/bits/os_defines.h:44:22: error: features.h: Datei oder Verzeichnis nicht gefunden
In file included from hoard-371/src/libhoard.cpp:92:
lnInclude/ansiwrapper.h:6:20: error: stdlib.h: Datei oder Verzeichnis nicht gefunden ....................................


and so on.
Does anybody know this problem? Is the installation of gcc uncomplete? Must I configure gcc in any way?

I would be so glad if anybody could tell me a solution.

Thanks a lot.
andreho is offline   Reply With Quote

Old   January 20, 2010, 08:27
Default
  #10
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi,


A few questions first just to clarify things a bit:

Which operating system are you using?

Is it a 32bit or a 64bit installation?

Did you download OpenFOAM from the OpenFOAM homepage:
http://www.opencfd.co.uk/openfoam/download.html

Did you download both the 'OpenFOAM software - source pack' and the 'Third-party software - source pack'?


OK, to compile OpenFOAM, I assume you followed the steps above.
If you './Allwmake > logAllwmake 2>&1 &' in the ThirdParty directory,
and then attach logAllwmake here.

Then I can see the first error and see if we can fix it,

Philip C
bigphil is offline   Reply With Quote

Old   January 20, 2010, 09:13
Default
  #11
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
May I could give a little help. I tried to compile OpenFoam 1.6 with the icc but this didn't work. But after some discussion inside this forum (thread could be viewed here: http://http://www.cfd-online.com/For...1-6-x-icc.html) mattijs put a fixed version of OpenFoam 1.6 into the GIT repository. So please go to the homepage of OpenFoam and follow the instructions for downloading the GIT version called OpenFoam 1.6.x. This version compiles without any serious errors with the intel icc 11.1 compiler. You will have no success if you try to compile the 1.6 version with the icc.

Fabian
fs82 is offline   Reply With Quote

Old   February 2, 2010, 10:52
Lightbulb
  #12
New Member
 
Joaquín J. Correa
Join Date: Jan 2010
Posts: 18
Rep Power: 16
Pytthon is on a distinguished road
Can anyone help me with this issue in this thread, x86_64

http://www.cfd-online.com/Forums/ope...entos-4-x.html
Pytthon is offline   Reply With Quote

Old   February 2, 2010, 11:11
Default
  #13
New Member
 
Andreas Ho
Join Date: Jan 2010
Posts: 4
Rep Power: 16
andreho is on a distinguished road
Hi Phil,

thanks a lot for your answer. I used OpenSUSE 11.2. Now I installed OpenSUSE 11.1 and everything works fine.

Cheers.
andreho is offline   Reply With Quote

Old   February 2, 2010, 11:19
Default
  #14
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
andreho,

that's great.

Philip
bigphil is offline   Reply With Quote

Old   February 18, 2010, 12:41
Exclamation
  #15
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Thanks Fabian for those hints.

As a note for those who use a version lower than 11.1, I tried to compile OF 1.6.x with (icc (ICC) 10.1 20080801) and it just seems to bring up too many errors and warnings for a code newbie like me.

Even if Intel is apparently 10% faster on my cluster I will switch back to Gcc and hope for better luck!

Cheers,

-Louis
louisgag is offline   Reply With Quote

Old   April 2, 2010, 07:42
Default
  #16
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 16
rahulrp is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Hi Austin,

Which operating system are you using?

When you execute './Allwmake' in the '$WM_PROJECT_DIR', what is the first error you get?

I am guessing there might be an earlier error.

Or just try each step in Allwmake and check for errors:

first:
(cd wmake/src && make)

then:
(cd $WM_THIRD_PARTY_DIR && ./Allwmake)

then:
(cd src && ./Allwmake)

then if no errors then this should be fine:
(cd applications && ./Allwmake)


Hopefully it helps,
Philip C
Hi sir
I am Rahul. I am new in OpenFoam and Ubuntu too. I follwed the way u described as above for compilation. After hitting (cd applications && ./Allwmake) in terminal some msg i got which is attached herwith. Actually the icoFoam is running fine but chrMultiRegionFoam is not running. so what to do. please help me in regard.
Thank you.
Attached Files
File Type: zip compilation message.zip (1.7 KB, 2 views)
rahulrp is offline   Reply With Quote

Old   April 2, 2010, 10:37
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
Hello again Rahul,

The log file you attached doesn't indicate any errors, so all OpenFOAM applications should work.

Additionally, I've already answered to the real reason why you aren't getting chtMultiRegionFoam to work, on the other thread you posted previously, namely --> this one <--.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Tags
compiling issues, icc, openfoam 1.6


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
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
Compilation error for openfoam - 1.6 misakagan OpenFOAM 19 February 21, 2012 10:36
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 18:54
Error occurs when compiling OpenFoam 1.6.x with Icc fs82 OpenFOAM Bugs 5 January 20, 2010 03:08
[Netgen] Compiling Netgen on Fedora Core is driving me crazy jango OpenFOAM Meshing & Mesh Conversion 3 November 9, 2007 13:29


All times are GMT -4. The time now is 08:52.