|
[Sponsors] |
Compilation Error 1 (Allwmake) on Ubuntu 11.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 28, 2011, 18:28 |
Compilation Error 1 (Allwmake) on Ubuntu 11.04
|
#1 |
Member
Freeman Adane
Join Date: Apr 2010
Posts: 42
Rep Power: 16 |
Hi,
I am trying installing OF 1.7.1 on my Ubuntu 11.04 (latest version). I keep on get this "error 1" message. It seems some library is missing: SOURCE=derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField. C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/thermophysicalModels/basic/lnInclude -IlnInclude -I. -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/wideBandDiffusiveRadiationMixedFvPatchScalarField. o /usr/bin/ld: cannot find -lfiniteVolume collect2: ld returned 1 exit status make: *** [/home/adane/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libradiation.so] Error 1 /usr/bin/ld: cannot find -lbasicThermophysicalModels /usr/bin/ld: cannot find -lreactionThermophysicalModels collect2: ld returned 1 exit status make: *** [/home/adane/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libchemistryModel.so] Error 1 etc. First, I follow the installation instructions on OF website and even install it my home directory on a cluster. This means, it's coming coming these particular computers which is using Ubuntu latest version (64bit). Secondly, if anyone knows similar posting please let me know about it. Thanks |
|
May 28, 2011, 19:44 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Freeman,
Mmm, it's not finding libraries... OK, by steps:
Bruno
__________________
|
|
May 30, 2011, 11:25 |
|
#3 |
Member
Freeman Adane
Join Date: Apr 2010
Posts: 42
Rep Power: 16 |
Bruno,
Q1: I am using Source Pack Installation for OF version 1.7.1 (http://www.openfoam.com/download/source.php). Please note that, I am using "sudo apt-get ...) because my experience with it is that it doesn't allow me to build my own solver since during compilation it tries to access /opt/... which required root user or some admin permission. But the source pack can be installed in one's local directory and therefore would be easier for creating my own solver. As I indicated in my first posting this very version has been successfully installed on a linux cluster. I am trying to install on a new Workstation which is running on Ubuntu 11.04. Q2 & 3, Please see below: ======================================== Start ThirdParty Allwmake ======================================== ======================================== Compile specific mpi libraries have OPENMPI shared library ======================================== Build Scotch decomposition library + cd scotch_5.1/src + mkdir -p /home/adane/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt + make scotch (cd libscotch ; make VERSION=\"5.1\" scotch && make install) make[1]: Entering directory `/home/adane/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' rm -f *~ *.o lib*.so common2* parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes make CC="gcc" CCD="gcc" SCOTCHLIB=scotch \ scotch.h \ scotchf.h \ libscotch.so \ libscotcherr.so \ libscotcherrexit.so make[2]: Entering directory `/home/adane/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' gcc -O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_VERSION=\""5.1"\" dummysizes.c -o dummysizes -lz -lm -lrt /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make[2]: *** [dummysizes] Error 1 make[2]: Leaving directory `/home/adane/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' make[1]: *** [scotch] Error 2 make[1]: Leaving directory `/home/adane/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' make: *** [scotch] Error 2 ======================================== Build PTScotch decomposition library (requires MPI) + cd scotch_5.1/src + mkdir -p /home/adane/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/openmpi-1.4.1 + make ptscotch (cd libscotch ; make VERSION=\"5.1\" ptscotch && make ptinstall) make[1]: Entering directory `/home/adane/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' rm -f *~ *.o lib*.so common2* parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes make CFLAGS="-O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_PTSCOTCH" CC="mpicc" SCOTCHLIB=ptscotch \ scotch.h \ scotchf.h \ libptscotch.so \ libptscotcherr.so \ libptscotcherrexit.so make[2]: Entering directory `/home/adane/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' mpicc -O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_PTSCOTCH -DSCOTCH_VERSION=\""5.1"\" dummysizes.c -o dummysizes -lz -lm -lrt /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make[2]: *** [dummysizes] Error 1 make[2]: Leaving directory `/home/adane/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' make[1]: *** [ptscotch] Error 2 make[1]: Leaving directory `/home/adane/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' make: *** [ptscotch] Error 2 |
|
May 30, 2011, 18:10 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Freeman,
Ah, so far it's pretty simple, simply install the package zlib1g-dev: Code:
sudo apt-get install zlib1g-dev Best regards, Bruno
__________________
|
|
May 30, 2011, 20:12 |
|
#5 |
Member
Freeman Adane
Join Date: Apr 2010
Posts: 42
Rep Power: 16 |
Bruno,
Thanks. You made my day... Regards Freeman |
|
May 31, 2011, 10:47 |
|
#6 |
Member
Freeman Adane
Join Date: Apr 2010
Posts: 42
Rep Power: 16 |
Bruno,
Unfortunately, it didn't work (please see appended). Also, perhaps, this might help you too (it looks like it's looking for "/usr/bin/ld", ?) make[1]: Entering directory `/home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/solvers/DNS' make[2]: Entering directory `/home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/solvers/DNS/dnsFoam' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/randomProcesses/lnInclude -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/sampling/lnInclude -IlnInclude -I. -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/dnsFoam.o -L/home/adane/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt \ -lfiniteVolume -lrandomProcesses -lsampling -lmeshTools -lOpenFOAM -liberty -ldl -lm -o /home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/dnsFoam /usr/bin/ld: cannot find -liberty collect2: ld returned 1 exit status make[2]: *** [/home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/dnsFoam] Error 1 make[2]: Leaving directory `/home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/solvers/DNS/dnsFoam' make[1]: *** [dnsFoam] Error 2 make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/solvers/DNS' make: *** [DNS] Error 2 make[1]: Entering directory `/home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/solvers/basic' make[2]: Entering directory `/home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/solvers/basic/laplacianFoam' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/adane/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/laplacianFoam.o -L/home/adane/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt \ -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/laplacianFoam /usr/bin/ld: cannot find -liberty collect2: ld returned 1 exit status make[2]: *** [/home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/laplacianFoam] Error 1 make[2]: Leaving directory `/home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/solvers/basic/laplacianFoam' make[1]: *** [laplacianFoam] Error 2 Appendix Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: pipeflows OS: Linux version 2.6.38-8-generic ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/adane/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/adane/OpenFOAM/adane-1.7.1 no no $WM_THIRD_PARTY_DIR /home/adane/OpenFOAM/ThirdParty-1.7.1 yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/adane/OpenFOAM/OpenFOAM-1.7.1 yes yes yes $FOAM_APPBIN ...7.1/applications/bin/linux64GccDPOpt yes yes yes $FOAM_SITE_APPBIN ...nFOAM/site/1.7.1/bin/linux64GccDPOpt no no $FOAM_USER_APPBIN ...7.1/applications/bin/linux64GccDPOpt no no $WM_DIR .../adane/OpenFOAM/OpenFOAM-1.7.1/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...M/OpenFOAM-1.7.1/lib/linux64GccDPOpt yes yes yes $FOAM_SITE_LIBBIN ...nFOAM/site/1.7.1/lib/linux64GccDPOpt no no $FOAM_USER_LIBBIN ...FOAM/adane-1.7.1/lib/linux64GccDPOpt no no $MPI_ARCH_PATH ...1/platforms/linux64Gcc/openmpi-1.4.1 yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- gcc 4.5.2 /usr/bin/gcc gzip 1.3.12 /bin/gzip tar 1.25 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/adane/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. *** The foam installation contains 1 critical error(s) *** Review the output for warning messages and consult *** the installation guide for trouble shooting. done. any idea? Freeman Last edited by freemankofi; May 31, 2011 at 17:15. |
|
June 1, 2011, 04:57 |
|
#7 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Freeman,
This is what happens when you don't follow my instructions to the line You should have installed the artillery of packages that I indicated that were in the thread "http://www.cfd-online.com/Forums/ope...tml#post268828 post #4": Quote:
Best regards, Bruno
__________________
|
||
June 2, 2011, 11:57 |
|
#8 |
Member
Freeman Adane
Join Date: Apr 2010
Posts: 42
Rep Power: 16 |
Bruno,
Thanks. I got it installed, just that paraFoam doesn't work with error: $HOME//OpenFOAM-1.7.1/bin/paraFoam: 142: paraview: not found. I believe the error is coming from "CMake Error: The following variables are used in this project, but they are set to NOTFOUND." I check that dirctory and everything is ok. But never mind I have installed the full ParaView Viewer via Ubuntu Software centre. That worked fine for now ... Once again thanks for your help! Freeman |
|
June 4, 2011, 08:54 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Freeman,
Then this might be helpful: Quote:
Bruno
__________________
Last edited by wyldckat; June 4, 2011 at 09:02. Reason: typo... |
||
June 10, 2011, 11:09 |
|
#10 |
Member
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 17 |
Hi Bruno,
I would like to create a log file as you suggested in your post. Code:
./Allwmake > make.log 2>&1 I tried sudo before the command but it didn't help. The other workaround that I tried: Code:
./Allwmake | tee $HOME/Documents/debug.txt Code:
make: Nothing to be done for `all'. no git description found Note: ignore spurious warnings about missing mpicxx.h headers make[1]: Entering directory `/opt/openfoam171/applications/solvers/DNS' make[1]: Leaving directory `/opt/openfoam171/applications/solvers/DNS' ... Found readline/readline.h -- enabling readline support. ... make[1]: Entering directory `/opt/openfoam171/applications/utilities/thermophysical' make[1]: Leaving directory `/opt/openfoam171/applications/utilities/thermophysical' With Code:
sudo ./Allwmake | tee $HOME/Documents/debug.txt Code:
Error: Current directory is not $WM_PROJECT_DIR The environment variable are not consistent with the installation. Check the OpenFOAM entries in your dot-files and source them. The other wired thing is with foamInstallationTest. It gives me: Code:
Checking basic setup... ------------------------------------------------------------------------------- FATAL ERROR: OpenFOAM environment not configured. Thanks! |
|
June 10, 2011, 11:31 |
|
#11 |
Member
Freeman Adane
Join Date: Apr 2010
Posts: 42
Rep Power: 16 |
hi Toorop,
Perhaps, Bruno will get back to you on it. In the meantime, I think you have permission issue. Because usually "/opt/...." can only be accessed/executed/written etc by "root" user and therefore compilation wouldn't work unless you log on as root user. If you're root user, then % sudo su. Note that, doing this means that anytime either yourself or anyone wants to compile must always have to log on as root user. To avoid the above: follow carefully the instructions listed on openfoam source package page (http://www.openfoam.com/download/source.php), where you can install on your local directory. This doesn't need sudo or whatsoever but you have to set environment anytime you open a new terminal (i'ven't been able to set it for good!). The other way is to install "ready made" (http://www.openfoam.com/download/ubuntu.php) which can also be installed in either local directory (/home/) or /opt/.... For my case since I'm administrator and other people will also use OF, I installed "ready-made" in /opt/ and source package in my local directory (/home). This allows those who're "light" or novice users to enjoy OF while I am also able to create a solver. I hope this helps... Freeman |
|
June 10, 2011, 13:53 |
|
#12 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Tibor and Freeman!
Freeman is right: the best thing would be to use the source version. But if you still want to use the version already installed, and risk having no working OpenFOAM version, then run: Code:
sudo chmod -R o+w /opt/openfoam171 Additionally, the usual packages necessary for building OpenFOAM in Ubuntu are: Quote:
Bruno
__________________
|
||
June 14, 2011, 07:10 |
|
#13 |
Member
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 17 |
Freeman and Bruno, thank you, I have managed to compile OF1.7.1. Thumbs up! Next time I will go for the source pack installation, hopefully without any major problems!
Cheers! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM install on Ubuntu Natty 11.04 | bkubicek | OpenFOAM | 13 | May 26, 2011 06:48 |
How to launch fluent 6.3.26 on Ubuntu 11.04 | Fiska | FLUENT | 4 | May 21, 2011 16:33 |
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 | ftec | OpenFOAM Installation | 7 | February 23, 2011 07:07 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |
Wmake ccm26ToFoam compilation problem under Ubuntu x64 810 | kprzysowagmailcom | OpenFOAM Installation | 7 | November 6, 2009 05:33 |