CFDEM 3.6 compilation error on cluster

Submitted by AliBlues on Wed, 03/29/2017 - 10:15

Hi,
I'm trying to install CFDEM 3.6.1 on a Red Hat linux V6.5, but I receive an error
collect2: error: ld returned 1 exit status
which I cannot figure what it actually means. I've also attached the cfdemSysTest and foamInstallationTest in case it helps.

I would greatly appreciate the help.
Best
Ali

AttachmentSize
Plain text icon log.txt929.33 KB
Plain text icon cfdemsystest.txt4.6 KB
Plain text icon foaminstallationtest.txt3.44 KB
j-kerbl's picture

j-kerbl | Thu, 03/30/2017 - 14:39

Hi Ali,

from the compilation log I see:
/vsc-hard-mounts/leuven-data/312/vsc31290/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 -lfiniteVolume
/vsc-hard-mounts/leuven-data/312/vsc31290/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 -lturbulenceModels
/vsc-hard-mounts/leuven-data/312/vsc31290/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 -lincompressibleTurbulenceModels
/vsc-hard-mounts/leuven-data/312/vsc31290/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 -lfvOptions
/vsc-hard-mounts/leuven-data/312/vsc31290/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 -lmeshTools
/vsc-hard-mounts/leuven-data/312/vsc31290/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 -llagrangian

So it does not find the OpenFOAM libraries it is supposed to see. Have you successfully compiled OpenFOAM without errors? From the foam installation I see that the $FOAM_APPBIN variable isn't set. Usually this is where the OF solvers go. The same is true for $FOAM_LIBBIN, where the above mentioned OF libs should be. If OF solvers run on your side, it is crucial to find where the OF libs are stored on your machine, you could try searching for libfiniteVolume.so .

P.S. something went wrong with the file-uploads, however I was able to retrieve them from the webserver and I'll have this fixed.

Cheers,
Josef

AliBlues | Thu, 03/30/2017 - 16:25

Hi Josef,
Thanks a lot for the reply. You're right. the OF variables were not set. It was working just fine before, that's why I didnt even bother looking at the file. Don't know how this happened ?!
Anyways now it works. Thanks. Two questions:

1) I tried one of the tutorials and i get the following warning:
//--------------------
# read the restart file
read_restart ../DEM/post/restart/liggghts.restart
Reading restart file ...
WARNING: Restart file version does not match LIGGGHTS version (../read_restart.cpp:502)
--> restart file = Version LIGGGHTS-PUBLIC 3.6.0, compiled 2017-03-30-15:30:31 by vsc31290, git commit 18a96adf8688e0d46423c7d812001a8d9e0a9af0
--> LIGGGHTS = Version LIGGGHTS-PUBLIC 3.6.0, compiled 2017-03-30-15:32:32 by vsc31290, git commit 18a96adf8688e0d46423c7d812001a8d9e0a9af0
WARNING: Restart file used different 3d processor grid (../read_restart.cpp:562)
//----------------------

Why is it complaining about version difference between liggghts and restartfile?

2) I complied the cfdem by commenting the VTK addition in addLibs_universal/additionalLibs_3.0.x (as well as superquadric):
#include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_vtk

I commented it since I was getting compilation error. You mentioned in a previous post that having VTK is advantageous since I dont need to use lpp anymore. But could you please elaborate on how to actually proceed to compile with VTK.

Very much appreciate your time and help.
Best
Ali

j-kerbl's picture

j-kerbl | Wed, 04/05/2017 - 14:54

Hi Ali,

1) The compilation of the LIGGGHTS executable and the LIGGGHTS-library, which is used by CFDEM, happens one after the other. So the time-stamp for two is slightly apart. The restart file is created by LIGGGHTS alone and later read by CFDEMcoupling with the LIGGGHTS-libary. You can ignore this.

2) Do you have VTK installed on your system? If yes, how and where?

Cheers,
Josef

maruusa | Wed, 01/03/2024 - 03:55

The solutions to fix CFDEM 3.6 compilation errors that you shared are quite good and it helps get the system working again quickly. aa route planner