CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] 'laplacianFoam' failed (https://www.cfd-online.com/Forums/openfoam-installation/215532-laplacianfoam-failed.html)

nik86 March 7, 2019 13:20

'laplacianFoam' failed
 
Hi OpenFoam users,
I am a new OF user and during the installation I got these error messages and I do not know how to fix it:
Code:

wmake laplacianFoam
make[2]: ingresso nella directory "/home/nik/OpenFOAM/OpenFOAM-v1812/applications/solvers/basic/laplacianFoam"
wmake overLaplacianDyMFoam
make[3]: ingresso nella directory "/home/nik/OpenFOAM/OpenFOAM-v1812/applications/solvers/basic/laplacianFoam/overLaplacianDyMFoam"
g++ -std=c++11 -m64 -DOPENFOAM=1812 -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 -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100 -I/home/nik/OpenFOAM/OpenFOAM-v1812/src/finiteVolume/lnInclude -I/home/nik/OpenFOAM/OpenFOAM-v1812/src/dynamicFvMesh/lnInclude -I/home/nik/OpenFOAM/OpenFOAM-v1812/src/overset/lnInclude -I/home/nik/OpenFOAM/OpenFOAM-v1812/src/meshTools/lnInclude -IlnInclude -I. -I/home/nik/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude -I/home/nik/OpenFOAM/OpenFOAM-v1812/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/nik/OpenFOAM/OpenFOAM-v1812/build/linux64GccDPInt32Opt/applications/solvers/basic/laplacianFoam/overLaplacianDyMFoam/overLaplacianDyMFoam.o -L/home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib \
    -loverset -lOpenFOAM -ldl  \
    -lm -o /home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/bin/overLaplacianDyMFoam
/home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: riferimento non definito a "MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)"
/home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: riferimento non definito a "PMPI::Intracomm::current_op"
/home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: riferimento non definito a "PMPI::Comm::mpi_comm_map"
/home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: riferimento non definito a "MPI::Is_initialized()"
/home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: riferimento non definito a "PMPI::Comm::mpi_err_map"
/home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: riferimento non definito a "MPI::Op::Free()"
/home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: riferimento non definito a "op_intercept"
collect2: error: ld returned 1 exit status
/home/nik/OpenFOAM/OpenFOAM-v1812/wmake/makefiles/general:136: recipe for target '/home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/bin/overLaplacianDyMFoam' failed
make[3]: *** [/home/nik/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/bin/overLaplacianDyMFoam] Error 1
make[3]: uscita dalla directory "/home/nik/OpenFOAM/OpenFOAM-v1812/applications/solvers/basic/laplacianFoam/overLaplacianDyMFoam"
/home/nik/OpenFOAM/OpenFOAM-v1812/wmake/makefiles/apps:27: recipe for target 'overLaplacianDyMFoam' failed
make[2]: *** [overLaplacianDyMFoam] Error 2
make[2]: uscita dalla directory "/home/nik/OpenFOAM/OpenFOAM-v1812/applications/solvers/basic/laplacianFoam"
/home/nik/OpenFOAM/OpenFOAM-v1812/wmake/makefiles/apps:27: recipe for target 'laplacianFoam' failed
make[1]: *** [laplacianFoam] Error 2
make[1]: uscita dalla directory "/home/nik/OpenFOAM/OpenFOAM-v1812/applications/solvers/basic"
/home/nik/OpenFOAM/OpenFOAM-v1812/wmake/makefiles/apps:27: recipe for target 'basic' failed
make: *** [basic] Error 2

Anyone could help me in fixing the installation?
I am using Ubuntu 18.04 and OpenFoam v1812.

Thanks
Nik

wyldckat March 7, 2019 18:34

Quick questions:
  1. Which installation instructions are you following?
  2. What do the following commands give you?
    Code:

    mpirun --version
    mpicc --version


nik86 March 8, 2019 05:50

Hi Wyldckat,
many thanks for your reply.

I was following this guide:
https://www.openfoam.com/code/build-guide.php

However, I found an old post from you which already describe how to fix my installation with the following steps:

wclean $FOAM_SOLVERS/basic/laplacianFoam
wmake all $FOAM_SOLVERS/basic/laplacianFoam > log.make.laplacian 2>&1
gzip < log.make.laplacian > log.make.laplacian.gz

cd $WM_PROJECT_DIR

ln -s /usr/bin/mpicc.openmpi bin/mpicc
ln -s /usr/bin/mpirun.openmpi bin/mpirun

wclean all src/Pstream

wmRefresh
./Allwmake -j 4 > log.make 2>&1

Many thanks again
Nik

josephchou September 9, 2019 22:58

Quote:

Originally Posted by nik86 (Post 727231)
Hi Wyldckat,
many thanks for your reply.

I was following this guide:
https://www.openfoam.com/code/build-guide.php

However, I found an old post from you which already describe how to fix my installation with the following steps:

wclean $FOAM_SOLVERS/basic/laplacianFoam
wmake all $FOAM_SOLVERS/basic/laplacianFoam > log.make.laplacian 2>&1
gzip < log.make.laplacian > log.make.laplacian.gz

cd $WM_PROJECT_DIR

ln -s /usr/bin/mpicc.openmpi bin/mpicc
ln -s /usr/bin/mpirun.openmpi bin/mpirun

wclean all src/Pstream

wmRefresh
./Allwmake -j 4 > log.make 2>&1

Many thanks again
Nik

Hi Nik,

I had the same problem as yours. But after following the steps you mentioned above, it gave the same error. Do you have any idea how to fix it? And could you tell me in which 'old post' you found the solution? By the way, I was using Open MPI 3.1.4, gcc 4.8.5. Thanks a lot!

Zhou


All times are GMT -4. The time now is 22:40.