Select version of pythia-pgs while installing

Asked by Koen Oussoren

Hi,

When trying to generate events with my scripts, the installation of MG5_aMC fails when I try to install pythia-pgs. I didn't have this problem two days ago and figured out that the only difference is that instead of installing pythia-pgs-v2.4.1 the code tries to install pythia-pgs-v2.4.2, which is the latest version since a day or so. What I want to do to fix this is by telling Madgraph to install version 2.4.1, because that worked for me before. The most obvious "install pythia-pgs v2.4.1", or something like that, doesn't seem to work, so how do you force Madgraph to download and install a particular version of pythia-pgs?

Cheers,
Koen

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Dear Koen,

You can not, the only way is to install that previous version by hand.
Here is a link:
http://madgraph.hep.uiuc.edu/Downloads/pythia-pgs_V2.4.1.tar.gz

Can you report the error message here such that i can see if I can fix the version.

Note that this version of pythia-pgs include the latest version of pythia6 which fix a bug in the treatment of FSR.
So I will strongly recommend to use the latest version.

Cheers,

Olivier

Revision history for this message
Koen Oussoren (kp-oussoren) said :
#2

Hi Olivier,

This is the error I get:

            make[2]: Leaving directory `/tmpdir/11366320.allier.nikhef.nl/GenNLO/MG5_aMC_v2_2_2/pythia-pgs/libraries/lhapdf'
            cd ../libraries/PGS4; mkdir -p lib; make tauola
            make[2]: Entering directory `/tmpdir/11366320.allier.nikhef.nl/GenNLO/MG5_aMC_v2_2_2/pythia-pgs/libraries/PGS4'
            make[2]: Nothing to be done for `tauola'.
            make[2]: Leaving directory `/tmpdir/11366320.allier.nikhef.nl/GenNLO/MG5_aMC_v2_2_2/pythia-pgs/libraries/PGS4'
            cd ../libraries/PGS4; mkdir -p lib; make mcfio
            make[2]: Entering directory `/tmpdir/11366320.allier.nikhef.nl/GenNLO/MG5_aMC_v2_2_2/pythia-pgs/libraries/PGS4'
            make[2]: Nothing to be done for `mcfio'.
            make[2]: Leaving directory `/tmpdir/11366320.allier.nikhef.nl/GenNLO/MG5_aMC_v2_2_2/pythia-pgs/libraries/PGS4'
            gfortran -O -fno-automatic -I../libraries/PGS4/src -o pythia pythia.o ME2pythia.o getjet.o ktclusdble.o pgs_ranmar.o pydata.o -L../libraries/PGS4/lib -L../libraries/pylib/lib -L../libraries/lhapdf/lib -ltauola -lpythiaext -lstdhep -lFmcfio -lLHAPDFlocal
            ../libraries/lhapdf/lib/libLHAPDFlocal.a(lhaglue.o): In function `pdfset_':
            lhaglue.f:(.text+0x0): multiple definition of `pdfset_'
            ../libraries/pylib/lib/libpythiaext.a(pdfset.o):pdfset.f:(.text+0x0): first defined here
            ../libraries/lhapdf/lib/libLHAPDFlocal.a(lhaglue.o): In function `structm_':
            lhaglue.f:(.text+0x6b9f): multiple definition of `structm_'
            ../libraries/pylib/lib/libpythiaext.a(structm.o):structm.f:(.text+0x0): first defined here
            ../libraries/lhapdf/lib/libLHAPDFlocal.a(lhaglue.o): In function `structp_':
            lhaglue.f:(.text+0x6e7e): multiple definition of `structp_'
            ../libraries/pylib/lib/libpythiaext.a(structp.o):structp.f:(.text+0x0): first defined here
            collect2: error: ld returned 1 exit status
            make[1]: *** [pythia] Error 1
            make[1]: Leaving directory `/tmpdir/11366320.allier.nikhef.nl/GenNLO/MG5_aMC_v2_2_2/pythia-pgs/src'
            make: *** [all] Error 2

