problem in configuring pythia8 with hepmc

Asked by namrata manglani on 2017-05-13

Hi All,
After doing a make to configure pythia8 with fastjet, root and hepmc in my mac. i cannot run main41.

Out put after the make :
Arjun@Arjuns-MacBook-Air:/usr/local/Cellar/pythia8219 $ make
g++ src/Analysis.cc -o tmp/Analysis.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/Basics.cc -o tmp/Basics.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/BeamParticle.cc -o tmp/BeamParticle.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/BeamRemnants.cc -o tmp/BeamRemnants.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/BeamShape.cc -o tmp/BeamShape.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/BoseEinstein.cc -o tmp/BoseEinstein.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/ColourReconnection.cc -o tmp/ColourReconnection.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/ColourTracing.cc -o tmp/ColourTracing.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/Event.cc -o tmp/Event.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/FJcore.cc -o tmp/FJcore.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/FragmentationFlavZpT.cc -o tmp/FragmentationFlavZpT.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/FragmentationSystems.cc -o tmp/FragmentationSystems.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/HadronLevel.cc -o tmp/HadronLevel.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/HadronScatter.cc -o tmp/HadronScatter.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/HardDiffraction.cc -o tmp/HardDiffraction.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/HelicityBasics.cc -o tmp/HelicityBasics.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/HelicityMatrixElements.cc -o tmp/HelicityMatrixElements.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/HiddenValleyFragmentation.cc -o tmp/HiddenValleyFragmentation.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/History.cc -o tmp/History.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/Info.cc -o tmp/Info.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/JunctionSplitting.cc -o tmp/JunctionSplitting.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/LHEF3.cc -o tmp/LHEF3.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/LesHouches.cc -o tmp/LesHouches.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/Merging.cc -o tmp/Merging.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/MergingHooks.cc -o tmp/MergingHooks.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/MiniStringFragmentation.cc -o tmp/MiniStringFragmentation.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/MultipartonInteractions.cc -o tmp/MultipartonInteractions.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/ParticleData.cc -o tmp/ParticleData.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/ParticleDecays.cc -o tmp/ParticleDecays.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/PartonDistributions.cc -o tmp/PartonDistributions.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/PartonLevel.cc -o tmp/PartonLevel.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/PartonSystems.cc -o tmp/PartonSystems.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/PhaseSpace.cc -o tmp/PhaseSpace.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/ProcessContainer.cc -o tmp/ProcessContainer.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/ProcessLevel.cc -o tmp/ProcessLevel.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/Pythia.cc -o tmp/Pythia.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC -DXMLDIR=\"/usr/local/Cellar/pythia8219/share/Pythia8/xmldoc\"
g++ src/PythiaStdlib.cc -o tmp/PythiaStdlib.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/RHadrons.cc -o tmp/RHadrons.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/ResonanceDecays.cc -o tmp/ResonanceDecays.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/ResonanceWidths.cc -o tmp/ResonanceWidths.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SLHAinterface.cc -o tmp/SLHAinterface.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/Settings.cc -o tmp/Settings.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaCompositeness.cc -o tmp/SigmaCompositeness.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaEW.cc -o tmp/SigmaEW.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaExtraDim.cc -o tmp/SigmaExtraDim.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaGeneric.cc -o tmp/SigmaGeneric.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaHiggs.cc -o tmp/SigmaHiggs.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaLeftRightSym.cc -o tmp/SigmaLeftRightSym.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaLeptoquark.cc -o tmp/SigmaLeptoquark.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaNewGaugeBosons.cc -o tmp/SigmaNewGaugeBosons.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaOnia.cc -o tmp/SigmaOnia.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaProcess.cc -o tmp/SigmaProcess.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaQCD.cc -o tmp/SigmaQCD.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaSUSY.cc -o tmp/SigmaSUSY.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SigmaTotal.cc -o tmp/SigmaTotal.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SpaceShower.cc -o tmp/SpaceShower.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/StandardModel.cc -o tmp/StandardModel.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/Streams.cc -o tmp/Streams.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/StringFragmentation.cc -o tmp/StringFragmentation.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/StringLength.cc -o tmp/StringLength.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SusyCouplings.cc -o tmp/SusyCouplings.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SusyLesHouches.cc -o tmp/SusyLesHouches.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SusyResonanceWidths.cc -o tmp/SusyResonanceWidths.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/SusyWidthFunctions.cc -o tmp/SusyWidthFunctions.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/TauDecays.cc -o tmp/TauDecays.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/TimeShower.cc -o tmp/TimeShower.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/UserHooks.cc -o tmp/UserHooks.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
g++ src/WeakShowerMEs.cc -o tmp/WeakShowerMEs.o -c -MD -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC
ar cru lib/libpythia8.a tmp/Analysis.o tmp/Basics.o tmp/BeamParticle.o tmp/BeamRemnants.o tmp/BeamShape.o tmp/BoseEinstein.o tmp/ColourReconnection.o tmp/ColourTracing.o tmp/Event.o tmp/FJcore.o tmp/FragmentationFlavZpT.o tmp/FragmentationSystems.o tmp/HadronLevel.o tmp/HadronScatter.o tmp/HardDiffraction.o tmp/HelicityBasics.o tmp/HelicityMatrixElements.o tmp/HiddenValleyFragmentation.o tmp/History.o tmp/Info.o tmp/JunctionSplitting.o tmp/LHEF3.o tmp/LesHouches.o tmp/Merging.o tmp/MergingHooks.o tmp/MiniStringFragmentation.o tmp/MultipartonInteractions.o tmp/ParticleData.o tmp/ParticleDecays.o tmp/PartonDistributions.o tmp/PartonLevel.o tmp/PartonSystems.o tmp/PhaseSpace.o tmp/ProcessContainer.o tmp/ProcessLevel.o tmp/Pythia.o tmp/PythiaStdlib.o tmp/RHadrons.o tmp/ResonanceDecays.o tmp/ResonanceWidths.o tmp/SLHAinterface.o tmp/Settings.o tmp/SigmaCompositeness.o tmp/SigmaEW.o tmp/SigmaExtraDim.o tmp/SigmaGeneric.o tmp/SigmaHiggs.o tmp/SigmaLeftRightSym.o tmp/SigmaLeptoquark.o tmp/SigmaNewGaugeBosons.o tmp/SigmaOnia.o tmp/SigmaProcess.o tmp/SigmaQCD.o tmp/SigmaSUSY.o tmp/SigmaTotal.o tmp/SpaceShower.o tmp/StandardModel.o tmp/Streams.o tmp/StringFragmentation.o tmp/StringLength.o tmp/SusyCouplings.o tmp/SusyLesHouches.o tmp/SusyResonanceWidths.o tmp/SusyWidthFunctions.o tmp/TauDecays.o tmp/TimeShower.o tmp/UserHooks.o tmp/WeakShowerMEs.o
/opt/local/bin/ranlib: file: lib/libpythia8.a(Streams.o) has no symbols
g++ tmp/Analysis.o tmp/Basics.o tmp/BeamParticle.o tmp/BeamRemnants.o tmp/BeamShape.o tmp/BoseEinstein.o tmp/ColourReconnection.o tmp/ColourTracing.o tmp/Event.o tmp/FJcore.o tmp/FragmentationFlavZpT.o tmp/FragmentationSystems.o tmp/HadronLevel.o tmp/HadronScatter.o tmp/HardDiffraction.o tmp/HelicityBasics.o tmp/HelicityMatrixElements.o tmp/HiddenValleyFragmentation.o tmp/History.o tmp/Info.o tmp/JunctionSplitting.o tmp/LHEF3.o tmp/LesHouches.o tmp/Merging.o tmp/MergingHooks.o tmp/MiniStringFragmentation.o tmp/MultipartonInteractions.o tmp/ParticleData.o tmp/ParticleDecays.o tmp/PartonDistributions.o tmp/PartonLevel.o tmp/PartonSystems.o tmp/PhaseSpace.o tmp/ProcessContainer.o tmp/ProcessLevel.o tmp/Pythia.o tmp/PythiaStdlib.o tmp/RHadrons.o tmp/ResonanceDecays.o tmp/ResonanceWidths.o tmp/SLHAinterface.o tmp/Settings.o tmp/SigmaCompositeness.o tmp/SigmaEW.o tmp/SigmaExtraDim.o tmp/SigmaGeneric.o tmp/SigmaHiggs.o tmp/SigmaLeftRightSym.o tmp/SigmaLeptoquark.o tmp/SigmaNewGaugeBosons.o tmp/SigmaOnia.o tmp/SigmaProcess.o tmp/SigmaQCD.o tmp/SigmaSUSY.o tmp/SigmaTotal.o tmp/SpaceShower.o tmp/StandardModel.o tmp/Streams.o tmp/StringFragmentation.o tmp/StringLength.o tmp/SusyCouplings.o tmp/SusyLesHouches.o tmp/SusyResonanceWidths.o tmp/SusyWidthFunctions.o tmp/TauDecays.o tmp/TimeShower.o tmp/UserHooks.o tmp/WeakShowerMEs.o -o lib/libpythia8.dylib -Iinclude -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC -dynamiclib -flat_namespace -undefined suppress -Wl,-dylib_install_name,libpythia8.dylib\
   -Wl,-rpath,/usr/local/Cellar/pythia8219/lib -ldl
