Error installing mg5amc_py8_intrface

Asked by SAUMYEN KUNDU on 2018-09-29

Hi,
I am having problems installing the mg5amc_py8_interface. I am copying the content of the installation log file below. Is there anything prerequisite for installing this, that I may not have? I am also having problems installing QCDLoop (I've put a question for that also some time ago). I can't understand what's happening. Please help me out, I'll be grateful. Here's the content of the log file:

------------------------------------------------
MG5aMC_PY8_interface compilation output log:
g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/hepmc/include\
 /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC -lstdc++ -DHEPMC2HACK -L../lib -Wl,-rpath,../lib -lpythia8 -ldl -DGZIPSUPPORT -I/home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/zlib/include -L/home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/zlib/lib -Wl,-rpath,/home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/zlib/lib -lz
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(Flow.o): relocation R_X86_64_32S against symbol `_ZTVN5HepMC4FlowE' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(GenEvent.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(GenParticle.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(GenCrossSection.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(GenVertex.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(IO_GenEvent.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(Polarization.o): relocation R_X86_64_32S against symbol `_ZTVN5HepMC12PolarizationE' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(SearchVector.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(Units.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(WeightContainer.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(GenEventStreamIO.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(HeavyIon.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(PdfInfo.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(StreamHelpers.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(StreamInfo.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile_mg5amc_py8_interface_static:8: recipe for target 'MG5aMC_PY8_interface' failed
make: *** [MG5aMC_PY8_interface] Error 1

------------------------------------------------
Error during the compilation of MG5aMC_PY8_interface:
g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/hepmc/include\
 /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC -lstdc++ -DHEPMC2HACK -L../lib -Wl,-rpath,../lib -lpythia8 -ldl -DGZIPSUPPORT -I/home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/zlib/include -L/home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/zlib/lib -Wl,-rpath,/home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/zlib/lib -lz
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(Flow.o): relocation R_X86_64_32S against symbol `_ZTVN5HepMC4FlowE' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(GenEvent.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(GenParticle.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(GenCrossSection.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(GenVertex.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(IO_GenEvent.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(Polarization.o): relocation R_X86_64_32S against symbol `_ZTVN5HepMC12PolarizationE' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(SearchVector.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(Units.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(WeightContainer.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(GenEventStreamIO.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(HeavyIon.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(PdfInfo.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(StreamHelpers.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /home/saumyen/HEP_Package/MG5_aMC_v2_6_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a(StreamInfo.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile_mg5amc_py8_interface_static:8: recipe for target 'MG5aMC_PY8_interface' failed
make: *** [MG5aMC_PY8_interface] Error 1

Command "install mg5amc_py8_interface" interrupted with error:
InvalidCmd : Installation of mg5amc_py8_interface failed.
--------------------------------------------------------------------------------------------------------------------------------------------------
Kind regards,

Saumyen

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Valentin Hirschi Edit question
Solved by:
SAUMYEN KUNDU
Solved:
2018-10-19
Last query:
2018-10-19
Last reply:
2018-10-19
Launchpad Janitor (janitor) said : #1

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

Hi,

Sorry for the long time before the reply, I missed the notification email about this thread.

Are you running on Ubuntu18.04

According to this link, this seem a typical error of that OS.
https://stackoverflow.com/questions/50213089/linking-error-with-gcc-g-7-3-0-on-ubuntu-18-04

Not sure what I can do for you right now about that. I guess that one need to add this '-no-pie' flag somewhere.
I will assign this bug to Valentin who should now how (and when) add such flag.

Cheers,

Olivier

SAUMYEN KUNDU (saumyen.k) said : #3

Hi Olivier,

Yes, I am using Ubuntu 18.04. This problem is solved now, after I just updated the hepmc package. Both Pythia8 and mg5_py8_interface is now installed. But, the QCDLoop is still not installing. it is saying:
---------------------------------------------------------------------------------------------------------------------------------------------------------
Error detected in sub-command install QCDLoop
write debug file MG5_debug
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
MadGraph5Error : Fail to download correctly the File. Stop
---------------------------------------------------------------------------------------------------------------------------------------------------------
This problem is happening with another person I know (using Ubuntu 18.04). Do you think it is a problem due to the Ubuntu version?
Thanks and regards,

Saumyen

Hi,

The first issue was for sure a Ubuntu 18 specific issue.
The issue with QCDLoop is on the other hand a corruption problem with the version on our server.
I'm looking to find a correct version to replace it.

Cheers,

Olivier

Hi,

The QCDLoop tarball has been updated.
You should be able to install it now.

Thanks,

Olivier

SAUMYEN KUNDU (saumyen.k) said : #6

Hi Olivier,

Thank you so much for the quick fix and the information. I will check it.
Thanks a lot.

Saumyen

SAUMYEN KUNDU (saumyen.k) said : #7

Hi,

Yes, it is successfully installed. Thanks a lot once again.
Regards,

Saumyen