Error when compile with CFDEM

Submitted by xujiancqu on Tue, 11/06/2012 - 14:24

Both OpenFoam and LIGGGHTS is installed and run OK.
When I compile CFDEM by using 'cfdemCompCFDEM', I get a error which I shown as below.

2012/11/17 Updated +1

cgoniva‘s reply in some topics hint me to re-compile Liggghts by using cfdemComLig again, then the problems solved.

Thanks again.

----------------------------------------------------------------------------
2012/11/07 Update:
The problems refer to MPL_XXX is solved.
However, there is another problem as shown below.

Error: /home/jian/OpenFOAM/jian-2.1.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.1.x.so: undefined reference to `LAMMPS_NS::LAMMPS::LAMMPS(int, char**, ompi_communicator_t*)'

----------------------------------------------------------------------------
2012/11/06
-lm -o /home/jian/OpenFOAM/jian-2.1.x/platforms/linux64GccDPOpt/bin/cfdemSolverPisoScalar
/usr/lib/libmpich.so.3: undefined reference to `MPL_putenv'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trfree'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trDebugLevel'
/usr/lib/libmpich.so.3: undefined reference to `MPL_env2str'
/home/jian/OpenFOAM/jian-2.1.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.1.x.so: undefined reference to `LAMMPS_NS::LAMMPS::LAMMPS(int, char**, ompi_communicator_t*)'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trdump'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trid'
/usr/lib/libmpich.so.3: undefined reference to `MPL_env2int'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trspace'
/usr/lib/libmpich.so.3: undefined reference to `MPL_env2range'
/usr/lib/libmpich.so.3: undefined reference to `MPL_env2bool'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trrealloc'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trinit'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trvalid'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trmalloc'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trlevel'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trstrdup'
/usr/lib/libmpich.so.3: undefined reference to `MPL_TrSetMaxMem'
/usr/lib/libmpich.so.3: undefined reference to `MPL_trcalloc'
collect2: ld returned 1 exit status
make: *** [/home/jian/OpenFOAM/jian-2.1.x/platforms/linux64GccDPOpt/bin/cfdemSolverPisoScalar] Error 1
----------------------------------------------------------------------------

How to solve the problems?

Thanks for your help in advance.

Rds

Jian

xujiancqu | Tue, 11/06/2012 - 15:44

initially, the error is mpi.h not found.

So I add 'I /usr/include/openmpi/' in the option file in the make fold, so I could get /home/jian/OpenFOAM/jian-2.1.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.1.x.so' is up to date.

Then the above problem happens.

Other results is supplmented:

*******************
system settings:
*******************
CFDEM_VERSION=PUBLIC
couple to OF_VERSION=2.1.x

check if paths are set correctly
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/jian/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/jian/CFDEM/CFDEMcoupling-PUBLIC-2.1.x
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/jian/CFDEM/jian-PUBLIC-2.1.x
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/jian/CFDEM/CFDEMcoupling-PUBLIC-2.1.x/src/lagrangian/cfdemParticle
valid:yes critical:yes - $CFDEM_LPP_DIR = /home/jian/LIGGGHTS/mylpp/src
valid:NO critical:no - $CFDEM_PIZZA_DIR = /home/jian/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src does not exist
valid:NO critical:no - $CFDEM_TEST_HARNESS_PATH = /home/jian/CFDEM/jian-PUBLIC-2.1.x/log/logFilesCFDEM-PUBLIC-2.1.x does not exist

library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_fedora_fpic
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-2.1.x
$LD_LIBRARY_PATH = /home/jian/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/lib/paraview-3.12:/home/jian/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3:/home/jian/OpenFOAM/ThirdParty-2.1.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3:/home/jian/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/openmpi-1.5.3/lib:/home/jian/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/openmpi-1.5.3/lib64:/home/jian/OpenFOAM/jian-2.1.x/platforms/linux64GccDPOpt/lib:/home/jian/OpenFOAM/site/2.1.x/platforms/linux64GccDPOpt/lib:/home/jian/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib:/home/jian/OpenFOAM/ThirdParty-2.1.x/platforms/linux64GccDPOpt/lib:/home/jian/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/dummy
*******************
g++:
/usr/bin/g++
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc:
/usr/bin/gcc
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mpic++:
/usr/bin/mpic++
c++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.