Compiling MCatNLO for PYTHIA8 doesn't work

Asked by dpuddu86

Dear MG5_aMC experts.
I've installed PYTHIA8 and properly modified mg5_configuration.txt.

It seems there is a problem with the external libraries used by PYTHIA8 but I do not understand what.

PYTHIA8 version 8201 with external packages
fastjet-3.1.1 HepMC-2.06.09 lhapdf-5.9.1 LHAPDF-6.1.5

I've tried simple process
p p > e+ e- [QCD]
the full chain using PYTHIA6 or HERWIG or HERWIGPP works but not PYTHIA8.

**********************************************
lines from the teriminal before the error message:
***********************************************

INFO: Decaying the events...
INFO: Total number of events written: 10000/10000
INFO: Average number of trial points per production event: 1.0
INFO: Branching ratio to allowed decays: 1
INFO: Number of events with weights larger than max_weight: 0
INFO: Number of subprocesses 12
INFO: Number of failures when restoring the Monte Carlo masses: 0
INFO: Decayed events have been written in /home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/epem/Events/run_01/events_decayed.lhe.gz
INFO: The decayed event file has been moved to the following location:
INFO: /home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/epem/Events/run_01_decayed_1/events.lhe.gz
INFO: MadSpin Done
INFO: Preparing MCatNLO run
INFO: Compiling MCatNLO for PYTHIA8...
/home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/EXTERNALINSTALL/pythia8201/lib/libpythia8.a(PartonDistributions.o): In function `Pythia8::LHAPDF::symbol(std::string)':
PartonDistributions.cc:(.text+0xe6b0): undefined reference to `dlerror'
PartonDistributions.cc:(.text+0xe6bc): undefined reference to `dlsym'
PartonDistributions.cc:(.text+0xe6c4): undefined reference to `dlerror'
PartonDistributions.cc:(.text+0xe772): undefined reference to `dlerror'
PartonDistributions.cc:(.text+0xe79Pythia8 compilation did not succeed, exiting
tributions.cc:(.text+0xe7a5): undefined reference to `dlerror'
/home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/EXTERNALINSTALL/pythia8201/lib/libpythia8.a(PartonDistributions.o): In function `Pythia8::LHAPDF::~LHAPDF()':
PartonDistributions.cc:(.text+0xfada): undefined reference to `dlclose'
PartonDistributions.cc:(.text+0xfae1): undefined reference to `dlerror'
/tmp/cca7xnLE.o: In function `main':
Pythia82.cc:(.text+0x13be): undefined reference to `HepMC::IO_GenEvent::IO_GenEvent(std::string const&, std::_Ios_Openmode)'
Pythia82.cc:(.text+0x155c): undefined reference to `HepMC::WeightContainer::WeightContainer(std::vector<double, std::allocator<double> > const&)'
Pythia82.cc:(.text+0x157e): undefined reference to `HepMC::Units::default_momentum_unit()'
Pythia82.cc:(.text+0x1586): undefined reference to `HepMC::Units::default_length_unit()'
Pythia82.cc:(.text+0x15bc): undefined reference to `HepMC::GenEvent::GenEvent(int, int, HepMC::GenVertex*, HepMC::WeightContainer const&, std::vector<long, std::allocator<long> > const&, HepMC::Units::MomentumUnit, HepMC::Units::LengthUnit)'
Pythia82.cc:(.text+0x16aa): undefined reference to `HepMC::WeightContainer::push_back(double const&)'
Pythia82.cc:(.text+0x189c): undefined reference to `HepMC::IO_GenEvent::~IO_GenEvent()'
Pythia82.cc:(.text+0x1b15): undefined reference to `HepMC::IO_GenEvent::~IO_GenEvent()'
Pythia82.cc:(.text+0x1b9d): undefined reference to `HepMC::IO_GenEvent::~IO_GenEvent()'
/tmp/cca7xnLE.o: In function `HepMC::Flow::set_icode(int, int)':
Pythia82.cc:(.text._ZN5HepMC4Flow9set_icodeEii[_ZN5HepMC4Flow9set_icodeEii]+0x41): undefined reference to `HepMC::Flow::Flow(HepMC::Flow const&)'
/tmp/cca7xnLE.o: In function `HepMC::Flow::set_unique_icode(int)':
Pythia82.cc:(.text._ZN5HepMC4Flow16set_unique_icodeEi[_ZN5HepMC4Flow16set_unique_icodeEi]+0x3f): undefined reference to `HepMC::Flow::Flow(HepMC::Flow const&)'
/tmp/cca7xnLE.o: In function `HepMC::GenParticle::set_flow(int, int)':
Pythia82.cc:(.text._ZN5HepMC11GenParticle8set_flowEii[_ZN5HepMC11GenParticle8set_flowEii]+0x3a): undefined reference to `HepMC::Flow::~Flow()'
Pythia82.cc:(.text._ZN5HepMC11GenParticle8set_flowEii[_ZN5HepMC11GenParticle8set_flowEii]+0x62): undefined reference to `HepMC::Flow::~Flow()'
/tmp/cca7xnLE.o: In function `HepMC::GenEvent::set_cross_section(HepMC::GenCrossSection const&)':
Pythia82.cc:(.text._ZN5HepMC8GenEvent17set_cross_sectionERKNS_15GenCrossSectionE[_ZN5HepMC8GenEvent17set_cross_sectionERKNS_15GenCrossSectionE]+0x4b): undefined reference to `HepMC::GenCrossSection::GenCrossSection(HepMC::GenCrossSection const&)'
/tmp/cca7xnLE.o: In function `HepMC::IO_BaseClass::read_next_event()':
Pythia82.cc:(.text._ZN5HepMC12IO_BaseClass15read_next_eventEv[_ZN5HepMC12IO_BaseClass15read_next_eventEv]+0x3c): undefined reference to `HepMC::WeightContainer::WeightContainer(std::vector<double, std::allocator<double> > const&)'
Pythia82.cc:(.text._ZN5HepMC12IO_BaseClass15read_next_eventEv[_ZN5HepMC12IO_BaseClass15read_next_eventEv]+0x5b): undefined reference to `HepMC::Units::default_momentum_unit()'
Pythia82.cc:(.text._ZN5HepMC12IO_BaseClass15read_next_eventEv[_ZN5HepMC12IO_BaseClass15read_next_eventEv]+0x63): undefined reference to `HepMC::Units::default_length_unit()'
Pythia82.cc:(.text._ZN5HepMC12IO_BaseClass15read_next_eventEv[_ZN5HepMC12IO_BaseClass15read_next_eventEv]+0x99): undefined reference to `HepMC::GenEvent::GenEvent(int, int, HepMC::GenVertex*, HepMC::WeightContainer const&, std::vector<long, std::allocator<long> > const&, HepMC::Units::MomentumUnit, HepMC::Units::LengthUnit)'
/tmp/cca7xnLE.o: In function `HepMC::Pythia8ToHepMC::fill_next_event(Pythia8::Event&, HepMC::GenEvent*, int, Pythia8::Info*, Pythia8::Settings*)':
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsE[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsE]+0xe8): undefined reference to `HepMC::Units::conversion_factor(HepMC::Units::MomentumUnit, HepMC::Units::MomentumUnit)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsE[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsE]+0x119): undefined reference to `HepMC::Units::conversion_factor(HepMC::Units::LengthUnit, HepMC::Units::LengthUnit)'
Pythia82.cc:(..
OTHER SIMILAR
..
((.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsE[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsE]+0x140d): undefined reference to `HepMC::Flow::~Flow()'
collect2: error: ld returned 1 exit status
make: *** [Pythia82] Error 1

***************************************************
Useful info from run_01_decayed_1_tag_1_debug.log :
***************************************************
launch auto
Traceback (most recent call last):
  File "/home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/madgraph/interface/extended_cmd.py", line 879, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/madgraph/interface/extended_cmd.py", line 872, in onecmd_orig
    return func(arg, **opt)
  File "/home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/madgraph/interface/amcatnlo_run_interface.py", line 1204, in do_launch
    self.run_mcatnlo(evt_file)
  File "/home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/madgraph/interface/amcatnlo_run_interface.py", line 2427, in run_mcatnlo
    raise aMCatNLOError('Compilation failed, check %s for details' % mcatnlo_log)
aMCatNLOError: Compilation failed, check /home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/epem/mcatnlo.log for details

             pythia8_path : /home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/EXTERNALINSTALL/pythia8201
                   amcfast : amcfast-config
       cluster_retry_wait : 300
      output_dependencies : external
          pythia-pgs_path : /home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/pythia-pgs
                 mg5_path : /home/puddu/Scrivania/MC/MG5_aMC_v2_2_2
                  td_path : /home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/td
             delphes_path : /home/puddu/Scrivania/MC/MG5_aMC_v2_2_2/Delphes
              thepeg_path : None

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Paolo Torrielli Edit question
Last query:
Last reply:
Revision history for this message
Paolo Torrielli (paolo-torrielli) said :
#1

Hello,
your error message suggests that the code does not find library dl, which may be necessary on
some OS's as you're using pythia 8.2.
You can link this library by adding dl to the list of libraries in the EXTRALIBS variable in shower_card.dat.
Let me know if this solves.
Cheers.
Paolo

Revision history for this message
dpuddu86 (dpuddu86-deactivatedaccount) said :
#2

Hi,
it doesn't work as well.
I obtain the same error, how can i check the existence of this library?
I've not found it in the /usr/bin folder

Thank you,
          Daniele

Revision history for this message
Paolo Torrielli (paolo-torrielli) said :
#3

Hi Daniele,

I guess you could search this library by some ‘locate libdl’ or
going in / and doing some recursive ls *lidbl*, ls */*lidbl*,
ls */*/*lidbl* and so on.
On my computer it is in /usr/lib (using a Mac Book, OS 10.9).

Note that if this library is not in a standard path, you may also
need to add its path to the EXTRAPATH variable in the shower_card.

Cheers.
Paolo

On 14 Jan 2015, at 18:31, dpuddu86 <email address hidden> wrote:

> Question #260696 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/260696
>
> Status: Answered => Open
>
> dpuddu86 is still having a problem:
> Hi,
> it doesn't work as well.
> I obtain the same error, how can i check the existence of this library?
> I've not found it in the /usr/bin folder
>
>
> Thank you,
> Daniele
>
> --
> You received this question notification because you are a direct
> subscriber of the question.

Revision history for this message
Goutam Das (gkdgoutam) said :
#4

Hi Paolo,
                I am having exactly the same problem on linux and I tried everything but in vain !!
I installed correctly hepmc and pythia8 --with-hepmc2 and put the paths in bashrc and in mgconfigurations.txt.

I guess it has to do with dynamic library so I locate libdl and put those paths in bashrc and also in shower_card EXTRAPATHS.

goutam@goutamSINP ~/MADGRAPH/2.3.4/TJ_QCD $ locate libdl
/home/goutam/SOFTWARES/SOURCES/gcc/sss/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj
/home/goutam/SOFTWARES/SOURCES/gcc/sss/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters
/home/goutam/SOFTWARES/SOURCES/gcc/sss/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.user
/home/goutam/SOFTWARES/SOURCES/gcc/sss/zlib/contrib/vstudio/vc9/testzlibdll.vcproj
/lib/i386-linux-gnu/libdl-2.19.so
/lib/i386-linux-gnu/libdl.so.2
/lib/x86_64-linux-gnu/libdl-2.19.so
/lib/x86_64-linux-gnu/libdl.so.2
/lib32/libdl-2.19.so
/lib32/libdl.so.2
/libx32/libdl-2.19.so
/libx32/libdl.so.2
/usr/aarch64-linux-gnu/lib/libdl-2.19.so
/usr/aarch64-linux-gnu/lib/libdl.so.2
/usr/lib/libdlrestrictions.so.1
/usr/lib/libdlrestrictions.so.1.0.0
/usr/lib/libreoffice/program/libdlgprovlo.so
/usr/lib/x86_64-linux-gnu/libdl.a
/usr/lib/x86_64-linux-gnu/libdl.so
/usr/lib32/libdl.a
/usr/lib32/libdl.so
/usr/libx32/libdl.a
/usr/libx32/libdl.so
/usr/powerpc-linux-gnu/lib/libdl-2.19.so
/usr/powerpc-linux-gnu/lib/libdl.so.2
/usr/powerpc64le-linux-gnu/lib/libdl-2.19.so
/usr/powerpc64le-linux-gnu/lib/libdl.so.2
/usr/share/doc/libdlrestrictions1
/usr/share/doc/libdlrestrictions1/NEWS.Debian.gz
/usr/share/doc/libdlrestrictions1/changelog.gz
/usr/share/doc/libdlrestrictions1/copyright
/var/cache/apt/archives/libdlrestrictions1_0.15.12ubuntu1_amd64.deb
/var/lib/dpkg/info/libdlrestrictions1.list
/var/lib/dpkg/info/libdlrestrictions1.md5sums
/var/lib/dpkg/info/libdlrestrictions1.postinst
/var/lib/dpkg/info/libdlrestrictions1.postrm
/var/lib/dpkg/info/libdlrestrictions1.shlibs
/var/lib/dpkg/info/libdlrestrictions1.symbols

 Even I put the hepmc/lib path in showe_card/EXTRAPATHS but the same error comes. I tried to manually edit the srcPythia8/Makefile* to add -ldl but it does not work either.
My suspect is that it can not find the dynamic libraries.
Can you please help me to figure out whats going wrong?

Best Regards,
Goutam
Here is the error:
INFO: Preparing MCatNLO run
WARNING: Linking FastJet: updating EXTRAPATHS
WARNING: Linking FastJet: updating INCLUDEPATHS
INFO: Compiling MCatNLO for PYTHIA8...
/home/goutam/SOFTWARES/MY_SOFTWARES/PYTHIA8_install/lib/libpythia8.a(PartonDistributions.o): In function `Pythia8::LHAPDF::symbol(std::string)':
PartonDistributions.cc:(.text+0xe690): undefined reference to `dlerror'
PartonDistributions.cc:(.text+0xe69c): undefined reference to `dlsym'
PartonDistributions.cc:(.text+0xe6a4): undefined reference to `dlerror'
PartonDistributions.cc:(.text+0xe752): undefined reference to `dlerror'
PartonDistributions.cc:(.text+0xe77d): undefined reference to `dlopen'
PartonDistributions.cc:(.text+0xe785): undefined reference to `dlerror'
/home/goutam/SOFTWARES/MY_SOFTWARES/PYTHIA8_install/lib/libpythia8.a(PartonDistributions.o): In function `Pythia8::LHAPDF::~LHAPDF()':
PartonDistributions.cc:(.text+0xfaba): undefined reference to `dlclose'
PartonDistributions.cc:(.text+0xfac1): undefined reference to `dlerror'
/tmp/ccXu7mMv.o: In function `main':
Pythia82.cc:(.text+0x173d): undefined reference to `HepMC::IO_GenEvent::IO_GenEvent(std::string const&, std::_Ios_Openmode)'
Pythia82.cc:(.text+0x1995): undefined reference to `HepMC::WeightContainer::WeightContainer(std::vector<double, std::allocator<double> > const&)'
Pythia82.cc:(.text+0x19b7): undefined reference to `HepMC::Units::default_momentum_unit()'
Pythia82.cc:(.text+0x19bf): undefined reference to `HepMC::Units::default_length_unit()'
Pythia82.cc:(.text+0x19f5): undefined reference to `HepMC::GenEvent::GenEvent(int, int, HepMC::GenVertex*, HepMC::WeightContainer const&, std::vector<long, std::allocator<long> > const&, HepMC::Units::MomentumUnit, HepMC::Units::LenPythia8 compilation did not succeed, exiting
ed reference to `HepMC::IO_GenEvent::~IO_GenEvent()'
Pythia82.cc:(.text+0x1f4a): undefined reference to `HepMC::IO_GenEvent::~IO_GenEvent()'
Pythia82.cc:(.text+0x1fce): undefined reference to `HepMC::IO_GenEvent::~IO_GenEvent()'
/tmp/ccXu7mMv.o: In function `HepMC::Flow::set_icode(int, int)':
Pythia82.cc:(.text._ZN5HepMC4Flow9set_icodeEii[_ZN5HepMC4Flow9set_icodeEii]+0x41): undefined reference to `HepMC::Flow::Flow(HepMC::Flow const&)'
/tmp/ccXu7mMv.o: In function `HepMC::Flow::set_unique_icode(int)':
Pythia82.cc:(.text._ZN5HepMC4Flow16set_unique_icodeEi[_ZN5HepMC4Flow16set_unique_icodeEi]+0x3f): undefined reference to `HepMC::Flow::Flow(HepMC::Flow const&)'
/tmp/ccXu7mMv.o: In function `HepMC::GenParticle::set_flow(int, int)':
Pythia82.cc:(.text._ZN5HepMC11GenParticle8set_flowEii[_ZN5HepMC11GenParticle8set_flowEii]+0x3a): undefined reference to `HepMC::Flow::~Flow()'
Pythia82.cc:(.text._ZN5HepMC11GenParticle8set_flowEii[_ZN5HepMC11GenParticle8set_flowEii]+0x62): undefined reference to `HepMC::Flow::~Flow()'
/tmp/ccXu7mMv.o: In function `HepMC::GenEvent::set_cross_section(HepMC::GenCrossSection const&)':
Pythia82.cc:(.text._ZN5HepMC8GenEvent17set_cross_sectionERKNS_15GenCrossSectionE[_ZN5HepMC8GenEvent17set_cross_sectionERKNS_15GenCrossSectionE]+0x4b): undefined reference to `HepMC::GenCrossSection::GenCrossSection(HepMC::GenCrossSection const&)'
/tmp/ccXu7mMv.o: In function `HepMC::IO_BaseClass::read_next_event()':
Pythia82.cc:(.text._ZN5HepMC12IO_BaseClass15read_next_eventEv[_ZN5HepMC12IO_BaseClass15read_next_eventEv]+0x3c): undefined reference to `HepMC::WeightContainer::WeightContainer(std::vector<double, std::allocator<double> > const&)'
Pythia82.cc:(.text._ZN5HepMC12IO_BaseClass15read_next_eventEv[_ZN5HepMC12IO_BaseClass15read_next_eventEv]+0x5b): undefined reference to `HepMC::Units::default_momentum_unit()'
Pythia82.cc:(.text._ZN5HepMC12IO_BaseClass15read_next_eventEv[_ZN5HepMC12IO_BaseClass15read_next_eventEv]+0x63): undefined reference to `HepMC::Units::default_length_unit()'
Pythia82.cc:(.text._ZN5HepMC12IO_BaseClass15read_next_eventEv[_ZN5HepMC12IO_BaseClass15read_next_eventEv]+0x99): undefined reference to `HepMC::GenEvent::GenEvent(int, int, HepMC::GenVertex*, HepMC::WeightContainer const&, std::vector<long, std::allocator<long> > const&, HepMC::Units::MomentumUnit, HepMC::Units::LengthUnit)'
/tmp/ccXu7mMv.o: In function `HepMC::Pythia8ToHepMC::fill_next_event(Pythia8::Event&, HepMC::GenEvent*, int, Pythia8::Info*, Pythia8::Settings*, bool, HepMC::GenParticle*, int)':
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0xff): undefined reference to `HepMC::Units::conversion_factor(HepMC::Units::MomentumUnit, HepMC::Units::MomentumUnit)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x130): undefined reference to `HepMC::Units::conversion_factor(HepMC::Units::LengthUnit, HepMC::Units::LengthUnit)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x216): undefined reference to `HepMC::WeightContainer::WeightContainer(std::vector<double, std::allocator<double> > const&)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x23a): undefined reference to `HepMC::GenVertex::GenVertex(HepMC::FourVector const&, int, HepMC::WeightContainer const&)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x272): undefined reference to `HepMC::GenVertex::add_particle_in(HepMC::GenParticle*)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x28b): undefined reference to `HepMC::GenEvent::add_vertex(HepMC::GenVertex*)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x42a): undefined reference to `HepMC::Flow::Flow(HepMC::GenParticle*)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x448): undefined reference to `HepMC::Polarization::Polarization(double, double)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x47e): undefined reference to `HepMC::GenParticle::GenParticle(HepMC::FourVector const&, int, int, HepMC::Flow const&, HepMC::Polarization const&)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x4ba): undefined reference to `HepMC::Flow::~Flow()'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x506): undefined reference to `HepMC::GenParticle::suggest_barcode(int)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x55f): undefined reference to `HepMC::GenParticle::set_generated_mass(double const&)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x6bc): undefined reference to `HepMC::GenEvent::set_beam_particles(HepMC::GenParticle*, HepMC::GenParticle*)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x7f3): undefined reference to `HepMC::GenVertex::add_particle_out(HepMC::GenParticle*)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x9e7): undefined reference to `HepMC::WeightContainer::WeightContainer(std::vector<double, std::allocator<double> > const&)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0xa0e): undefined reference to `HepMC::GenVertex::GenVertex(HepMC::FourVector const&, int, HepMC::WeightContainer const&)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0xa4c): undefined reference to `HepMC::GenVertex::add_particle_out(HepMC::GenParticle*)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0xa65): undefined reference to `HepMC::GenEvent::add_vertex(HepMC::GenVertex*)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0xb9b): undefined reference to `HepMC::GenVertex::add_particle_in(HepMC::GenParticle*)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0xf2d): undefined reference to `HepMC::WeightContainer::WeightContainer(std::vector<double, std::allocator<double> > const&)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0xf51): undefined reference to `HepMC::GenVertex::GenVertex(HepMC::FourVector const&, int, HepMC::WeightContainer const&)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0xfa3): undefined reference to `HepMC::GenVertex::add_particle_out(HepMC::GenParticle*)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0xfbc): undefined reference to `HepMC::GenEvent::add_vertex(HepMC::GenVertex*)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x1578): undefined reference to `HepMC::WeightContainer::push_back(double const&)'
Pythia82.cc:(.text._ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi[_ZN5HepMC14Pythia8ToHepMC15fill_next_eventERN7Pythia85EventEPNS_8GenEventEiPNS1_4InfoEPNS1_8SettingsEbPNS_11GenParticleEi]+0x1630): undefined reference to `HepMC::Flow::~Flow()'
myfastjetfortran.o: In function `fastjetppgenkt_etamax_':
myfastjetfortran.cc:(.text+0x3b7): undefined reference to `fastjet::ClusterSequence::inclusive_jets(double) const'
myfastjetfortran.cc:(.text+0x3d0): undefined reference to `fastjet::sorted_by_pt(std::vector<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet> > const&)'
myfastjetfortran.cc:(.text+0x407): undefined reference to `fastjet::SelectorAbsEtaMax(double)'
myfastjetfortran.cc:(.text+0x43c): undefined reference to `fastjet::Selector::operator()(std::vector<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet> > const&) const'
myfastjetfortran.cc:(.text+0x58b): undefined reference to `fastjet::ClusterSequence::constituents(fastjet::PseudoJet const&) const'
myfastjetfortran.o: In function `fastjetdmerge_':
myfastjetfortran.cc:(.text+0x876): undefined reference to `fastjet::ClusterSequence::exclusive_dmerge(int) const'
myfastjetfortran.o: In function `fastjetdmergemax_':
myfastjetfortran.cc:(.text+0x8ee): undefined reference to `fastjet::ClusterSequence::exclusive_dmerge_max(int) const'
myfastjetfortran.o: In function `fastjet::PseudoJetStructureBase::PseudoJetStructureBase()':
myfastjetfortran.cc:(.text._ZN7fastjet22PseudoJetStructureBaseC2Ev[_ZN7fastjet22PseudoJetStructureBaseC5Ev]+0xf): undefined reference to `vtable for fastjet::PseudoJetStructureBase'
myfastjetfortran.o: In function `fastjet::PseudoJetStructureBase::~PseudoJetStructureBase()':
myfastjetfortran.cc:(.text._ZN7fastjet22PseudoJetStructureBaseD2Ev[_ZN7fastjet22PseudoJetStructureBaseD5Ev]+0x13): undefined reference to `vtable for fastjet::PseudoJetStructureBase'
myfastjetfortran.o: In function `fastjet::PseudoJet::~PseudoJet()':
myfastjetfortran.cc:(.text._ZN7fastjet9PseudoJetD2Ev[_ZN7fastjet9PseudoJetD5Ev]+0x14): undefined reference to `vtable for fastjet::PseudoJet'
myfastjetfortran.o: In function `fastjet::PseudoJet::operator[](int) const':
myfastjetfortran.cc:(.text._ZNK7fastjet9PseudoJetixEi[_ZNK7fastjet9PseudoJetixEi]+0x1c): undefined reference to `fastjet::PseudoJet::operator()(int) const'
myfastjetfortran.o: In function `fastjet::PseudoJet::reset(double, double, double, double)':
myfastjetfortran.cc:(.text._ZN7fastjet9PseudoJet5resetEdddd[_ZN7fastjet9PseudoJet5resetEdddd]+0x58): undefined reference to `fastjet::PseudoJet::_finish_init()'
myfastjetfortran.o: In function `fastjet::JetDefinition::JetDefinition(fastjet::JetAlgorithm, double, fastjet::RecombinationScheme, fastjet::Strategy)':
myfastjetfortran.cc:(.text._ZN7fastjet13JetDefinitionC2ENS_12JetAlgorithmEdNS_19RecombinationSchemeENS_8StrategyE[_ZN7fastjet13JetDefinitionC5ENS_12JetAlgorithmEdNS_19RecombinationSchemeENS_8StrategyE]+0x7a): undefined reference to `fastjet::JetDefinition::JetDefinition(fastjet::JetAlgorithm, double, fastjet::Strategy, fastjet::RecombinationScheme, int)'
myfastjetfortran.o: In function `fastjet::JetDefinition::JetDefinition(fastjet::JetAlgorithm, double, double, fastjet::RecombinationScheme, fastjet::Strategy)':
myfastjetfortran.cc:(.text._ZN7fastjet13JetDefinitionC2ENS_12JetAlgorithmEddNS_19RecombinationSchemeENS_8StrategyE[_ZN7fastjet13JetDefinitionC5ENS_12JetAlgorithmEddNS_19RecombinationSchemeENS_8StrategyE]+0x85): undefined reference to `fastjet::JetDefinition::JetDefinition(fastjet::JetAlgorithm, double, fastjet::Strategy, fastjet::RecombinationScheme, int)'
myfastjetfortran.o: In function `fastjet::JetDefinition::DefaultRecombiner::DefaultRecombiner(fastjet::RecombinationScheme)':
myfastjetfortran.cc:(.text._ZN7fastjet13JetDefinition17DefaultRecombinerC2ENS_19RecombinationSchemeE[_ZN7fastjet13JetDefinition17DefaultRecombinerC5ENS_19RecombinationSchemeE]+0x22): undefined reference to `vtable for fastjet::JetDefinition::DefaultRecombiner'
myfastjetfortran.o: In function `fastjet::Selector::InvalidWorker::InvalidWorker()':
myfastjetfortran.cc:(.text._ZN7fastjet8Selector13InvalidWorkerC2Ev[_ZN7fastjet8Selector13InvalidWorkerC5Ev]+0x3f): undefined reference to `fastjet::Error::Error(std::string const&)'
myfastjetfortran.o: In function `fastjet::ClusterSequenceStructure::ClusterSequenceStructure(fastjet::ClusterSequence const*)':
myfastjetfortran.cc:(.text._ZN7fastjet24ClusterSequenceStructureC2EPKNS_15ClusterSequenceE[_ZN7fastjet24ClusterSequenceStructureC5EPKNS_15ClusterSequenceE]+0x24): undefined reference to `vtable for fastjet::ClusterSequenceStructure'
myfastjetfortran.o: In function `fastjet::PseudoJet::PseudoJet<std::valarray<double> >(std::valarray<double> const&)':
myfastjetfortran.cc:(.text._ZN7fastjet9PseudoJetC2ISt8valarrayIdEEERKT_[_ZN7fastjet9PseudoJetC5ISt8valarrayIdEEERKT_]+0x18): undefined reference to `vtable for fastjet::PseudoJet'
myfastjetfortran.o: In function `fastjet::JetDefinition::DefaultRecombiner::DefaultRecombiner(fastjet::JetDefinition::DefaultRecombiner const&)':
myfastjetfortran.cc:(.text._ZN7fastjet13JetDefinition17DefaultRecombinerC2ERKS1_[_ZN7fastjet13JetDefinition17DefaultRecombinerC5ERKS1_]+0x2a): undefined reference to `vtable for fastjet::JetDefinition::DefaultRecombiner'
myfastjetfortran.o: In function `fastjet::ClusterSequence::ClusterSequence<fastjet::PseudoJet>(std::vector<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet> > const&, fastjet::JetDefinition const&, bool const&)':
myfastjetfortran.cc:(.text._ZN7fastjet15ClusterSequenceC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb[_ZN7fastjet15ClusterSequenceC5INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb]+0x22): undefined reference to `vtable for fastjet::ClusterSequence'
myfastjetfortran.cc:(.text._ZN7fastjet15ClusterSequenceC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb[_ZN7fastjet15ClusterSequenceC5INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb]+0xe5): undefined reference to `fastjet::ClusterSequence::_decant_options_partial()'
myfastjetfortran.cc:(.text._ZN7fastjet15ClusterSequenceC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb[_ZN7fastjet15ClusterSequenceC5INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb]+0xf1): undefined reference to `fastjet::ClusterSequence::_initialise_and_run_no_decant()'
myfastjetfortran.o: In function `fastjet::PseudoJet::PseudoJet(fastjet::PseudoJet const&)':
myfastjetfortran.cc:(.text._ZN7fastjet9PseudoJetC2ERKS0_[_ZN7fastjet9PseudoJetC5ERKS0_]+0x18): undefined reference to `vtable for fastjet::PseudoJet'
myfastjetfortran.o: In function `fastjet::JetDefinition::DefaultRecombiner::~DefaultRecombiner()':
myfastjetfortran.cc:(.text._ZN7fastjet13JetDefinition17DefaultRecombinerD2Ev[_ZN7fastjet13JetDefinition17DefaultRecombinerD5Ev]+0x13): undefined reference to `vtable for fastjet::JetDefinition::DefaultRecombiner'
/home/goutam/SOFTWARES/MY_SOFTWARES/HEPMC/install/lib/libHepMCfio.so: undefined reference to `HepMC::GenParticle::generated_mass() const'
/home/goutam/SOFTWARES/MY_SOFTWARES/HEPMC/install/lib/libHepMCfio.so: undefined reference to `HepMC::GenParticle::print(std::ostream&) const'
/home/goutam/SOFTWARES/MY_SOFTWARES/HEPMC/install/lib/libHepMCfio.so: undefined reference to `HepMC::GenParticle::parent_event() const'
/home/goutam/SOFTWARES/MY_SOFTWARES/HEPMC/install/lib/libHepMCfio.so: undefined reference to `HepMC::GenVertex::print(std::ostream&) const'
collect2: error: ld returned 1 exit status
make: *** [Pythia82] Error 1

PS. I tried same procedures in other machines and just putting dl in shower_card works fine

Revision history for this message
marco zaro (marco-zaro) said :
#5

Hi all,
sorry, I am taking over this question as Paolo's daughter is born.
First of all, can you make sure libdl exists on your machine?
E.g. on ubuntu it is from the libc6-dev package;
on macosx nothing should be done, at least according to this
http://stackoverflow.com/questions/20169660/where-is-libdl-so-on-mac-os-x

So, Goutam and Daniele, please double check this
1) install hepmc2
2) install pythia82xx and configure using --with-hepmc2=/path/to/hempc
3) specify the path to pythia8 into amcantlo_configuration. The path to hepmc is not needed there
4) add dl as extralibs
Does this correspond to what you did?
Let me know,

Marco

Revision history for this message
Goutam Das (gkdgoutam) said :
#6

Hi Marco,
               Nice to hear from you. I have followed the same steps as you have suggested. It works on Mac. But on my linux machine it fails. The installation of hepmc and pythia is correct. The problem is it can not find dl .

Here is what returns for search of lindl :

goutam@goutamSINP ~/MADGRAPH/2.3.4/TJ_QCD $ locate libdl
/home/goutam/SOFTWARES/SOURCES/gcc/sss/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj
/home/goutam/SOFTWARES/SOURCES/gcc/sss/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters
/home/goutam/SOFTWARES/SOURCES/gcc/sss/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.user
/home/goutam/SOFTWARES/SOURCES/gcc/sss/zlib/contrib/vstudio/vc9/testzlibdll.vcproj
/lib/i386-linux-gnu/libdl-2.19.so
/lib/i386-linux-gnu/libdl.so.2
/lib/x86_64-linux-gnu/libdl-2.19.so
/lib/x86_64-linux-gnu/libdl.so.2
/lib32/libdl-2.19.so
/lib32/libdl.so.2
/libx32/libdl-2.19.so
/libx32/libdl.so.2
/usr/aarch64-linux-gnu/lib/libdl-2.19.so
/usr/aarch64-linux-gnu/lib/libdl.so.2
/usr/lib/libdlrestrictions.so.1
/usr/lib/libdlrestrictions.so.1.0.0
/usr/lib/libreoffice/program/libdlgprovlo.so
/usr/lib/x86_64-linux-gnu/libdl.a
/usr/lib/x86_64-linux-gnu/libdl.so
/usr/lib32/libdl.a
/usr/lib32/libdl.so
/usr/libx32/libdl.a
/usr/libx32/libdl.so
/usr/powerpc-linux-gnu/lib/libdl-2.19.so
/usr/powerpc-linux-gnu/lib/libdl.so.2
/usr/powerpc64le-linux-gnu/lib/libdl-2.19.so
/usr/powerpc64le-linux-gnu/lib/libdl.so.2
/usr/share/doc/libdlrestrictions1
/usr/share/doc/libdlrestrictions1/NEWS.Debian.gz
/usr/share/doc/libdlrestrictions1/changelog.gz
/usr/share/doc/libdlrestrictions1/copyright
/var/cache/apt/archives/libdlrestrictions1_0.15.12ubuntu1_amd64.deb
/var/lib/dpkg/info/libdlrestrictions1.list
/var/lib/dpkg/info/libdlrestrictions1.md5sums
/var/lib/dpkg/info/libdlrestrictions1.postinst
/var/lib/dpkg/info/libdlrestrictions1.postrm
/var/lib/dpkg/info/libdlrestrictions1.shlibs
/var/lib/dpkg/info/libdlrestrictions1.symbols

