What is this faiure after compile on cannot find lagrangianCFD library for CFDEMcoupling-PUBLIC-2.2.x?

Submitted by Poormanphysics on Sat, 07/20/2013 - 22:48

Hi readers:

I made a clean install on openSUSE 12.3 managed to compile without errors for OpenFOAM and LIGGGHTS but many times a try after I execute cfdemCompCFDEM I have at the end (shown as snipped below):

/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-2.2.x
collect2: error: ld returned 1 exit status
make: *** [/home/berns/OpenFOAM/berns-2.2.x/platforms/linux64GccDPOpt/bin/cfdemPostproc] Error 1
Note: the list of utilities compiled might be incomplete.
please check /home/berns/CFDEM/CFDEMcoupling-PUBLIC-2.2.x/applications/utilities for more utilities available

I believed I have followed the instruction (PDF) to the letter . We need this code running badly for our university work could use some help.

Thanks,

jacky | Mon, 07/22/2013 - 16:27

Hi everyone,
I am new in CFDEM.
Fortunately I successfully compiled LIGGGHTS 2.3.6 but I faced with the same error.

The first error appears in the log file :
/usr/bin/ld: cannot find -llmp_fedora_fpic
collect2: ld returned 1 exit status

And in the solvers :
/usr/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-2.2.1
collect2: ld returned 1 exit status

Any help !?

Cheers,
Jacky

aaigner's picture

aaigner | Wed, 07/24/2013 - 13:52

Hi!

Check the export CFDEM_ ... commands that you added to your bashrc. Is your CFDEM_LIGGGHTS_MAKEFILE_NAME=fedora_fpic ?
Did you compile LIGGGHTS without error? Can you find the file lmp_fedora_fpic in the LIGGGHTS-PUBLIC/src directory?

cfdemCompCFDEM compiles first the source, next the solvers and finally the utilities. Does cfdemCompCFDEMsrc run without errors? It should generate the lagrangianCFDEM-PUPLIC-2.2.1 (or whatever version) library. You can find it in your OpenFOAM/xxxUSERxxx-2.2.1/platforms/linuxGccDPOpt/lib/ directory.

I don't think that it will fix anything, but execute cfdemCompM2M before cfdemCompCFDEM. Give it a try!

Cheers,
Andreas

jacky | Thu, 07/25/2013 - 12:49

Hello,

Thanks Andreas for your help.

1. Is your CFDEM_LIGGGHTS_MAKEFILE_NAME=fedora_fpic ?
Yes, it is set correctlly.

2. Did you compile LIGGGHTS without error?
Yes, I run a case without any problem.

3. Can you find the file lmp_fedora_fpic in the LIGGGHTS-PUBLIC/src directory?
No, I could not find it but liggghts works perfectlly !!!!
I installed a fresh Ubuntu and liggghts has been installed for the first time on this computer.

4. Does cfdemCompCFDEMsrc run without errors?
No, Indeed the errors shown in my earlier comment are related to the src compiler.

Cheers,
Jacky

aaigner's picture

aaigner | Fri, 07/26/2013 - 08:56

That's somewhat confusing. How did you compile Liggghts? With cfdemCompLIG or with make fedora? At least any lmp_... should be there. You used it for the case.

Cheers,
Andi

Poormanphysics | Sun, 07/28/2013 - 01:27

Where and what is "cfdemCompM2M"? Thats not in the PDF document in the instructions for CFDEM?
Thanks.

USC Phil-LiDAR Research Center
University of San Carlos

jacky | Fri, 07/26/2013 - 11:44

First I compiled it with cfdemCompLIG. I did not see neither error nor lmp_... but liggghts was working while CFDEM did not compile.

Then I compile it with the following commands :
cd liggghts_GIT/src
make clean-all
make fedora_fpic -j8 >& /tmp/build.txt
make makelib >& /tmp/build1.txt
make -f Makefile.lib fedora_fpic >& /tmp/build2.txt

and then lmp_... appeared in src folder and also CFDEM compiled successfully.

I tried 2 times both procedure and I think some thing in going wrong with cfdemCompLIG.