|
[Sponsors] |
[OpenFOAM.com] An Error in recompiling of openFoam-4.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 4, 2020, 11:30 |
An Error in recompiling of openFoam-4.0
|
#1 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Dear foamers,
I have upgraded my Linux to 16.04 version. Because of some problems, I had to recompile the openFoam-4.0. when I compile it (using Allwmake), an error has been appeared: HTML Code:
-lrandomProcesses -lfiniteVolume -lmeshTools -lOpenFOAM -ldl \ -lm -o /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/bin/dnsFoam /usr/bin/ld: warning: libmpi.so.1, needed by /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so, not found (try using -rpath or -rpath-link) /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/applications/solvers/DNS/dnsFoam/dnsFoam.o:(.data.rel.ro._ZTVN4Foam8OPstreamE[_ZTVN4Foam8OPstreamE]+0x80): undefined reference to `Foam::UOPstream::writeQuoted(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Waitall' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_comm_null' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Abort' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `non-virtual thunk to Foam::polyMesh::checkFaceSkewness(bool, Foam::HashSet<long, Foam::Hash<long> >*) const' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_double' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Get_count' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `Foam::regExp::set(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) const' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Comm_create' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Group_incl' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Init' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `non-virtual thunk to Foam::polyMesh::checkFaceOrthogonality(bool, Foam::HashSet<long, Foam::Hash<long> >*) const' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `non-virtual thunk to Foam::polyMesh::faces() const' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `non-virtual thunk to Foam::polyMesh::oldPoints() const' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_group_null' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `Foam::regExp::match(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Probe' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Comm_group' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Send' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `Foam::regExp::operator=(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Allreduce' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `non-virtual thunk to Foam::polyMesh::faceNeighbour() const' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_op_min' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Buffer_detach' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Bsend' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_byte' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Irecv' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Recv' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Comm_free' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_comm_world' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `non-virtual thunk to Foam::polyMesh::points() const' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `Foam::regExp::regExp(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Wait' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `non-virtual thunk to Foam::polyMesh::faceOwner() const' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `Foam::dynamicCode::setMakeOptions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Test' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Isend' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Alltoall' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Finalize' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_op_sum' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Buffer_attach' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Comm_size' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Group_free' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so: undefined reference to `Foam::dynamicCode::setFilterVariable(Foam::word const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Comm_rank' collect2: error: ld returned 1 exit status /home/drnili/OpenFOAM/OpenFOAM-4.0/wmake/makefiles/general:132: recipe for target '/home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/bin/dnsFoam' failed make[2]: *** [/home/drnili/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/bin/dnsFoam] Error 1 make[2]: Leaving directory '/home/drnili/OpenFOAM/OpenFOAM-4.0/applications/solvers/DNS/dnsFoam' /home/drnili/OpenFOAM/OpenFOAM-4.0/wmake/makefiles/apps:39: recipe for target 'dnsFoam' failed make[1]: *** [dnsFoam] Error 2 make[1]: Leaving directory '/home/drnili/OpenFOAM/OpenFOAM-4.0/applications/solvers/DNS' /home/drnili/OpenFOAM/OpenFOAM-4.0/wmake/makefiles/apps:39: recipe for target 'DNS' failed make: *** [DNS] Error 2 Thanks |
|
April 6, 2020, 12:24 |
missing openmpi library
|
#2 |
Member
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8 |
I think as you have upgraded probably openmpi libraries are missing.
"/usr/bin/ld: warning: libmpi.so.1, needed by ...". Make sure that you have "libmpi.so.1" in "/usr/bin/". Read contents relate to mpi on https://openfoam.org/download/4-0-ubuntu/ (Also,why are you still using OF4?? everyone should use latest one ) |
|
April 8, 2020, 08:12 |
|
#3 | |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Quote:
Thank you for your answer. I'm sorry to reply late because of a lack of access to my system. I checked "/usr/bin/" folder. There is no "libmpi.so.1" on that. I think "1" has a special meaning. About your last question: I'm using rheoTool, which is working on OF-4.0, and 6.0. However, I have OF-4.0, OF-7. Regards, Ali |
||
April 8, 2020, 14:59 |
Try installing openmpi
|
#4 |
Member
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8 |
Why don't you try installing Openmpi. I already shared a link.
|
|
April 8, 2020, 15:44 |
|
#5 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
||
Tags |
compile, error, openfaom |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 4.0, bad option -t in zsh | rdbisme | OpenFOAM Installation | 3 | December 30, 2016 13:10 |
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 14, 2016 11:19 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 04:18 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |