Compilation Error OpenFOAM
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 |
Hey Upuli,
May be you need to recompile your mpi library first. B.R. |
Hi
How to recompile the mpi library? |
+1
I'm having the same issue, was there a resolution to this?
|
All times are GMT -4. The time now is 23:20. |