I’m having an issue in running pythia6 with root. It works withing root, not when I create an executable.
Googling around I’ve fond reports of similar problem but not usable solutions. ROOT have been built
by scratch from source, and the same for pythia. Any hint?
PS: I can access pythia libs normally and run simulations when I don’t link with EGPythia6
_ROOT Version: v6.16.00_gcc6.3.1
Platform: centos7@cern
Compiler: gcc 6.3.0 from /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.3.0/x86_64-centos7-gcc63-opt/bin/gcc
% printenv LHAPDF
/cvmfs/sft.cern.ch/lcg/releases/MCGenerators/lhapdf/5.9.1-76a09/x86_64-centos7-gcc62-opt/lib
% printenv PYTHIA6
/cvmfs/compass-mc.cern.ch/sw/pythia/pythia6.28_gcc6.3.1
% root-config --cflags
-pthread -std=c++14 -m64 -fPIC -I/cvmfs/compass-mc.cern.ch/sw/roots/root_v6.16.00_gcc6.3.1/include
% root-config --libs
-L/cvmfs/compass-mc.cern.ch/sw/roots/root_v6.16.00_gcc6.3.1/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -pthread -lm -ldl -rdynamic
% g++ root-config --cflags
-o testPYROOT.exe root-config --libs
-lEG -lEGPythia6 -L$LHAPDF -lLHAPDF pythiaExample.C
^[
% ./testPYROOT.exe
Fatal error: BLOCK DATA PYDATA has not been loaded!
The program execution is stopped now!
PYSTOP called with code: 8
% pwd
/afs/cern.ch/compass/scratch/monthly/d01_del1/bressan/testROOT-PYTHIA6
%