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

Compilation Error OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2016, 00:21
Default Compilation Error OpenFOAM
  #1
Member
 
Upuli
Join Date: Feb 2016
Posts: 68
Rep Power: 10
upuli is on a distinguished road
Hi
I upgraded my system to Ubuntu 14.04 LTS . The solver which was compiled in the previous version of Ubuntu is getting the following error when recompile in Ubuntu 14.04LTS. Can someone help me to solve this.


Making dependency list for source file myreactingFoam.C
SOURCE=myreactingFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPDebug/myreactingFoam.o
In file included from myreactingFoam.C:49:0:
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’:
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
scalar maxDeltaT =
^
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPDebug/myreactingFoam.o -L/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib \
-lfiniteVolume -lfvOptions -lmeshTools -lsampling -lOpenFOAM -ldl -ggdb3 -DFULLDEBUG -lm -o /home/niranjan/OpenFOAM/niranjan-2.3.0/platforms/linux64GccDPDebug/bin/myreactingFoam
/usr/bin/ld: warning: libmpi.so.0, needed by /home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopen-rte.so.0, needed by /home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopen-pal.so.0, needed by /home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so, not found (try using -rpath or -rpath-link)
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Comm_rank'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Abort'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_comm_null'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Init'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_group_null'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Comm_group'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Allreduce'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Bsend'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Buffer_detach'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_byte'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Recv'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Wait'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Test'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Comm_size'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Waitall'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Get_count'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_double'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Comm_create'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Group_incl'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Probe'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Send'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_op_min'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Irecv'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Comm_free'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_comm_world'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Isend'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Finalize'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_op_sum'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Buffer_attach'
/home/niranjan/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/openmpi-system/libPstream.so: undefined reference to `MPI_Group_free'
collect2: error: ld returned 1 exit status
make: *** [/home/niranjan/OpenFOAM/niranjan-2.3.0/platforms/linux64GccDPDebug/bin/myreactingFoam] Error 1
upuli is offline   Reply With Quote

Old   May 23, 2016, 01:21
Default
  #2
New Member
 
Jianzhi Li
Join Date: Jul 2013
Location: Shanghai, China
Posts: 27
Rep Power: 12
epi_c is on a distinguished road
Send a message via Skype™ to epi_c
Hey Upuli,

May be you need to recompile your mpi library first.

B.R.
epi_c is offline   Reply With Quote

Old   May 25, 2016, 05:58
Default
  #3
Member
 
Upuli
Join Date: Feb 2016
Posts: 68
Rep Power: 10
upuli is on a distinguished road
Hi
How to recompile the mpi library?
upuli is offline   Reply With Quote

Old   July 30, 2018, 16:01
Default +1
  #4
Sgs
New Member
 
S
Join Date: Jun 2016
Posts: 15
Rep Power: 9
Sgs is on a distinguished road
I'm having the same issue, was there a resolution to this?
Sgs is offline   Reply With Quote

Reply


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
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit Sargam05 OpenFOAM Installation 13 March 22, 2014 05:21
[swak4Foam] swak4Foam compilation for OF-2.0.0 camoesas OpenFOAM Community Contributions 19 December 10, 2012 13:24
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 05:56
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 ftec OpenFOAM Installation 7 February 23, 2011 06:07
Compilation Error.... Arnab Siemens 4 September 12, 2004 15:54


All times are GMT -4. The time now is 23:51.