Hi,
I successfully compiled cfdemParticle, but when I compile the solver, I got an error like this:
/usr/bin/ld cannot find -llangrangianCFDEM
Does anyone has an idea?
Thanks.
rq
A project by DCS Computing and CFDEMresearch
This website uses cookies to ensure you get the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies. This website uses cookies. By continuing to browse the site you are agreeing to our use of cookies. More info
cgoniva | Tue, 06/14/2011 - 08:39
Hi! please make sure that the
Hi!
please make sure that the paths in /etc/bashrc are set correctly.
Please further check if you compiled the CFDEM package as liblagrangianCFDEM or probably as different name?
Cheers,
Chris
rqwang | Wed, 06/15/2011 - 16:08
Hi Chris, Thanks for your
Hi Chris,
Thanks for your reply. I found liblagrangianCFDEM is compiled as liblagrangianCFDEM_shared.
After correcting the Make/options, it works.
Thanks.
rq
hrvig | Wed, 03/01/2017 - 18:09
Can you explain in more details?
I am getting the following error when compiling CFDEM on a cluster running CENTOS 7 (having no problems compiling on local desktop running ubuntu):
/gpfs/gss1/work/OpenFOAM/ThirdParty-3.0.x/platforms/linux64/gcc-4.8.4/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-3.0.x
collect2: error: ld returned 1 exit status
Does anyone know how to fix this specific problem?
j-kerbl | Wed, 03/08/2017 - 16:57
Hi,
Hi,
please check the log of the compilaiton of the lagrangian library, $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/log/log_compileCFDEMcoupling_cfdemParticle
and the LIGGGHTS compilation
$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/log/log_compileLIGGGHTS
for errors and post them here.
Afterwards I'm sure we can help you.
Cheers,
Josef
sam_mcdermott | Fri, 03/24/2017 - 17:33
/usr/bin/ld: cannot find -lcoupleMany2Many
Hi,
I have the same issue that the error: /usr/bin/ld cannot find -llangrangianCFDEM, is generated when compiling the solvers. I looked into the logfile log_compileCFDEMcoupling_cfdemParticle and found the following: /usr/bin/ld: cannot find -lcoupleMany2Many.
Do you know how to tackle this problem?
Thanks in advance,
Sam
j-kerbl | Thu, 03/30/2017 - 13:10
Hi Sam,
Hi Sam,
I'll write you an email, if this is okay for you?
Cheers,
Josef
sam_mcdermott | Fri, 03/31/2017 - 13:30
Hi Josef,
Hi Josef,
I have managed to deal with this problem, however, the compilation of the solvers still does not work. I am getting these errors:
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/TurbulenceModels/incompressible/lnInclude -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/transportModels -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/s112882/CFDEM/CFDEMcoupling-17.02/src/lagrangian/cfdemParticle/lnInclude -I/home/s112882/CFDEM/CFDEMcoupling-17.02/src/lagrangian/cfdemParticle/cfdTools -IlnInclude -I. -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt64Opt/cfdemSolverPiso.o -L/home/s112882/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/lib \
-L/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib -lturbulenceModels -lincompressibleTurbulenceModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -llagrangianCFDEM-17.02-4.1 -lOpenFOAM -ldl \
-lm -o /home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/bin/cfdemSolverPiso
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `LAMMPS_NS::Input::one(char const*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `allocate_external_double(double**&, int, char const*, double, void*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `LAMMPS_NS::LAMMPS::~LAMMPS()'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `allocate_external_int(int**&, int, char const*, int, void*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `allocate_external_double(double**&, int, int, double, void*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `liggghts_get_maxtag(void*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `data_of_to_liggghts(char const*, char const*, void*, void*, char const*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `LAMMPS_NS::LAMMPS::LAMMPS(int, char**, ompi_communicator_t*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `data_liggghts_to_of(char const*, char const*, void*, void*&, char const*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `LAMMPS_NS::Input::file(char const*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `allocate_external_int(int**&, int, int, int, void*)'
collect2: error: ld returned 1 exit status
/home/s112882/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/general:132: recipe for target '/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/bin/cfdemSolverPiso' failed
make: *** [/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/bin/cfdemSolverPiso] Error 1
The compilation of iblagrangianCFDEM-17.02-4.1 seems to be fine, some warnings about using the old-style-cast is generated when compiling the cfdemParticleComp part. But I think these warnings should not influence the compilation of the solvers. Do you have any idea what can cause the failures in the compilation?
Greetings Sam
sam_mcdermott | Fri, 03/31/2017 - 15:45
Solved problem
Hi Josef,
I have managed to solve the problems and CFDEMcoupling now runs fine. Thanks for your help!
Cheers,
Sam
j-kerbl | Wed, 04/05/2017 - 13:31
Hi Sam,
Hi Sam,
actually I din't do much :)
Cheers and happy simulating,
Josef