I put all the paths in bashrc and also in shower_card/EXTRAPATHS but still it can not recognise the library I guess. The error message is in the previous mail.

Best Regards,
Goutam

Revision history for this message
Goutam Das (gkdgoutam) said :
#7

Dear Marco,
                     I have followed the same procedure to install and linking hepmc/pythia8 in other linux machine and it works perfectly after putting dl in the EXTRAPATHS, but particular to this linux machine its not working. I am sure its not a problem of hepmc/pythia8 installation but that it can not link to dl properly.

I tried without putting dl in the EXTRAPATHS and same error comes.

On mac dl is not even needed, it runs fine without it.
Is there any way around to linking dl for pythia8 run?

Best Regards,
Goutam

Revision history for this message
marco zaro (marco-zaro) said :
#8

Hi Goutam,
are you sure the correct libdl is installed on the troublesome linux machine? I mean compatible with compilers and architecture?
I don’t have any other idea…
Cheers,

Marco

On 01 Dec 2015, at 16:42, Goutam Das <email address hidden> wrote:

> Question #260696 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/260696
>
> Goutam Das posted a new comment:
> Dear Marco,
> I have followed the same procedure to install and linking hepmc/pythia8 in other linux machine and it works perfectly after putting dl in the EXTRAPATHS, but particular to this linux machine its not working. I am sure its not a problem of hepmc/pythia8 installation but that it can not link to dl properly.
>
> I tried without putting dl in the EXTRAPATHS and same error comes.
>
> On mac dl is not even needed, it runs fine without it.
> Is there any way around to linking dl for pythia8 run?
>
>
> Best Regards,
> Goutam
>
> --
> You received this question notification because you are subscribed to
> the question.

