CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 1.6 Compiling Error (http://www.cfd-online.com/Forums/openfoam-installation/71238-openfoam-1-6-compiling-error.html)

AustinK December 21, 2009 08:04

OpenFOAM 1.6 Compiling Error
 
1 Attachment(s)
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

bigphil December 22, 2009 09:49

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

AustinK January 6, 2010 10:06

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

bigphil January 6, 2010 10:18

Austin,

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

Philip

AustinK January 7, 2010 09:17

1 Attachment(s)
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

bigphil January 7, 2010 11:02

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

AustinK January 11, 2010 09:35

1 Attachment(s)
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.

bigphil January 11, 2010 09:48

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

andreho January 20, 2010 07:57

Another compiling errors with OpenFOAM
 
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.

bigphil January 20, 2010 09:27

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

fs82 January 20, 2010 10:13

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

Pytthon February 2, 2010 11:52

Can anyone help me with this issue in this thread, x86_64

http://www.cfd-online.com/Forums/ope...entos-4-x.html

andreho February 2, 2010 12:11

Hi Phil,

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

Cheers.

bigphil February 2, 2010 12:19

andreho,

that's great.

Philip

louisgag February 18, 2010 13:41

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

rahulrp April 2, 2010 07:42

1 Attachment(s)
Quote:

Originally Posted by bigphil (Post 240745)
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.

wyldckat April 2, 2010 10:37

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


All times are GMT -4. The time now is 22:24.