|
[Sponsors] |
December 21, 2009, 08:04 |
OpenFOAM 1.6 Compiling Error
|
#1 |
New Member
Austin Kochs
Join Date: Dec 2009
Posts: 6
Rep Power: 17 |
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 |
|
December 22, 2009, 09:49 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
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 |
|
January 6, 2010, 10:06 |
|
#3 |
New Member
Austin Kochs
Join Date: Dec 2009
Posts: 6
Rep Power: 17 |
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 |
|
January 6, 2010, 10:18 |
|
#4 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Austin,
No problem. Good luck and a merry christmas and happy new year to you. Philip |
|
January 7, 2010, 09:17 |
|
#5 |
New Member
Austin Kochs
Join Date: Dec 2009
Posts: 6
Rep Power: 17 |
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 |
|
January 7, 2010, 11:02 |
|
#6 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
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 |
|
January 11, 2010, 09:35 |
|
#7 |
New Member
Austin Kochs
Join Date: Dec 2009
Posts: 6
Rep Power: 17 |
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. |
|
January 11, 2010, 09:48 |
|
#8 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
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 |
|
January 20, 2010, 07:57 |
Another compiling errors with OpenFOAM
|
#9 |
New Member
Andreas Ho
Join Date: Jan 2010
Posts: 4
Rep Power: 16 |
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. |
|
January 20, 2010, 09:27 |
|
#10 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
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 |
|
January 20, 2010, 10:13 |
|
#11 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
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 |
|
February 2, 2010, 11:52 |
|
#12 |
New Member
Joaquín J. Correa
Join Date: Jan 2010
Posts: 18
Rep Power: 16 |
Can anyone help me with this issue in this thread, x86_64
http://www.cfd-online.com/Forums/ope...entos-4-x.html |
|
February 2, 2010, 12:11 |
|
#13 |
New Member
Andreas Ho
Join Date: Jan 2010
Posts: 4
Rep Power: 16 |
Hi Phil,
thanks a lot for your answer. I used OpenSUSE 11.2. Now I installed OpenSUSE 11.1 and everything works fine. Cheers. |
|
February 2, 2010, 12:19 |
|
#14 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
andreho,
that's great. Philip |
|
February 18, 2010, 13:41 |
|
#15 |
Senior Member
|
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 |
|
April 2, 2010, 08:42 |
|
#16 | |
New Member
Join Date: Mar 2010
Posts: 14
Rep Power: 16 |
Quote:
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. |
||
April 2, 2010, 11:37 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 |
|
Tags |
compiling issues, icc, openfoam 1.6 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 12:39 |
Compilation error for openfoam - 1.6 | misakagan | OpenFOAM | 19 | February 21, 2012 11:36 |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 19:54 |
Error occurs when compiling OpenFoam 1.6.x with Icc | fs82 | OpenFOAM Bugs | 5 | January 20, 2010 04:08 |
[Netgen] Compiling Netgen on Fedora Core is driving me crazy | jango | OpenFOAM Meshing & Mesh Conversion | 3 | November 9, 2007 14:29 |