Problem Install LIGGGHTS with VTK 7.1

Bias's picture
Submitted by Bias on Wed, 10/17/2018 - 15:12

Hi,
I'm trying to install liggghts version 3.8.0 on a cluster together with vtk. I changed in the Makefile.user such that VTK_LIB_USR and VTK_LIB_USR is set.
So for me it looks like this:
VTK_INC_USR=-I/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1
VTK_LIB_USR=-L/vcc/homes/mfarzane/compilers/vtk/lib

I can see that vtkVersion.h is in /vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1 but it still doesnt work. I can also see that there is a lot of files in /vcc/homes/mfarzane/compilers/vtk/lib

The error I get when I try to build liggghts with make auto is:
Creating list of contact models completed.
make[1]: Entering directory `/vcc/cae/backup/cfdcar/conta/users/Tobias/software/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:940: *** 'Could not determine suitable appendix of VTK library with VTK_INC="-I/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1", VTK_LIB="-L/vcc/homes/mfarzane/compilers/vtk/lib" and VTK_APPENDIX="-7.1"'. Stop.
make[1]: Leaving directory `/vcc/cae/backup/cfdcar/conta/users/Tobias/software/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [auto] Error 2

Does anyone have ideas how to solve this? I guess vtk 7.1 should work?

Seems that I have a identical problem as here:
https://www.cfdem.com/forums/error-compiling-liggghts-vtk-81

Best regards
Tobias Eidevåg

arnom's picture

arnom | Thu, 11/15/2018 - 15:49

Can you write the following line into your Makefile.user
auto_debug = 1
and attach the file
Obj_auto/make_auto.log
to this thread? Thanks.

DCS team member & LIGGGHTS(R) core developer

Bias's picture

Bias | Thu, 11/15/2018 - 17:00

Hi,
What does auto_debug = 1 do? I tried it and it looks like it creates a smaller output file than without. Still, the file is ~50000 lines and I didn't find a way to attach a file in the forum so I just attached the beginning and end of the file, maybe that's enough?

#Compilation of LIGGGHTS
Makefile auto logfile

#Time of writing: Thu Nov 15 16:43:02 CET 2018

#echo: echo -e
#subtarget:
#makefile_user_default_version: 1.4
#makefile_user_version: 1.4
#cmd for c++17 check: /vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/openmpi-1.8.8-install/bin/mpicxx -I/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/openmpi-1.8.8-install/include -L/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/openmpi-1.8.8-install/lib -xc++ -lstdc++ -O2 -funroll-loops -fstrict-aliasing -Wall -Wno-unused-result -O2 -std=c++17 -o /dev/null /tmp/liggghtscompile.tmp 2> /dev/null
#tmp: -1
#vtk_base_path: /usr
#vtk_inc: -I/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1
#vtk_inc_usr: -I/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1
#vtk_lib: -L/vcc/homes/mfarzane/compilers/vtk/lib
#vtk_lib_usr: -L/vcc/homes/mfarzane/compilers/vtk/lib
#vtk major version detection
# 1 "/tmp/liggghtscompile.tmp"
# 1 ""
# 1 ""
# 1 "/tmp/liggghtscompile.tmp"
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkVersion.h" 1
# 31 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkVersion.h"
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkCommonCoreModule.h" 1
# 32 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkVersion.h" 2
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkObject.h" 1
# 45 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkObject.h"
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkObjectBase.h" 1
# 52 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkObjectBase.h"
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkIndent.h" 1
# 28 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkIndent.h"
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkSystemIncludes.h" 1
# 29 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkSystemIncludes.h"
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkWin32Header.h" 1
# 30 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkWin32Header.h"
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkConfigure.h" 1
# 106 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkConfigure.h"
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkVersionMacros.h" 1
# 107 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkConfigure.h" 2
# 136 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkConfigure.h"
typedef bool vtkstd_bool;
# 31 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkWin32Header.h" 2
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkABI.h" 1
# 69 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkABI.h"
typedef int vtkTypeBool;
# 32 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkWin32Header.h" 2
# 30 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkSystemIncludes.h" 2
# 39 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkSystemIncludes.h"
# 1 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkIOStream.h" 1
# 31 "/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1/vtkIOStream.h"
# 1 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/iostream" 1 3
# 36 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/iostream" 3

# 37 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/iostream" 3