Cheers,
Koen

Revision history for this message
Simon Berlendis (simon-berlendis) said :
#3

 Hi Koen, Olivier

I would be very interested about how you managed to make it work. I have the same problem than you. With the same error message....

 Cheers,
 Simon

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#4

Hi Simon, Koen,

Actually it works for me on my mac.

Could you try the following:
cd pythia-pgs
rm libraries/pylib/src/structm.*
make clean
make

and tell me if it works or not on your system.
If it does, I will remove those file in the tarball.

Cheers,

Olivier

Revision history for this message
Iftah Galon (iftah) said :
#5

Hi everyone,
I've been having the same issue.

Olivier, I've tried your suggestion.
Unfortunately, it does not seem to work.

Thank you for the help
Sincerely
Iftah

Revision history for this message
Sho Iwamoto (misho) said :
#6

Hi Olivier, (and hello iftah!)

I tried under two environments, and
  Successfully compiled with OSX 10.9 + gcc version 4.9.2 (Homebrew gcc 4.9.2_1)
  Hit on the same problem with Debian + gcc version 4.9.1 (Debian 4.9.1-19), GNU ld (GNU Binutils for Debian) 2.24.90.20141023

This issue is because Pythia-pgs 2.4.2 includes dummy routines of pythia; they were removed in v2.4.1. So
  rm upevnt.f upinit.f pdfset.f structm.f structp.f
will solve this problem.

Another solution is changing link order in /src/Makefile
 from: LIBS1 = ${XLIBS1} -ltauola -lstdhep -lpythiaext -lFmcfio -lLHAPDFlocal ${XLIBS2}
 to: LIBS1 = ${XLIBS1} -ltauola -lstdhep -lFmcfio -lLHAPDFlocal -lpythiaext ${XLIBS2}
but, certainly, removing dummy routines is better.

Note that we also have to modify (actually revert) the first lines of libraries/pylib/src/Makefile.
Otherwise we will see

> make[3]: *** No rule to make target 'pdfset.o', needed by '../lib/libpythiaext.a'. Stop.
make[3]: Leaving directory '/home/misho/HEPcodes/MG5_aMC_v2_2_2/removing/libraries/pylib/src'
make[2]: Leaving directory '/home/misho/HEPcodes/MG5_aMC_v2_2_2/removing/libraries/pylib'
cd ../libraries/PGS4; mkdir -p lib; make all
make[2]: Entering directory '/home/misho/HEPcodes/MG5_aMC_v2_2_2/removing/libraries/PGS4'

> ----- Now compiling examples/olympics -----

> gfortran -fno-automatic -o examples/olympics examples/pgs_olympics.f \
            -L./lib -lpgslib -ltauola \
            -lstdhep -lexthep -lFmcfio -L../../libraries/pylib/lib -lpythiaext; chmod +x examples/olympics
/usr/bin/ld: cannot find -lpythiaext
collect2: error: ld returned 1 exit status
chmod: cannot access ‘examples/olympics’: No such file or directory
Makefile:141: recipe for target 'examples/olympics' failed
make[2]: *** [examples/olympics] Error 1
make[2]: Leaving directory '/home/misho/HEPcodes/MG5_aMC_v2_2_2/removing/libraries/PGS4'
makefile:72: recipe for target 'libpgs' failed
make[1]: *** [libpgs] Error 2
make[1]: Leaving directory '/home/misho/HEPcodes/MG5_aMC_v2_2_2/removing/src'
makefile:3: recipe for target 'all' failed
make: *** [all] Error 2

Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#7

Thanks a lot Sho,

I have just make those change in 2.4.3. which should be available in a couple of minut.

Cheers and thanks,

Olivier

Revision history for this message
Simon Berlendis (simon-berlendis) said :
#8

Hi !

 It's working for me.

 Thank you so much !!

 Cheers,
 Simon.

Revision history for this message
Koen Oussoren (kp-oussoren) said :
#9

Thanks Olivier Mattelaer, that solved my question.