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

[OpenFOAM.com] An Error in recompiling of openFoam-4.0

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2020, 11:30
Default An Error in recompiling of openFoam-4.0
  #1
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 10
alimea is on a distinguished road
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
Does anybody know the solution?
Thanks
alimea is offline   Reply With Quote

Old   April 6, 2020, 12:24
Default missing openmpi library
  #2
Member
 
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 6
Rvadrabade is on a distinguished road
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 )
Rvadrabade is offline   Reply With Quote

Old   April 8, 2020, 08:12
Default
  #3
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 10
alimea is on a distinguished road
Quote:
Originally Posted by Rvadrabade View Post
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 )
Dear Rahul,
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
alimea is offline   Reply With Quote

Old   April 8, 2020, 14:59
Default Try installing openmpi
  #4
Member
 
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 6
Rvadrabade is on a distinguished road
Why don't you try installing Openmpi. I already shared a link.
Rvadrabade is offline   Reply With Quote

Old   April 8, 2020, 15:44
Default
  #5
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 10
alimea is on a distinguished road
Quote:
Originally Posted by Rvadrabade View Post
Why don't you try installing Openmpi. I already shared a link.
yes, I have compiled it, but a small point was missed.

thanks
alimea is offline   Reply With Quote

Reply

Tags
compile, error, openfaom

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] 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


All times are GMT -4. The time now is 14:20.