Root building error when pythia8 is enabled


ROOT Version: 5.34.38
Platform: SL
Compiler: gcc


trying to build ROOT with:

./configure linuxx8664gcc --enable-pythia8 --with-pythia8-incdir=$PYTHIA8/include --with-pythia8-libdir=$PYTHIA8/lib
make
make install

I encounter the following error:

/home/jack/sw/MG5_aMC_v2_6_6/HEPTools/pythia8/lib/libpythia8.a(PartonDistributions.o): In function Pythia8::LHAPDF::LHAPDF(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, Pythia8::Info*)': PartonDistributions.cc:(.text+0xfa85): undefined reference todlopen’
PartonDistributions.cc:(.text+0xfa9b): undefined reference to dlerror' PartonDistributions.cc:(.text+0xfc42): undefined reference todlerror’
/home/jack/sw/MG5_aMC_v2_6_6/HEPTools/pythia8/lib/libpythia8.a(PartonDistributions.o): In function Pythia8::LHAPDF::~LHAPDF()': PartonDistributions.cc:(.text+0x10104): undefined reference todlclose’
PartonDistributions.cc:(.text+0x10109): undefined reference to dlerror' /home/jack/sw/MG5_aMC_v2_6_6/HEPTools/pythia8/lib/libpythia8.a(PartonDistributions.o): In functionPythia8::LHAPDF::symbol(std::__cxx11::basic_string<char, std::char_traits, std::allocator >)’:
PartonDistributions.cc:(.text+0x10207): undefined reference to dlsym' PartonDistributions.cc:(.text+0x10210): undefined reference todlerror’
PartonDistributions.cc:(.text+0x1029f): undefined reference to `dlerror’
collect2: error: ld returned 1 exit status
make: *** [lib/libEGPythia8.so] Error 1

any help is highly appreciated.

I think you need to configure and build your pythia8 libraries adding the --enable-shared option.

Note also that, for the time being, it seems that there are some problems with ROOT and pythia8.2 so, you’d better start to play with pythia8.1.

1 Like

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