Revision history for this message
Goutam Das (gkdgoutam) said :
#9

Hi Marco,
               I installed it through the package manager of ubuntu
(http://packages.ubuntu.com/search?suite=raring&arch=any&searchon=contents&keywords=libdl.so).

I guess its problem with the particular machine. Even Pythia8 standalone runs well. But I wonder why dl is needed for pythia8 showering? Its not needed on OSX (or is it taken automatically?).

Best Regards,
Goutam

Revision history for this message
marco zaro (marco-zaro) said :
#10

Hi Goutam,
I don’t know why dl is needed.
On a mac, i think it is by default linked and found at runtime as a dynamic library…
Cheers,

Marco
On 01 Dec 2015, at 17:07, Goutam Das <email address hidden> wrote:

> Question #260696 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/260696
>
> Goutam Das posted a new comment:
> Hi Marco,
> I installed it through the package manager of ubuntu
> (http://packages.ubuntu.com/search?suite=raring&arch=any&searchon=contents&keywords=libdl.so).
>
> I guess its problem with the particular machine. Even Pythia8 standalone
> runs well. But I wonder why dl is needed for pythia8 showering? Its not
> needed on OSX (or is it taken automatically?).
>
>
> Best Regards,
> Goutam
>
> --
> You received this question notification because you are subscribed to
> the question.

Revision history for this message
Goutam Das (gkdgoutam) said :
#11

Hi Marco,
                   This problem is solve (Thanks to Pavel).
The problem was the correct ordering of the libs. It seems that the dl and hepmc lib have to be after pythia8 lib.
So in Pythia8.2 makefile it looks like this:

Pythia82: $(FORFILE) $(PYTHIA8LOCATION)/$(LIBDIR)/libpythia8.a
          $(CXX) $(CXXFLAGS) -I$(PYTHIA8LOCATION)/$(INCDIR) \
          -I$(TOPDIR)/$(INCDIR) -I$(TOPDIR)/$(INCDIR) $(INCLOPTION) $@.cc -o Pythia8.exe $(FORFILE) \
          -L$(PYTHIA8LOCATION)/$(LIBDIR) -lpythia8 $(LIBGZIP) \
          -lHepMCfio $(LIBGFORTRAN) $(HEPMCINCLIB) $(EXTRAPATHS) $(EXTRALIBS) \

Best Regards,
Goutam

Revision history for this message
Paolo Torrielli (paolo-torrielli) said :
#12

Thanks Goutam and Pavel,
we’ll implement this solution!
Cheers.
Paolo

On 04 Dec 2015, at 16:22, Goutam Das <email address hidden> wrote:

> Question #260696 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/260696
>
> Goutam Das proposed the following answer:
> Hi Marco,
> This problem is solve (Thanks to Pavel).
> The problem was the correct ordering of the libs. It seems that the dl and hepmc lib have to be after pythia8 lib.
> So in Pythia8.2 makefile it looks like this:
>
>
> Pythia82: $(FORFILE) $(PYTHIA8LOCATION)/$(LIBDIR)/libpythia8.a
> $(CXX) $(CXXFLAGS) -I$(PYTHIA8LOCATION)/$(INCDIR) \
> -I$(TOPDIR)/$(INCDIR) -I$(TOPDIR)/$(INCDIR) $(INCLOPTION) $@.cc -o Pythia8.exe $(FORFILE) \
> -L$(PYTHIA8LOCATION)/$(LIBDIR) -lpythia8 $(LIBGZIP) \
> -lHepMCfio $(LIBGFORTRAN) $(HEPMCINCLIB) $(EXTRAPATHS) $(EXTRALIBS) \
>
>
> Best Regards,
> Goutam
>
> --
> You received this question notification because you are subscribed to
> the question.

Revision history for this message
Richard Ruiz (rruiz) said :
#13

Dear All,

I ran into the identical error and was able to parton shower using Pythia 8.2.x by making Goutam's suggested changes to the makefile. Though, I would like to note for others that the appropriate make file(s) are Makefile and Makefile_hep, located in
"working_directory/MCatNLO/srcPythia8/"

cheers
richard

Revision history for this message
Josh McFayden (mcfayden) said :
#14

Hi all,

Was this supposed to be fixed in MG5_aMC_v2.3.3?
I have the same problem with v2.3.3, but the fix above isn't working for me. Maybe I'm just doing it wrong though...

Best,

Josh.

Revision history for this message
Paolo Torrielli (paolo-torrielli) said :
#15

Dear Josh,

the solution proposed by Pavel (namely having the dl and hepmc libraries called after
the pythia8 one) is implemented in the new version of the makefiles in 2.3.4.

Still, in 2.3.3 it should work if you implement it by hand in srcPythia8/Makefile and
srcPythia8/Makefile_hep.
If it does not, what is the error message? Is the dl library in a standard location
in your setup? Could you try and add the path to dl to the EXTRAPATHS variable in
shower_card?

Let me know.
Cheers.
Paolo

On 26 Apr 2016, at 18:32, Josh McFayden <email address hidden> wrote:

> Question #260696 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/260696
>
> Josh McFayden requested more information:
> Hi all,
>
> Was this supposed to be fixed in MG5_aMC_v2.3.3?
> I have the same problem with v2.3.3, but the fix above isn't working for me. Maybe I'm just doing it wrong though...
>
> Best,
>
> Josh.
>
> --
> You received this question notification because you are subscribed to
> the question.

Can you help with this problem?

Provide an answer of your own, or ask dpuddu86 for more information if necessary.

To post a message you must log in.