clang: warning: argument unused during compilation: '-ansi'
cp Makefile.inc share/Pythia8/../../examples/Makefile.inc

trying to run main41 in examples dir gives:

Arjun@Arjuns-MacBook-Air:/usr/local/Cellar/pythia8219/examples $ make main41
Makefile:123: warning: overriding commands for target `example'
Makefile:111: warning: ignoring old commands for target `example'
g++ main41.cc ../lib/libpythia8.a -o main41 -I/usr/local/Cellar/hepmc-x86-namu/x86_64-mac106-gcc42-opt/include -I../include -O2 -ansi -pedantic -W -Wall -Wshadow -fPIC -Wl,-rpath,../lib -ldl\
  -L/usr/local/Cellar/hepmc-x86-namu/x86_64-mac106-gcc42-opt/lib -Wl,-rpath,/usr/local/Cellar/hepmc-x86-namu/x86_64-mac106-gcc42-opt/lib -lHepMC
Undefined symbols for architecture x86_64:
  "HepMC::IO_GenEvent::IO_GenEvent(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)", referenced from:
      _main in main41-5c7229.o
  "HepMC::WeightContainer::WeightContainer(std::__1::vector<double, std::__1::allocator<double> > const&)", referenced from:
      _main in main41-5c7229.o
      HepMC::Pythia8ToHepMC::fill_next_event(Pythia8::Event&, HepMC::GenEvent*, int, Pythia8::Info*, Pythia8::Settings*, bool, HepMC::GenParticle*, int) in main41-5c7229.o
      HepMC::IO_BaseClass::read_next_event() in main41-5c7229.o
  "HepMC::GenEvent::GenEvent(int, int, HepMC::GenVertex*, HepMC::WeightContainer const&, std::__1::vector<long, std::__1::allocator<long> > const&, HepMC::Units::MomentumUnit, HepMC::Units::LengthUnit)", referenced from:
      _main in main41-5c7229.o
      HepMC::IO_BaseClass::read_next_event() in main41-5c7229.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [main41] Error 1

Can anyone please help me sort this out please.
Thanks in advance.

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu pythia8 Edit question
Assignee:
No assignee Edit question
Last query:
2017-05-13
Last reply:

Can you help with this problem?

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

To post a message you must log in.