Error when compiling CFDEM

Submitted by yidongxia on Wed, 07/27/2016 - 17:47

Hi,

I am a new user of CFDEM. I use Linux Mint 17.3. To install CFDEM, I first installed OpenFOAM as recommended using git, and then followed to install LIGGGHTS and CFDEM. However, some errors show up as below when I complied CFDEM. Apparently, it seems "CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev" does not exist. But what I have in that directory is
additionalLibs_2.4.x
additionalLibs_3.0.x
additionalLibs_3.2

#################################################################################################
[xiay][~]> cfdemCompCFDEM

Compiling sub-libraries of LIGGGHTS now...
Please provide the libraries to be compiled in the //home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/library-liggghts-list.txt file.
Libraries must be in: /home/xiay/LIGGGHTS/LIGGGHTS-PUBLIC/src/../lib/, or a path defined by the Line in the above file.
...now checking if LIGGGHTS libraries are compiled that are needed for CFDEM's src packages.

Compiling sub-libraries of LIGGGHTS now...
Please provide the libraries to be compiled in the //home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/library-liggghts-list.txt file.
Libraries must be in: /home/xiay/LIGGGHTS/LIGGGHTS-PUBLIC/src/../lib/, or a path defined by the Line in the above file.

Please provide the libraries to be compiled in the /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/library-list.txt file.
will change path and create lnInclude...
will change path and create lnInclude...

\n Creation of lnInclude directories finished!

will change path...
rm: cannot remove ‘/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/log/log_compileCFDEMcoupling_cfdemParticle’: No such file or directory

// log_compileCFDEMcoupling_cfdemParticle-2016-07-27-09:29 //

/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle

Compiling a incompressible library.
removing all .dep files ...
Make/linux64GccDPInt32Opt/options:60: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
Make/linux64GccDPInt32Opt/options:60: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle
will change path...
rm: cannot remove ‘/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/log/log_compileCFDEMcoupling_scalarTransportModelsCFDEM’: No such file or directory

// log_compileCFDEMcoupling_scalarTransportModelsCFDEM-2016-07-27-09:29 //

/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/eulerian/scalarTransportModelsCFDEM

Compiling a incompressible library.
removing all .dep files ...
Make/options:21:12: warning: backslash-newline at end of file [enabled by default]
LIB_LIBS = \
^
Make/linux64GccDPInt32Opt/options:60: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
Make/linux64GccDPInt32Opt/options:60: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/eulerian/scalarTransportModelsCFDEM
rm: cannot remove ‘log/log_compile_results_success’: No such file or directory

This routine will compile the solvers specified in solver-list.txt

Please provide the solvers to be compiled in the /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/solver-list.txt file.
structure:
path to provide the path relative to CFDEM_SOLVER_DIR

example:
cfdemSolverPiso/dir

running compilation in pseudo-parallel mode of 4 solvers
do compilation in serial
waiting...
compiling cfdemSolverPiso

// log_compileCFDEMcoupling_cfdemSolverPiso_cfdemSolverPiso-2016-07-27-09:29 //

/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverPiso

removing all .dep files ...
Make/linux64GccDPInt32Opt/options:52: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
Make/linux64GccDPInt32Opt/options:52: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverPiso
waiting...
compiling cfdemSolverIB

// log_compileCFDEMcoupling_cfdemSolverIB_cfdemSolverIB-2016-07-27-09:29 //

/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverIB

removing all .dep files ...
Make/linux64GccDPInt32Opt/options:52: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
Make/linux64GccDPInt32Opt/options:52: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverIB
waiting...
compiling cfdemSolverPisoScalar

// log_compileCFDEMcoupling_cfdemSolverPisoScalar_cfdemSolverPisoScalar-2016-07-27-09:29 //

/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverPisoScalar

removing all .dep files ...
Make/linux64GccDPInt32Opt/options:52: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
Make/linux64GccDPInt32Opt/options:52: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverPisoScalar
waiting...
compiling cfdemSolverPisoSTM

