|
[Sponsors] |
Compiler error with OF 2.1.1 on OpenSUSE 12.3 (64bit) [GeekoCFD 5.0] |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 14, 2013, 11:01 |
Compiler error with OF 2.1.1 on OpenSUSE 12.3 (64bit) [GeekoCFD 5.0]
|
#1 |
Member
A. Bernath
Join Date: Jun 2011
Location: Karlsruhe, Germany
Posts: 39
Rep Power: 15 |
Hello,
I recently installed GeekoCFD 5.0 which is based on OpenSUSE 12.3 (64bit). Because of some tools which won't work with OF 2.2 which is automatically installed along with GeekoCFD, I need to install OF 2.1.1. Therefore I downloaded and compiled the source code according to this guide: http://openfoamwiki.net/index.php/In...#openSUSE_12.2 I tried to attach the make.log to this post but it is too big. As far as I can see, there are only minor problems occuring in the log. When I try to compile my own library with "wclean"/"wmake libso", I get the following error message: Code:
wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file fiberPorousZone.C make: *** Keine Regel vorhanden, um das Target »fiberPorousZones.dep«, benötigt von »Make/linux64GccDPOpt/dependencies«, zu erstellen. Schluss. Some outputs which might help: gcc -v Code:
Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.7/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7 --enable-ssp --disable-libssp --disable-libitm --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --program-suffix=-4.7 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux Thread model: posix gcc version 4.7.2 20130108 [gcc-4_7-branch revision 195012] (SUSE Linux) Code:
/opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/paraview-3.12.0/lib/paraview-3.12:/opt/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/openmpi-1.5.3:/opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64GccDPOpt/lib/openmpi-1.5.3:/opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/openmpi-1.5.3/lib:/opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/openmpi-1.5.3/lib64:/home/user/OpenFOAM/user-2.1.1/platforms/linux64GccDPOpt/lib:/opt/OpenFOAM/site/2.1.1/platforms/linux64GccDPOpt/lib:/opt/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib:/opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64GccDPOpt/lib:/opt/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/dummy:/usr/lib64/mpi/gcc/openmpi/lib64 Code:
/opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/paraview-3.12.0/bin:/opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/openmpi-1.5.3/bin:/home/user/OpenFOAM/user-2.1.1/platforms/linux64GccDPOpt/bin:/opt/OpenFOAM/site/2.1.1/platforms/linux64GccDPOpt/bin:/opt/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin:/opt/OpenFOAM/OpenFOAM-2.1.1/bin:/opt/OpenFOAM/OpenFOAM-2.1.1/wmake:/opt/Engys/HelyxOS/v1.0.1:/opt/gmsh-2.7.0-Linux/bin:/opt/eclipse:/opt/pyFoam/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/user/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin Thanks in advance, Alex |
|
May 14, 2013, 16:06 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Greetings Alex,
I haven't tried GeekoCFD yet, so I don't know what the default installation looks like. Remember the step #4 from the instructions you mentioned? Try changing it to this: Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI WM_COMPILER=Gcc47 And edit the file "~/.bashrc" accordingly as well. Then start a new terminal window or tab, just in case. After that, you'll have to do step #5 once again. Another detail is that you have to be careful to avoid having OpenFOAM versions go into conflict between them. Read this blog post for more information: Advanced tips for working with the OpenFOAM shell environment Best regards, Bruno
__________________
|
|
May 15, 2013, 04:13 |
|
#3 |
Member
A. Bernath
Join Date: Jun 2011
Location: Karlsruhe, Germany
Posts: 39
Rep Power: 15 |
Hey Bruno,
I changed my bashrc and it's compiling again at the moment. One question regarding this: Is it necessary to be in su mode when compiling OpenFOAM? I'm switching between the OF versions with aliases as it is proposed in your link. I checked the OF environment variables and they seem to be ok. Thanks, Alex EDIT: Compilation finished -> see attachment. I could not find any errors in the log. The error message when compiling the library is the same. I also tried to compile it with "sudo wmake libso" and the output is: Code:
wmake error: environment variable $WM_OPTIONS not set Code:
linux64Gcc47DPOpt |
|
May 15, 2013, 19:33 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi Alex,
What a confusion of versions you've got there OK, so here's the situation:
The instructions at openfoamwiki.net instruct on how to install at "$HOME/OpenFOAM" as normal user, but you're installing at "/opt/OpenFOAM" as root user. My guess is that you started to follow the instructions while the shell environment was activated for the pre-installed OpenFOAM 2.2.x or 2.2.0; then when you followed the instructions, you ended up somehow installing at "/opt" Anyway, edit the file "/opt/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc" as root (using "su") and look for these lines: Code:
foamInstall=$HOME/$WM_PROJECT # foamInstall=~$WM_PROJECT # foamInstall=/opt/$WM_PROJECT # foamInstall=/usr/local/$WM_PROJECT Code:
# foamInstall=$HOME/$WM_PROJECT # foamInstall=~$WM_PROJECT foamInstall=/opt/$WM_PROJECT # foamInstall=/usr/local/$WM_PROJECT Start a new terminal and try to see how things are working. Best regards, Bruno
__________________
|
|
May 16, 2013, 05:48 |
|
#5 |
Member
A. Bernath
Join Date: Jun 2011
Location: Karlsruhe, Germany
Posts: 39
Rep Power: 15 |
Hey Bruno,
sorry, I forgot to tell you that I want to install in opt/. I thought that would keep the OF installations some kind of sorted. I just changed the bashrc foamInstall option as proposed by your last post and compiled OF again (in su mode). In detail I did the following: (to prevent to waste your time again due to lack of information ) 1. Extract of the src code archives in /opt/OpenFOAM/ directory according to the commands from openfoamwiki. 2. Since x86_64 architecture I did: Code:
source /opt/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI WM_COMPILER=Gcc47 echo "source /opt/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc $FOAM_SETTINGS" >> $HOME/.bashrc Code:
./Allwmake > make.log 2>&1 4. Built paraview according to openfoamwiki I also attached my users bashrc and the root bashrc. I had to add the option WM_COMPILER=Gcc47 in the user bashrc in order to get openfoam tools running. The initial problem is however not solved. I compiled a library (not in sudo mode) and it finished without an error. The next library didn't compile successfully. The error is actually the same as in my first post: Code:
wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file fiberPorousZone.C make: *** Keine Regel vorhanden, um das Target »fiberPorousZones.dep«, benötigt von »Make/linux64Gcc47DPOpt/dependencies«, zu erstellen. Schluss. make: *** Warte auf noch nicht beendete Prozesse... Greetings from Germany, Alex EDIT: If i change the owner of the opt/OpenFOAM directory from root to my user, would that make things easier? I should than be able to compile OF without "su" or not? Last edited by derkermit; May 16, 2013 at 08:15. |
|
May 16, 2013, 12:22 |
|
#6 |
Member
A. Bernath
Join Date: Jun 2011
Location: Karlsruhe, Germany
Posts: 39
Rep Power: 15 |
Just tried compilation in opt/ without sudo but with changing the owner. No errors occured but when compiling my library the same message as before comes up.
I'll check the files of my library tomorrow. Maybe they got corrupted when copying them from dvd. |
|
May 16, 2013, 17:39 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi Alex,
OK, I think that being tired lead me to misdiagnose the problem on your first post There are at least two possibilities for this error:
Sorry about the initial misdiagnosis , but at least you learned a few more things about OpenFOAM's building mechanism By the way, the script code you had: Code:
export FOAM_INST_DIR=/opt/OpenFOAM alias of22x='foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.2.x/etc/bashrc && [ -f $foamDotFile ] && . $foamDotFile' alias of211='foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.1.1/etc/bashrc && [ -f $foamDotFile ] && . $foamDotFile' Best regards, Bruno
__________________
|
|
May 17, 2013, 03:55 |
|
#8 |
Member
A. Bernath
Join Date: Jun 2011
Location: Karlsruhe, Germany
Posts: 39
Rep Power: 15 |
Hey Bruno,
I managed to compile it by copying the files from another source. Up to now I can't see any difference in the files. Has to be some kind of magic But as you said, I learnt a ton about compiling OpenFOAM. Thanks for guiding me! Just a last question regarding your last statement: What exactly is meant by "foamDotFile"? And what is the difference between Code:
alias of211='foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.1.1/etc/bashrc && [ -f $foamDotFile ] && . $foamDotFile' Code:
alias of211='source /opt/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI' Greetings, Alex |
|
May 17, 2013, 18:07 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi Alex,
OK, two details:
Best regards, Bruno
__________________
|
|
May 19, 2013, 03:30 |
|
#10 |
Member
A. Bernath
Join Date: Jun 2011
Location: Karlsruhe, Germany
Posts: 39
Rep Power: 15 |
Thank you for the explanation. Helped me a lot!
Greetings, Alex |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 2.1.1 installation on openSUSE 12.2 32 bit | saturn_53 | OpenFOAM Installation | 13 | February 1, 2015 04:17 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 18:56 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 13:43 |
Troubles installing OF 1.6 on Opensuse 11.1 | magnounibo | OpenFOAM Installation | 1 | November 28, 2009 13:12 |
Dissimilarity in compiling new BC in 32bit OpenSuSE 103 versus 64bit CentOS 50 versus 64bit SLED 100 | sponiar | OpenFOAM Running, Solving & CFD | 3 | February 26, 2008 06:31 |