Hi there,
I am a newbie of CFDEM. Although I have successfully installed the latest CFDEM on my PC with Ubuntu 16.04, I still cannot install it on our university hpc with centos 6.5. I used gcc-4.9.3 and binutils-2.25.1. The log file of cfdemCompCFDEM shows the following error:
subModels/dataExchangeModel/oneWayVTK/oneWayVTK.C:92:6: error: prototype for ‘void Foam::oneWayVTK::getData(Foam::word, Foam::word, double** const&, int) const’ does not match any in class ‘Foam::oneWayVTK’
void oneWayVTK::getData
^
In file included from subModels/dataExchangeModel/oneWayVTK/oneWayVTK.C:34:0:
subModels/dataExchangeModel/oneWayVTK/oneWayVTK.H:102:14: error: candidates are: virtual void Foam::oneWayVTK::getData(Foam::word, Foam::word, int** const&, Foam::label) const
void getData
^
subModels/dataExchangeModel/oneWayVTK/oneWayVTK.H:94:14: error: virtual void Foam::oneWayVTK::getData(Foam::word, Foam::word, double** const&, Foam::label) const
void getData
^
make: *** [Make/linux64Gcc48DPInt64Opt/subModels/dataExchangeModel/oneWayVTK/oneWayVTK.o] Error 1
will change path...
rm: cannot remove `/home/chaoliu/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle/etc/log/log_compileCFDEMcoupling_scalarTransportModelsCFDEM': No such file or directory
*****************************
and
*****************************
g++ -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 -DOMPI_SKIP_MPICXX -DCFDEMWMPROJECT$
g++ -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 -DOMPI_SKIP_MPICXX -DCFDEMWMPROJECT$
-L/home/chaoliu/OpenFOAM/chaoliu-3.0.x/platforms/linux64Gcc48DPInt64Opt/lib -lturbulenceModels -lincompressibleTurbulenceModels -lfvOptions -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lfvOptions -llagrangian$
-lm -o /home/chaoliu/OpenFOAM/chaoliu-3.0.x/platforms/linux64Gcc48DPInt64Opt/bin/cfdemSolverPiso
/share1/binutils/2.25.1/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-3.0.x
/share1/binutils/2.25.1/bin/ld: cannot find -lvtkParallelMPI-7.1
collect2: error: ld returned 1 exit status
make: *** [/home/chaoliu/OpenFOAM/chaoliu-3.0.x/platforms/linux64Gcc48DPInt64Opt/bin/cfdemSolverPiso] Error 1
waiting...
compiling cfdemSolverIB
*****************************
Any suggestion would be very appreciated. Thanks.
************************************
PS: here is the result of 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=3.0.x
compile option=Opt
check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/chaoliu/CFDEM/CFDEMcoupling-PUBLIC-3.0.x
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/chaoliu/CFDEM/chaoliu-PUBLIC-3.0.x
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/chaoliu/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/chaoliu/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/chaoliu/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/chaoliu/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:NO critical:yes - $CFDEM_LPP_DIR = /home/chaoliu/LIGGGHTS/mylpp/src does not exist
valid:yes critical:yes - $CFDEM_ADD_LIBS_DIR = /home/chaoliu/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle/etc/addLibs_universal
valid:NO critical:no - $CFDEM_PIZZA_DIR = /home/chaoliu/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src does not exist
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /home/chaoliu/CFDEM/chaoliu-PUBLIC-3.0.x/log/logFilesCFDEM-PUBLIC-3.0.x
valid:NO critical:no - $C3PO_SRC_DIR = does not exist
library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_fedora_fpic
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-3.0.x
$LD_LIBRARY_PATH = /share1/gcc/5.2.0/lib64:/share1/gcc/5.2.0/lib/gcc/x86_64-redhat-linux/5.2.0:/home/chaoliu/OpenFOAM/ThirdParty-3.0.x/platforms/linux64Gcc48/boost_1_55_0/lib:/home/chaoliu/OpenFOAM/ThirdParty-3.0.x/platforms/linux64Gcc48/CGAL-4.7/lib:/home/chaoliu/OpenFOAM/ThirdParty-3.0.x/platforms/linux64Gcc48/gperftools-svn/lib:/home/chaoliu/OpenFOAM/ThirdParty-3.0.x/platforms/linux64Gcc48/ParaView-4.4.0/lib/paraview-4.4:/home/chaoliu/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64Gcc48DPInt64Opt/lib/openmpi-system:/home/chaoliu/OpenFOAM/ThirdParty-3.0.x/platforms/linux64Gcc48DPInt64Opt/lib/openmpi-system:/share1/openmpi/1.10.6-gcc/lib:/home/chaoliu/OpenFOAM/chaoliu-3.0.x/platforms/linux64Gcc48DPInt64Opt/lib:/home/chaoliu/OpenFOAM/site/3.0.x/platforms/linux64Gcc48DPInt64Opt/lib:/home/chaoliu/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64Gcc48DPInt64Opt/lib:/home/chaoliu/OpenFOAM/ThirdParty-3.0.x/platforms/linux64Gcc48DPInt64Opt/lib:/home/chaoliu/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64Gcc48DPInt64Opt/lib/dummy:/share1/qt/4.8.7/lib:/share1/binutils/2.25.1/lib:/usr/lib64:/usr/lib:/share1/gmp/6.1.0/lib:/share1/mpc/1.0.3/lib:/share1/mpfr/3.1.3/lib
$WM_NCOMPPROCS =
$WM_LABEL_SIZE = 64
!!!! Warning: WM_LABEL_SIZE must be 32!!!!! (Please correct in /home/chaoliu/OpenFOAM/OpenFOAM-3.0.x/etc/bashrc.)
Additional lib settings
make: Warning: File `.Makefile_vtk_tmp' has modification time 0.74 s in the future
VTK_PATH = -L/home/chaoliu/VTK/vtk-7.1.0/lib/
VTK_LIB = -lvtkCommonCore-7.1 -lvtkIOCore-7.1 -lvtkIOXML-7.1 -lvtkIOLegacy-7.1 -lvtkCommonDataModel-7.1 -lvtkParallelCore-7.1 -lvtkParallelMPI-7.1 -lvtkCommonExecutionModel-7.1 -lvtkFiltersCore-7.1 -lvtkFiltersHybrid-7.1 -lvtkIOParallelXML-7.1
VTK_INC = -I/home/chaoliu/VTK/vtk-7.1.0/include/vtk-7.1
CFDEM_ADD_LIB_PATHS = -L/home/chaoliu/VTK/vtk-7.1.0/lib/
CFDEM_ADD_LIBS = -lvtkCommonCore-7.1 -lvtkIOCore-7.1 -lvtkIOXML-7.1 -lvtkIOLegacy-7.1 -lvtkCommonDataModel-7.1 -lvtkParallelCore-7.1 -lvtkParallelMPI-7.1 -lvtkCommonExecutionModel-7.1 -lvtkFiltersCore-7.1 -lvtkFiltersHybrid-7.1 -lvtkIOParallelXML-7.1
make: warning: Clock skew detected. Your build may be incomplete.
*******************
g++:
/share1/gcc/5.2.0/bin/g++
g++ (GCC) 5.2.0
Copyright (C) 2015 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:
/share1/gcc/5.2.0/bin/gcc
gcc (GCC) 5.2.0
Copyright (C) 2015 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++:
/share1/openmpi/1.10.6-gcc/bin/mpic++
g++ (GCC) 5.2.0
Copyright (C) 2015 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:
/share1/openmpi/1.10.6-gcc/bin/mpirun
mpirun (Open MPI) 1.10.6
Report bugs to http://www.open-mpi.org/community/help/
**********************
additional packages...
********************************************************
Chao
j-kerbl | Wed, 03/08/2017 - 17:01
Hi Chao,
Hi Chao,
thanks for your detailed description!
Please beware of the output from cfdemSysTest:
$WM_LABEL_SIZE = 64
!!!! Warning: WM_LABEL_SIZE must be 32!!!!! (Please correct in /home/chaoliu/OpenFOAM/OpenFOAM-3.0.x/etc/bashrc.)
I am sorry, but for now you'll have to change the setting in OFs bashrc and recompile it.
So far, I wasn't able to see any other errors.
Cheers,
Josef
cupes | Thu, 03/09/2017 - 17:13
Hi Josef,
Hi Josef,
Thanks a million for your response.
I followed your suggestion and re-compiled OF 3.0.x using WM_LABEL_SIZE = 32. However, I still got an error as following:
/share1/binutils/2.25.1/bin/ld: cannot find -lvtkParallelMPI-7.1
collect2: error: ld returned 1 exit status
make: *** [/home/chaoliu/OpenFOAM/chaoliu-3.0.x/platforms/linux64Gcc48DPInt32Opt/bin/cfdemPostproc] Error 1
I am using vtk build by myself.
Any suggestion would be very appreciated. Thanks.
Chao
marcelo | Sat, 03/18/2017 - 13:18
RESOLVED?
i HAVE THE SAME ERROR! And before all compillations... I try run a test in tutorials/conveyor (LIGGGHTS folder) and, doesnt exist a .vtk arquive.
j-kerbl | Thu, 03/30/2017 - 11:28
Hi Chao, hi Marcelo,
Hi Chao, hi Marcelo,
sorry, it has been a while since I had time to post.
Can you check if the library libvtkParallelMPI-7.1.so exists within your VTK installation?
If yes, the vtk libraries are not found by the linker and a fix would be to add this folder to LD_LIBRARY_PATH.
If not, maybe the library name has changed for the newer VTKs, can you check if there is a similar library in the lib folder of VTK, e.g. libvtkParallel*?
Also maybe VTK was not compiled with MPI support, if so please activate the MPI support and the Parallel package and recompile it.
Cheers,
Josef