|
[Sponsors] |
[foam-extend.org] Error compiling OpenFOAM-1.6-ext |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 22, 2011, 10:48 |
|
#121 | |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
Hello,
I took a look at your compilation log files, and you have a bunch of errors you need to solve, one by one, first one first, and not only the last error you are reporting. Some comments: - You are probably missing some -dev packages for OpenGL. Try compiling Paraview as a stand-alone package using the instructions provided by Kitware. It might help pinpointing the missing packages. - Some of your compiler settings seems to be off. Your installation of 1.7.1 is probably conflicting. From your log file: /home/tibornyers/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf/..//config/linux_2.4-x86-glibc_2.3.2/qmake: error while loadi ng shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory - You are having problems downloading packages from the Internet From your log: Download mesquite-2.1.2.tar.gz from : http://software.sandia.gov/~jakraft/mesquite-2.1.2.tar.gz --2011-06-17 09:30:39-- http://software.sandia.gov/~jakraft/mesquite-2.1.2.tar.gz Resolving software.sandia.gov... failed: Name or service not known. wget: unable to resolve host address `software.sandia.gov' So basically, instead of focusing on the last error message you've got, open your log file with a text editor, and go hunting for the string "error". Solve the problem you find one by one, first problem first. Martin Quote:
|
||
June 22, 2011, 10:51 |
|
#122 | |
Member
Eysteinn Helgason
Join Date: Sep 2009
Location: Gothenburg, Sweden
Posts: 53
Rep Power: 17 |
Quote:
The location of metis-5.0pre2 seems to have change. It can be fixed by editing ThirdParty/AllMake.stage3 line 62 and change the url from http://glaros.dtc.umn.edu/gkhome/fet...5.0pre2.tar.gz to http://glaros.dtc.umn.edu/gkhome/fet...5.0pre2.tar.gz That is adding the OLD/ Btw I also had to do :sudo ln -s /usr/bin/make /usr/bin/gmake Then running AllMake and sourcing again and trying to compile OF16ext and sourcing once more and then compiling again and it worked. Running Ubuntu 11.04 /Eysteinn |
||
June 22, 2011, 11:06 |
|
#123 | |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
Hello,
Yup, that tutorial seems to be in problem. You can get a pretty good overview of the list of tutorials currently in problem here: http://openfoam-extend.sourceforge.n...enFOAM-1.6-ext Of course, depending on your system, even on your compiler, your mileage may vary. I invite you to run the test harness on your machine, and to post the results on the openfoam-extend CDash service. Just take a look here for a starter on the test harness: OpenFOAM-1.6-ext/testHarness/README.txt Martin Quote:
|
||
June 23, 2011, 07:37 |
|
#124 |
Member
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 17 |
Hi Martin,
Thanks for taking the time to have a look at my logs. I have resolved the errors on the first 4 of the ThirdParty AllMake stages (0-3). So there's no package downloading woe any more as I said @ 120. The ParaView compiling fails like jajcevic reported some pages before. Code:
Linking CXX executable ../../../../bin/GenericFilteringCxxTests ../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `vtkOSOpenGLRenderWindow::New()' collect2: ld returned 1 exit status make[2]: *** [bin/GenericFilteringCxxTests] Error 1 make[1]: *** [VTK/GenericFiltering/Testing/Cxx/CMakeFiles/GenericFilteringCxxTests.dir/all] Error 2 ... [ 45%] Built target vtkVolumeRendering make: *** [all] Error 2 error: Bad exit status from $HOME/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.eJh8MM (%build) Thanks! |
|
June 30, 2011, 11:49 |
|
#125 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
Dear forum,
I am trying to compile OF-1.6-ext. My ThirdParty is done, but I get linking errors while building src: Code:
+ wmake libso meshTools make: *** No rule to make target `lnInclude/pointIndexHit.H', needed by `directMapped/directMappedPolyPatch/directMappedWallPolyPatch.dep'. Stop. What can I do to make correct links? |
|
July 1, 2011, 06:57 |
|
#126 |
Member
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 15 |
Hello Foamers,
I found a compact, and thus very helpful procedure for compiling OpenFOAM-1.6-ext on OpenSuse 11.4 64bit. http://www.cfd-online.com/Forums/ope...1-4-64bit.html I proceeded all the steps and it went well until step 16. But as soon as I execute the global Allwmake script in the $WM_PROJECT_DIR I got a lot errors. All the OpenFOAM files/libraries which are needed for compilation are not found. The error is for all libs the same as the following: g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/LES/LESModel -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/LES/LESdeltas/lnInclude -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/transportModels -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/yPlusLES.o -L/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \ -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/lga19/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/yPlusLES /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleLESModels collect2: ld returned 1 exit status make[3]: *** [/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/yPlusLES] Error 1 make[2]: *** [yPlusLES] Error 2 g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/transportModels -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/mutWallFunctions -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/yPlusRAS.o -L/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \ -lincompressibleTransportModels -lincompressibleRASModels -lbasicThermophysicalModels -lspecie -lcompressibleRASModels -lfiniteVolume -lmeshTools -lsampling -lOpenFOAM -liberty -ldl -lm -o /home/lga19/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/yPlusRAS /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleTransportModels collect2: ld returned 1 exit status make[3]: *** [/home/lga19/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/yPlusRAS] Error 1 make[2]: *** [yPlusRAS] Error 2 make[2]: Target `application' not remade because of errors. make[1]: *** [wall] Error 2 make[1]: Target `application' not remade because of errors. make: *** [postProcessing] Error 2 make: Target `application' not remade because of errors. This must be some very "global" error. Has anybody an idea? Thank you in advance for any hint, Toni |
|
July 4, 2011, 06:17 |
|
#127 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
Hello,
When I update my version with git pull, I sometimes have incorrect symbolic links. My "agricultural" solution is to delete the .dep file and lnInclude folder in question, and then recompiling works (wmake make the delete files again correctly). This is a nasty job, because I have to watch the printout of the compilation, interrupt it when an error occurs and then find the files. Another solution is to delete ALL of the .dep files an lnInclude folders, and the compile everything again. Is there a more intelligent way to deal with this? |
|
July 4, 2011, 08:02 |
|
#128 | |
New Member
Raimonds Vilums
Join Date: Oct 2010
Posts: 17
Rep Power: 17 |
Quote:
Code:
%_rpmlock_path %{_dbpath}/__db.000 |
||
July 7, 2011, 05:16 |
|
#129 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
I finished building the ThirdParty and src, but when I run applications/Allwmake, I get errors for libmesquite:
Code:
+ wmake all solvers make[2]: `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/PODSolver' is up to date. make[2]: `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/dnsFoam' is up to date. make[2]: `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/potentialFoam' is up to date. make[2]: `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/laplacianFoam' is up to date. make[2]: `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/sixDOFSolver' is up to date. make[2]: `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/scalarTransportFoam' is up to date. g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/engine/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/specie/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/reactionThermo/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/compressible/turbulenceModel -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/laminarFlameSpeed/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/sampling/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/XiFoam.o -L/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \ -lengine -lcompressibleTurbulenceModel -lcompressibleRASModels -lcompressibleLESModels -lbasicThermophysicalModels -lreactionThermophysicalModels -lspecie -llaminarFlameSpeedModels -lfiniteVolume -lmeshTools -llduSolvers -lOpenFOAM -liberty -ldl -lm -o /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/XiFoam g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IXiModels/XiModel -IXiModels/XiEqModels/XiEqModel -IXiModels/XiGModels/XiGModel -IPDRModels/dragModels/PDRDragModel -IlaminarFlameSpeed/SCOPE -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/engine/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/sampling/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/specie/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/reactionThermo/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/compressible/RAS/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/laminarFlameSpeed/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicFvMesh/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/triSurface/lnInclude -IlnInclude -I. -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/XiModel.o Make/linux64GccDPOpt/newXiModel.o Make/linux64GccDPOpt/fixed.o Make/linux64GccDPOpt/algebraic.o Make/linux64GccDPOpt/transport.o Make/linux64GccDPOpt/XiEqModel.o Make/linux64GccDPOpt/newXiEqModel.o Make/linux64GccDPOpt/Gulder.o Make/linux64GccDPOpt/instabilityXiEq.o Make/linux64GccDPOpt/SCOPEBlendXiEq.o Make/linux64GccDPOpt/SCOPEXiEq.o Make/linux64GccDPOpt/XiGModel.o Make/linux64GccDPOpt/newXiGModel.o Make/linux64GccDPOpt/KTS.o Make/linux64GccDPOpt/instabilityG.o Make/linux64GccDPOpt/PDRkEpsilon.o Make/linux64GccDPOpt/PDRDragModel.o Make/linux64GccDPOpt/newPDRDragModel.o Make/linux64GccDPOpt/basic.o Make/linux64GccDPOpt/basicXiSubXiEq.o Make/linux64GccDPOpt/basicXiSubG.o Make/linux64GccDPOpt/SCOPELaminarFlameSpeed.o Make/linux64GccDPOpt/PDRFoam.o -L/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \ -lengine -lmeshTools -lcompressibleTurbulenceModel -lcompressibleRASModels -lbasicThermophysicalModels -lreactionThermophysicalModels -lspecie -llaminarFlameSpeedModels -lfiniteVolume -ldynamicFvMesh -llduSolvers -lOpenFOAM -liberty -ldl -lm -o /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/PDRFoam /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64GccDPOpt/lib/libmesquite.so.0: undefined reference to `std::_List_node_base::_M_unhook()@GLIBCXX_3.4.14' /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64GccDPOpt/lib/libmesquite.so.0: undefined reference to `std::_List_node_base::_M_hook(std::_List_node_base*)@GLIBCXX_3.4.14' collect2: ld returned 1 exit status |
|
July 7, 2011, 09:00 |
|
#131 |
Member
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 15 |
Hello l_r_mcglashan
isn't it possible to define the compiler in file ~/OpenFOAM/OpenFOAM-1.6-ext/etc/settings.sh by setting the following variable? compilerInstall=System or compilerInstall=OpenFOAM |
|
July 7, 2011, 11:27 |
|
#132 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
I am indeed using the system compiler:
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 |
|
July 14, 2011, 19:18 |
|
#134 |
New Member
Rachid bannari
Join Date: Mar 2009
Location: Quebec, Canada
Posts: 12
Rep Power: 17 |
Hi,
I got the following error with AllMake.stage3. Any idea? Package name : Package URL : RPM spec file name: Additional flags : Updating the ThirdParty environment variables before building package Making package using RPM. rpm_build: missing SPEC file for package scotch-5.1.10b. Aborting. Installing package: Uninstalling using RPM: -linux64GccDPOpt.x86_64 Installing using RPM file: /home/bannari/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/-linux64GccDPOpt.x86_64.rpm erreur: échec de l'ouverture de /home/bannari/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/-linux64GccDPOpt.x86_64.rpm: Aucun fichier ou dossier de ce type Done installing package Package name : Package URL : RPM spec file name: Additional flags : Updating the ThirdParty environment variables before building package Making package using RPM. rpm_build: missing SPEC file for package ParMetis-3.1.1. Aborting. Installing package: Uninstalling using RPM: -linux64GccDPOpt.x86_64 Installing using RPM file: /home/bannari/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/-linux64GccDPOpt.x86_64.rpm erreur: échec de l'ouverture de /home/bannari/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/-linux64GccDPOpt.x86_64.rpm: Aucun fichier ou dossier de ce type Done installing package |
|
October 27, 2011, 21:26 |
|
#135 | |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 16 |
Hi Cris
Could please tell how you installed OpenFOAM-1.6-ext, I am having a lot of problems in Fedora 15, 64 bit Thank you Alberto Quote:
|
||
October 28, 2011, 01:26 |
|
#136 | |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 16 |
Hello Martin
Any news about installing OpenFOAM-1.6-ext on Fedora 15, 64-bit system, I have tried to install it, and it is being a nightmare!, I always get gcc 4.6.1 WARNING: Conflicting installations: OpenFOAM settings : /bin/gcc current path : /usr/lib64/ccache/gcc CRITICAL ERROR Any help is welcome! Thank you Alberto Quote:
|
||
April 25, 2012, 12:22 |
|
#137 |
Disabled
Join Date: Jul 2009
Posts: 63
Rep Power: 17 |
hi foamers i am installing oepnfoam 1.6-ext on opensuse 12.1
after some problems about misquite2.1.2 i changed as many people do to 2.99 then after thirdparty Allmake.stage3: common.h:84:28: fatal error: mpi.h: No such file or directory it seems that he is not finding the openMPI instalation but thirdparty Allmake.stage3 gives: ======================================== Starting ThirdParty AllMake: Stage2 ======================================== Package name : openmpi-1.4.3 Package URL : http://www.open-mpi.org/software/omp...i-1.4.3.tar.gz RPM spec file name: openmpi-1.4.3.spec Additional flags : Updating the ThirdParty environment variables before building package openmpi-1.4.3 Package openmpi-1.4.3 is already installed Done installing package ======================================== Done ThirdParty AllMake: Stage2 ======================================== |
|
January 20, 2016, 15:56 |
|
#138 |
New Member
Karnataka
Join Date: Feb 2014
Posts: 20
Rep Power: 12 |
I have faced a similar problem in my installation. Namely,
"db/IOstreams/Pstreams/IPread.C:29:17: fatal error: mpi.h: No such file or directory" Any ideas foamers? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
OpenFOAM 1.6 package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 36 | September 2, 2009 13:46 |
OpenFOAM Version 1.6 Released | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | July 27, 2009 18:55 |