// log_compileCFDEMcoupling_cfdemSolverPisoSTM_cfdemSolverPisoSTM-2016-07-27-09:29 //

/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverPisoSTM

removing all .dep files ...
Make/linux64GccDPInt32Opt/options:52: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
Make/linux64GccDPInt32Opt/options:52: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverPisoSTM
waiting...
compilation done.
waiting...
collecting log of /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverPiso
collecting log of /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverIB
collecting log of /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverPisoScalar
collecting log of /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers/cfdemSolverPisoSTM

This routine will compile the utilities specified in utilities-list.txt

Please provide the utilities to be compiled in the /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/utilities-list.txt file.
structure:
path to provide the path relative to CFDEM_UT_DIR

example:
cfdemPostproc/dir

running compilation in pseudo-parallel mode of 1 utilities
do compilation in serial
waiting...

// log_compileCFDEMcoupling_cfdemPostproc_cfdemPostproc-2016-07-27-09:29 //

/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/utilities/cfdemPostproc

removing all .dep files ...
Make/linux64GccDPInt32Opt/options:52: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
Make/linux64GccDPInt32Opt/options:52: /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev: No such file or directory
make: *** No rule to make target `/home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/additionalLibs_dev'. Stop.
wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/utilities/cfdemPostproc
waiting...
compilation done.
#################################################################################################

To help resolve my issue, I've pasted the system information test as below:

#################################################################################################
[xiay][~]> cfdemSysTest

*********************************************
* C F D E M (R) c o u p l i n g *
* *
* by DCS Computing GmbH *
* www.dcs-computing.com *
*********************************************

*********************************
CFDEM(R)coupling system settings:
*********************************
CFDEM_VERSION=PUBLIC
couple to OF_VERSION=dev
compile option=Opt

check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/xiay/CFDEM/xiay-PUBLIC-dev
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/xiay/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_LPP_DIR = /home/xiay/LIGGGHTS/mylpp/src
valid:yes critical:yes - $CFDEM_ADD_LIBS_DIR = /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc
valid:NO critical:no - $CFDEM_PIZZA_DIR = /home/xiay/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src does not exist
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /home/xiay/CFDEM/xiay-PUBLIC-dev/log/logFilesCFDEM-PUBLIC-dev
valid:NO critical:no - $C3PO_SRC_DIR = /home/xiay/CFDEM/CFDEMcoupling-PUBLIC-dev/src/c3po does not exist

library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_fedora_fpic
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-dev
$LD_LIBRARY_PATH = /home/xiay/OpenFOAM/ThirdParty-dev/platforms/linux64Gcc/gperftools-svn/lib:/home/xiay/OpenFOAM/ThirdParty-dev/platforms/linux64Gcc/ParaView-5.0.1/lib/paraview-5.0:/home/xiay/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/home/xiay/OpenFOAM/ThirdParty-dev/platforms/linux64GccDPInt32/lib/openmpi-system:/usr/lib/openmpi/lib:/home/xiay/OpenFOAM/xiay-dev/platforms/linux64GccDPInt32Opt/lib:/home/xiay/OpenFOAM/site/dev/platforms/linux64GccDPInt32Opt/lib:/home/xiay/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/lib:/home/xiay/OpenFOAM/ThirdParty-dev/platforms/linux64GccDPInt32/lib:/home/xiay/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/lib/dummy
$WM_NCOMPPROCS =
*******************
g++:
/usr/bin/g++
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 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 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 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++
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 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.

mpirun:
/usr/bin/mpirun
mpirun (Open MPI) 1.6.5

Report bugs to http://www.open-mpi.org/community/help/
**********************
additional packages...
c3po does not exist.
#################################################################################################

Thanks a lot for any comment and suggestion!

paul | Mon, 08/01/2016 - 09:19

I would suggest trying to set $CFDEM_ADD_LIBS_NAME to additionalLibs_3.0.x and repeating the process. Btw, you might also want to consider setting $WM_NCOMPPROCS to a higher value to speed up compilation.