Trouble installing mg5-pythia8 interface

Asked by Eric Gonzalez

I don't really know what to make of this. I can install it on my local machine but when I try to install it in a cluster environment I get the following error:

Installing tool 'mg5amc_py8_interface'...
    > Follow the installation progress by running the command below in a separate terminal)
    > tail -f /home/ericgz/MG5_aMC_v2_5_5/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log
A problem occured during the installation of 'mg5amc_py8_interface'.
Content of the installation log file '/home/ericgz/MG5_aMC_v2_5_5/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log':

------------------------------------------------
MG5aMC_PY8_interface compilation output log:
gcc MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/home/ericgz/MG5_aMC_v2_5_5/HEPTools/hepmc/include\
 /home/ericgz/MG5_aMC_v2_5_5/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC -lstdc++ -DGZIPSUPPORT -I/home/ericgz/MG5_aMC_v2_5_5/HEPTools/zlib/include -L/home/ericgz/MG5_aMC_v2_5_5/HEPTools/zlib/lib -Wl,-rpath,/home/ericgz/MG5_aMC_v2_5_5/HEPTools/zlib/lib -lz -L../lib -Wl,-rpath,../lib -lpythia8 -ldl
/usr/bin/ld: /tmp/cct5Z2nu.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'
/usr/lib64/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [MG5aMC_PY8_interface] Error 1

------------------------------------------------
Error during the compilation of MG5aMC_PY8_interface:
gcc MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/home/ericgz/MG5_aMC_v2_5_5/HEPTools/hepmc/include\
 /home/ericgz/MG5_aMC_v2_5_5/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC -lstdc++ -DGZIPSUPPORT -I/home/ericgz/MG5_aMC_v2_5_5/HEPTools/zlib/include -L/home/ericgz/MG5_aMC_v2_5_5/HEPTools/zlib/lib -Wl,-rpath,/home/ericgz/MG5_aMC_v2_5_5/HEPTools/zlib/lib -lz -L../lib -Wl,-rpath,../lib -lpythia8 -ldl
/usr/bin/ld: /tmp/cct5Z2nu.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'
/usr/lib64/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [MG5aMC_PY8_interface] Error 1

I don't know what to make of this, please help.

Question information

Language:
English Edit question
Status:
Expired
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Valentin Hirschi (valentin-hirschi) said :
#1

Googling it, I found on stackoverflow that it is probably related to the order in which the library dependencies are specified:

https://stackoverflow.com/questions/9934549/very-strange-linker-behavior

This is something typically very architecture-dependent, so I'm not too surprised that it works locally on your machine but not on the cluster.

I can only advise you to go to:

cd /home/ericgz/MG5_aMC_v2_5_5/HEPTools/MG5aMC_PY8_interface

and then run the problematic linker command by hand

gcc MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/home/ericgz/MG5_aMC_v2_5_5/HEPTools/hepmc/include\
 /home/ericgz/MG5_aMC_v2_5_5/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC -lstdc++ -DGZIPSUPPORT -I/home/ericgz/MG5_aMC_v2_5_5/HEPTools/zlib/include -L/home/ericgz/MG5_aMC_v2_5_5/HEPTools/zlib/lib -Wl,-rpath,/home/ericgz/MG5_aMC_v2_5_5/HEPTools/zlib/lib -lz -L../lib -Wl,-rpath,../lib -lpythia8 -ldl

while trying to change the order in which you specify the various '-lXXX' library dependencies (typically' removing all double occurences of '-ldl' for instance and only placing it at the very hand.

If this does the trick, then I can try and see how I could make sure that the compilation of MG5aMC_PY8_interface.cc occurs in this way.

Revision history for this message
Eric Gonzalez (ericgz) said :
#2

My cluster was down for maintenance for a while hence the delay.

I've tried running the linker by hand with many different permutations of libraries but so far nothing seems to be working. I've even contacted the support at my cluster but they still haven't gotten back to me. Do you have any other suggestions for what I could do or do you think this might be the only solution?

Revision history for this message
Valentin Hirschi (valentin-hirschi) said :
#3

Then it is probably really related to your active compiler suite.
Try using or installing a new gcc compiler suite and recompile all MG5_aMC dependences with it ( including LHAPDF, HEPMC and Pythia8, all available via the 'install' command of MG5_aMC ), then finally 'mg5amc_py8_interface'.

I'm saying that this is probably an issue of your compiler end because of the nature of the crash and the absence of any similar issue among other MG5_aMC users.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.