TPythia6 header file issues on make

I am trying to install GENIE, which needs a version of root with access to Pythia6. When I configure root, I use this line to point cmake to where I have Pythia6 installed:

cmake …/root -DPYTHIA6_LIBRARY=/home/XXXXX/GENIEZONE/PYTHIA6/v6_428/lib/libPythia6.so

Which yields:

Summary

[XXXXX@localhost build]$ cmake -DPYTHIA6_LIBRARY=/home/XXXXX/GENIEZONE/PYTHIA6/v6_428/lib/libPythia6.so ../root/ -- ROOT default compression algorithm: zlib -- Found GCC. Major version 4, minor version 8 -- Found a 64bit system -- Found GNU compiler collection -- ROOT Platform: linux -- ROOT Architecture: linuxx8664gcc -- Build Type: Release (flags = '-O3 -DNDEBUG') -- Compiler Flags: -O3 -DNDEBUG -std=c++11 -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -- Looking for ZLib -- Looking for Freetype -- Looking for PCRE -- Looking for LZMA -- Looking for X11 -- Building AfterImage library included in ROOT itself -- Looking for GSL -- Looking for python -- Preferring Python version 2 -- Found Python2: /bin/python2.7 (found version "2.7.5") found components: Interpreter Development -- Found Python2: /bin/python2.7 (found version "2.7.5") found components: Interpreter Development NumPy -- Looking for OpenGL -- Looking for LibXml2 -- Looking for MySQL -- Looking for SQLite -- Looking for Pythia6 -- Looking for FFTW3 -- Looking for CFITSIO -- Looking for XROOTD -- Checking for module 'davix>=0.6.4' -- Found davix, version 0.7.1 -- Looking for BLAS for optional parts of TMVA -- Building LLVM in 'Release' mode. -- Native target architecture is X86 -- Threads disabled. -- Doxygen disabled. -- Go bindings enabled. -- LLVM host triple: x86_64-unknown-linux-gnu -- LLVM default target triple: x86_64-unknown-linux-gnu -- Building with -fPIC -- Constructing LLVMBuild project information -- Linker detection: GNU ld -- SysLibs: rt;dl;tinfo;-lpthread;/usr/lib64/libz.so -- Targeting X86 -- Targeting NVPTX -- Clang version: 5.0.0 -- Cling version (from VERSION file): ROOT_0.7~dev -- Cling will look for C++ headers in '/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/x86_64-redhat-linux:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward' at runtime. -- And then fallback to: 'ccache' -- Performing Test found_stdstringview -- Performing Test found_stdstringview - Failed -- Performing Test found_stdexpstringview -- Performing Test found_stdexpstringview - Failed -- Performing Test found_stdapply -- Performing Test found_stdapply - Failed -- Performing Test found_stdinvoke -- Performing Test found_stdinvoke - Failed -- Performing Test found_stdindexsequence -- Performing Test found_stdindexsequence - Failed -- Enabled support for: asimage builtin_afterimage builtin_clang builtin_gl2ps builtin_glew builtin_llvm builtin_lz4 builtin_tbb builtin_vdt builtin_xxhash builtin_zstd clad dataframe davix exceptions fftw3 fitsio gdml http imt mathmore mlp mysql opengl pythia6 python roofit runtime_cxxmodules shared sqlite ssl tmva tmva-cpu tmva-pymva spectrum vdt x11 xml xrootd -- Configuring done -- Generating done -- Build files have been written to: /home/XXXXX/GENIEZONE/ROOT/build [XXXXX@localhost build]$

However, when I run ‘make’ immediately after in my build directory, it gets to 93% and then complains about a lack of various files:

Summary

[ 93%] Linking CXX shared library …/…/lib/libEGPythia6.so
CMakeFiles/EGPythia6.dir/src/TMCParticle.cxx.o: In function TMCParticle::GetName() const': TMCParticle.cxx:(.text+0xb5): undefined reference topyname_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::GenerateEvent()': TPythia6.cxx:(.text+0x95): undefined reference topyevnt_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pyinit(char*, char*, char*, double)': TPythia6.cxx:(.text+0xad2): undefined reference topyinit_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pycomp(int)': TPythia6.cxx:(.text+0xcce): undefined reference topycomp_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pyedit(int)': TPythia6.cxx:(.text+0xcf2): undefined reference topyedit_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pyhepc(int)': TPythia6.cxx:(.text+0xd6e): undefined reference topyhepc_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pylist(int)': TPythia6.cxx:(.text+0xd8e): undefined reference topylist_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pyname(int, char*)': TPythia6.cxx:(.text+0xdba): undefined reference topyname_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pyr(int)': TPythia6.cxx:(.text+0xdde): undefined reference topyr_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pyrget(int, int)': TPythia6.cxx:(.text+0xe07): undefined reference topyrget_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pyrset(int, int)': TPythia6.cxx:(.text+0xe27): undefined reference topyrset_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pystat(int)': TPythia6.cxx:(.text+0xe3e): undefined reference topystat_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pytest(int)': TPythia6.cxx:(.text+0xe5e): undefined reference topytest_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pytune(int)': TPythia6.cxx:(.text+0xe7e): undefined reference topytune_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pyupda(int, int)': TPythia6.cxx:(.text+0xea7): undefined reference topyupda_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pymass(int)': TPythia6.cxx:(.text+0xebe): undefined reference topymass_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pychge(int)': TPythia6.cxx:(.text+0xede): undefined reference topychge_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Py1ent(int, int, double, double, double)': TPythia6.cxx:(.text+0xf25): undefined reference topy1ent_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pydiff()': TPythia6.cxx:(.text+0xd11): undefined reference topydiff_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pyevnt()': TPythia6.cxx:(.text+0xd21): undefined reference topyevnt_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pyexec()': TPythia6.cxx:(.text+0xd31): undefined reference topyexec_’
CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: In function TPythia6::Pygive(char const*)': TPythia6.cxx:(.text+0xd54): undefined reference topygive_’
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libEGPythia6.so] Error 1
make[1]: *** [montecarlo/pythia6/CMakeFiles/EGPythia6.dir/all] Error 2
make: *** [all] Error 2

What can I change? Thanks

_ROOT Version:_v6-18-00
Platform: Linux, CERN virtual machine
Compiler: Not Provided

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.