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

[OpenFOAM.com] 'laplacianFoam' failed

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By nik86

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2019, 14:20
Unhappy 'laplacianFoam' failed
  #1
New Member
 
Nicola
Join Date: Mar 2019
Posts: 2
Rep Power: 0
nik86 is on a distinguished road
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

Last edited by wyldckat; March 7, 2019 at 19:32. Reason: Added [CODE][/CODE] markers
nik86 is offline   Reply With Quote

Old   March 7, 2019, 19:34
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick questions:
  1. Which installation instructions are you following?
  2. What do the following commands give you?
    Code:
    mpirun --version
    mpicc --version
__________________
wyldckat is offline   Reply With Quote

Old   March 8, 2019, 06:50
Default
  #3
New Member
 
Nicola
Join Date: Mar 2019
Posts: 2
Rep Power: 0
nik86 is on a distinguished road
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
wyldckat and randolph like this.
nik86 is offline   Reply With Quote

Old   September 9, 2019, 23:58
Default
  #4
New Member
 
Zhou Zhang
Join Date: Jan 2019
Location: Ann Arbor, Michigan
Posts: 3
Rep Power: 7
josephchou is on a distinguished road
Quote:
Originally Posted by nik86 View Post
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
josephchou is offline   Reply With Quote

Reply

Tags
failed, installation, laplacianfoam, mpi


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
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel U.Golling OpenFOAM Running, Solving & CFD 52 September 23, 2023 04:35
Initial conditions for uniform flow andreas OpenFOAM 5 November 16, 2012 16:00
[OpenFOAM] ParaView/Parafoam error when making animation Disco_Caine ParaView 6 September 28, 2010 10:54
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31
user defined function cfduser CFX 0 April 29, 2006 11:58


All times are GMT -4. The time now is 08:44.