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 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*)': undefined reference todlopen’ undefined reference to dlerror' undefined reference todlerror’
/home/jack/sw/MG5_aMC_v2_6_6/HEPTools/pythia8/lib/libpythia8.a(PartonDistributions.o): In function Pythia8::LHAPDF::~LHAPDF()': undefined reference todlclose’ 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 >)’: undefined reference to dlsym' undefined reference todlerror’ undefined reference to `dlerror’
collect2: error: ld returned 1 exit status
make: *** [lib/] 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.