error in compiling solver

Submitted by lenard10 on Fri, 04/29/2011 - 04:25

Hi,
I've successfully installed openmpi, openfoam and ligghts, as well as compiling the cfdem src. But during compiling the solver, I have following errors:
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Type_get_envelope'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Waitall'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `ompi_mpi_comm_null'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Abort'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Topo_test'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Group_excl'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Type_create_subarray'

;;;
;;;

/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to /yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Comm_size'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Group_range_incl'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Graph_get'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Group_free'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Type_indexed'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Cart_get'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Barrier'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Type_commit'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI::Win::Free()'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Cart_map'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Win_unlock'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Comm_rank'
/home/yanheng/OpenFOAM/yanheng-1.7.1/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `MPI_Alltoallw'
collect2: ld returned 1 exit status
make: *** [/home/yanheng/OpenFOAM/yanheng-1.7.1/applications/bin/linux64GccDPOpt/cfdemSolverPiso_shared] Error 1

I don't know how to solve the problem, I added these mpi_ function path in the Make/options file but still didn't work.
Thanks for any suggestion!

Best,
Lenard

ckloss's picture

ckloss | Fri, 04/29/2011 - 07:54

this typically means you compiled LIGGGHTS and the CFDEM solver with different compilers

Christoph

akimbrell | Tue, 07/26/2011 - 16:12

Can you please share the solution to the problem? Several threads mention these same issues, it would be helpful to have some additional information about how to fix the problems.

Tao | Fri, 05/13/2011 - 18:05

Hi Christoph,
I compiled LIGGGHTS and the CFDEM solver with the same compilers, g++, but I still have a problem bellow:
/usr/bin/ld: Make/linux64GccDPOpt/cfdemSolverPiso.o: in function main:cfdemSolverPiso.C(.text+0x24b3): error: undefined reference to 'Foam::incompressible::turbulenceModel::New(Foam::GeometricField, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField const&, Foam::transportModel&)'
collect2: ld returned 1 exit status

Can you help give me any idea about that?

Cheers,
Tao

cgoniva's picture

cgoniva | Mon, 05/16/2011 - 08:16

Hi!

did you use version 1.7.1?

did you use the latest LIGGGHTS - dev version?

did you compile the src before?

did you compile both with the same compiler?

Cheers,
Chris