error in compiling solver

Submitted by lenard10 on
akimbrell

In reply to by anonymous_stub (not verified)

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.

Tue, 26 Jul 2011 - 16:12 Permalink
Tao

In reply to by anonymous_stub (not verified)

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

Fri, 13 May 2011 - 18:05 Permalink
cgoniva

In reply to by anonymous_stub (not verified)

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

Mon, 16 May 2011 - 08:16 Permalink

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