CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] OpenFOAM 8 source installation fails - openmpi problem?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2020, 03:59
Question OpenFOAM 8 source installation fails - openmpi problem?
  #1
F42
New Member
 
Join Date: Jun 2018
Posts: 20
Rep Power: 7
F42 is on a distinguished road
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) { }
gcc version 9.3.0
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
F42 is offline   Reply With Quote

Old   October 11, 2020, 07:02
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Your error message indicates the "lam" mpi is somehow configured on your system. Looks pretty odd.
olesen is offline   Reply With Quote

Old   October 11, 2020, 07:10
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
This thread may also provide some additional insights
problems-compiling-source-ubuntu-18-04-20-04-etc-lmpi-not-found
F42 likes this.
olesen is offline   Reply With Quote

Old   November 9, 2020, 08:20
Default
  #4
F42
New Member
 
Join Date: Jun 2018
Posts: 20
Rep Power: 7
F42 is on a distinguished road
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...
F42 is offline   Reply With Quote

Reply

Tags
compilation error, installation problem, open-mpi, openfoam 8, ubuntu


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 02:55.