|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 8 source installation fails - openmpi problem? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 9, 2020, 03:59 |
OpenFOAM 8 source installation fails - openmpi problem?
|
#1 |
New Member
Join Date: Jun 2018
Posts: 20
Rep Power: 8 |
Hello everyone,
I´m trying to build openFoam 8 from source in my home directory. I´m using Ubuntu 20.04 in a virtual box (windows 10 host system). I installed software for compilation and third party installation (as well as paraview) was no problem. However, OpenFoam compilation goes well untill it tries to compile the solvers. Then I get the following error messages: Code:
Allwmake applications wmake solvers wmake basic make[1]: Verzeichnis „/home/user/OpenFOAM/OpenFOAM-8/applications/solvers/basic“ wird betreten wmake laplacianFoam make[2]: Verzeichnis „/home/user/OpenFOAM/OpenFOAM-8/applications/solvers/basic/laplacianFoam“ wird betreten g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/user/OpenFOAM/OpenFOAM-8/src/finiteVolume/lnInclude -I/home/user/OpenFOAM/OpenFOAM-8/src/meshTools/lnInclude -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-8/src/OSspecific/POSIX/lnInclude -fPIC -fuse-ld=bfd -Xlinker --add-needed -Xlinker --no-as-needed /home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/applications/solvers/basic/laplacianFoam/laplacianFoam.o -L/home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/lib \ -lfiniteVolume -lfvOptions -lmeshTools -lOpenFOAM -ldl \ -lm -o /home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/bin/laplacianFoam /usr/bin/ld.bfd: /home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)' /usr/bin/ld.bfd: /home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Intracomm::current_op' /usr/bin/ld.bfd: /home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Comm::mpi_comm_map' /usr/bin/ld.bfd: /home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Is_initialized()' /usr/bin/ld.bfd: /home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Comm::mpi_err_map' /usr/bin/ld.bfd: /home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Op::Free()' /usr/bin/ld.bfd: /home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `op_intercept' collect2: error: ld returned 1 exit status make[2]: *** [/home/user/OpenFOAM/OpenFOAM-8/wmake/makefiles/general:142: /home/user/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/bin/laplacianFoam] Fehler 1 make[2]: Verzeichnis „/home/user/OpenFOAM/OpenFOAM-8/applications/solvers/basic/laplacianFoam“ wird verlassen make[1]: *** [/home/user/OpenFOAM/OpenFOAM-8/wmake/makefiles/apps:39: laplacianFoam] Fehler 2 make[1]: Verzeichnis „/home/user/OpenFOAM/OpenFOAM-8/applications/solvers/basic“ wird verlassen make: *** [/home/user/OpenFOAM/OpenFOAM-8/wmake/makefiles/apps:39: basic] Fehler 2 I followed these instructions: https://openfoam.org/download/8-source/ I didn´t do any changes to the bashrc and compiled with SYSTEMOPEMPI. I don´t konw whether that is normal, but I get lots of warnings during building having the form: Code:
/usr/lib/lam/include/mpi2cxx/prequest.h:101:3: note: because ‘PMPI::Prequest’ has user-provided ‘PMPI::Prequest::Prequest(const PMPI::Prequest&)’ 101 | Prequest(const Prequest& p) : Request(p) { } cmake version 3.16.3 orterun (OpenRTE) 4.0.3 May I have messed up sth in ubuntu somehow? I really appreciate any help! Thanks |
|
October 11, 2020, 07:02 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Your error message indicates the "lam" mpi is somehow configured on your system. Looks pretty odd.
|
|
October 11, 2020, 07:10 |
|
#3 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
This thread may also provide some additional insights
problems-compiling-source-ubuntu-18-04-20-04-etc-lmpi-not-found |
|
November 9, 2020, 08:20 |
|
#4 |
New Member
Join Date: Jun 2018
Posts: 20
Rep Power: 8 |
Thanks for your help. However, I didn´t get my error solved and became very annoyed. I reinstalled my Ubuntu box and installed OpenFoam the same way and everything is fine now. I must have messed up something in my Ubuntu...
|
|
Tags |
compilation error, installation problem, open-mpi, openfoam 8, ubuntu |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 17:34 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 16:02 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 01:41 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 10:57 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 14:25 |