# 1 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/x86_64-unknown-linux-gnu/bits/c++config.h" 1 3
# 186 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/x86_64-unknown-linux-gnu/bits/c++config.h" 3
namespace std
{
typedef long unsigned int size_t;
typedef long int ptrdiff_t;

}
# 430 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/x86_64-unknown-linux-gnu/bits/c++config.h" 3
# 1 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/x86_64-unknown-linux-gnu/bits/os_defines.h" 1 3
# 39 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/x86_64-unknown-linux-gnu/bits/os_defines.h" 3
# 1 "/usr/include/features.h" 1 3 4
# 347 "/usr/include/features.h" 3 4
# 1 "/usr/include/sys/cdefs.h" 1 3 4
# 353 "/usr/include/sys/cdefs.h" 3 4
# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 354 "/usr/include/sys/cdefs.h" 2 3 4
# 348 "/usr/include/features.h" 2 3 4
# 371 "/usr/include/features.h" 3 4
# 1 "/usr/include/gnu/stubs.h" 1 3 4

# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 5 "/usr/include/gnu/stubs.h" 2 3 4

# 1 "/usr/include/gnu/stubs-64.h" 1 3 4
# 10 "/usr/include/gnu/stubs.h" 2 3 4
# 372 "/usr/include/features.h" 2 3 4
# 40 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/x86_64-unknown-linux-gnu/bits/os_defines.h" 2 3
# 431 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/x86_64-unknown-linux-gnu/bits/c++config.h" 2 3

# 1 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/x86_64-unknown-linux-gnu/bits/cpu_defines.h" 1 3
# 434 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/x86_64-unknown-linux-gnu/bits/c++config.h" 2 3
# 39 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/iostream" 2 3
# 1 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/ostream" 1 3
# 36 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/ostream" 3

# 37 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/ostream" 3

# 1 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/ios" 1 3
# 36 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/ios" 3

# 37 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/ios" 3

# 1 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/iosfwd" 1 3
# 36 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/iosfwd" 3

# 37 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/iosfwd" 3

# 1 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/bits/stringfwd.h" 1 3
# 37 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/bits/stringfwd.h" 3

# 38 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/bits/stringfwd.h" 3

# 1 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/bits/memoryfwd.h" 1 3
# 46 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/bits/memoryfwd.h" 3

# 47 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/bits/memoryfwd.h" 3

namespace std __attribute__ ((__visibility__ ("default")))
{

# 63 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/bits/memoryfwd.h" 3
template
class allocator;

template<>
class allocator;

template
struct uses_allocator;

}
# 41 "/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/gcc/gcc-4.9.4_build/include/c++/4.9.4/bits/stringfwd.h" 2 3
.
.
.
# 4 "/tmp/liggghtscompile.tmp"
#pragma message "1"
# 4 "/tmp/liggghtscompile.tmp"
#vtk_minor_version: 1
#vtk_lib: -L/vcc/homes/mfarzane/compilers/vtk/lib
#appendix command: /vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/openmpi-1.8.8-install/bin/mpicxx -L/vcc/homes/tobias/software/ThirdParty_LIGGGHTS_3.8.0/openmpi-1.8.8-install/lib -L/vcc/homes/mfarzane/compilers/vtk/lib -I/vcc/homes/mfarzane/compilers/vtk/include/vtk-7.1 -lvtksys-7.1 -funroll-loops -fstrict-aliasing -Wall -Wno-unused-result -O2 -std=c++11 -DHAVE_TR1_CMATH -fPIC -xc++ -o /dev/null /tmp/liggghtscompile.tmp
/vcc/homes/mfarzane/compilers/vtk/lib/libvtksys-7.1.so: undefined reference to `memcpy@GLIBC_2.14'
collect2: error: ld returned 1 exit status
#attempting without appendix
/usr/bin/ld: cannot find -lvtksys
collect2: error: ld returned 1 exit status

kpk | Tue, 11/07/2023 - 01:55

Hey,

I'm facing a similar issue, I know it's from a long time ago.
Please let me know if you have any tips.

make[1]: warning: -j4 forced in submake: resetting jobserver mode.
make[1]: Entering directory '/home/popeye/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
'Could not compile VTK example. As AUTOINSTALL_VTK is set to "ON". VTK will now be automatically downloaded to ../../lib'
VTK has been downloaded and will be compiled now. This can take several minutes.
Makefile:808: *** 'Compilation of vtk failed. Please install it manually'. Stop.
make[1]: Leaving directory '/home/popeye/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [Makefile.shlib:69: auto] Error 2