Pythia8 installation woes in v2.5.0.beta

Asked by Richard Ruiz

Hi Valentin,

I am trying out v2.5.0.beta but am running into the same problem compiling pythia8 on two different machines. While trying the command "install pythia8" I get the output below. It seems pythia8 is having difficulty compiling "LHAPDF6Plugin.o" and is asking (?) to recompile with flag "-fPIC". However, I am unsure if this is the correct assessment nor how to best implement this change.

There is also an interesting flag in my pythia8 configuration: --with-lhapdf6-plugin=LHAPDF6.h
This is different from all the other flags, which reference the absolute path to the HEPTools directory.

Best,
Richard

Configuration summary:
---------------------------------------------------------------------
| PYTHIA Configuration Summary |
---------------------------------------------------------------------
Configured for LINUX with the following options:

The following optional external packages will be used:
* HEPMC2
* LHAPDF6
* GZIP
* BOOST

./configure ./configure --prefix=/.../MG5_aMC_v2_5_0_beta/HEPTools/pythia8/ --with-hepmc2=/.../MG5_aMC_v2_5_0_beta/HEPTools/hepmc --with-hepmc2-include=/.../MG5_aMC_v2_5_0_beta/HEPTools/hepmc/include --with-gzip=/home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta/HEPTools/zlib --with-lhapdf6=/.../MG5_aMC_v2_5_0_beta/HEPTools/lhapdf6 --with-lhapdf6-plugin=LHAPDF6.h --with-boost=/usr/local --cxx-common='-ldl -lstdc++ -DHEPMC2HACK'
g++

....

g++ src/PartonDistributions.cc -o tmp/PartonDistributions.o -c -MD -Iinclude -ldl -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta/HEPTools/zlib/include
ar cru lib/libpythia8.a tmp/Merging.o tmp/ProcessContainer.o tmp/MiniStringFragmentation.o tmp/BeamParticle.o tmp/Info.o tmp/PythiaStdlib.o tmp/HiddenValleyFragmentation.o tmp/ColourReconnection.o tmp/PhaseSpace.o tmp/SigmaEW.o tmp/SigmaCompositeness.o tmp/UserHooks.o tmp/JunctionSplitting.o tmp/Streams.o tmp/StringLength.o tmp/Analysis.o tmp/SusyWidthFunctions.o tmp/SigmaLeftRightSym.o tmp/Basics.o tmp/HardDiffraction.o tmp/FragmentationFlavZpT.o tmp/SusyLesHouches.o tmp/PartonLevel.o tmp/HadronScatter.o tmp/Event.o tmp/StandardModel.o tmp/ProcessLevel.o tmp/SusyCouplings.o tmp/ParticleData.o tmp/BeamRemnants.o tmp/PartonSystems.o tmp/LesHouches.o tmp/LHEF3.o tmp/SigmaGeneric.o tmp/SigmaQCD.o tmp/Pythia.o tmp/TauDecays.o tmp/MultipartonInteractions.o tmp/FJcore.o tmp/SigmaHiggs.o tmp/FragmentationSystems.o tmp/SigmaTotal.o tmp/ColourTracing.o tmp/StringFragmentation.o tmp/WeakShowerMEs.o tmp/TimeShower.o tmp/SLHAinterface.o tmp/SpaceShower.o tmp/History.o tmp/MergingHooks.o tmp/HadronLevel.o tmp/SigmaOnia.o tmp/SigmaSUSY.o tmp/HelicityBasics.o tmp/SigmaLeptoquark.o tmp/SigmaNewGaugeBosons.o tmp/BeamShape.o tmp/RHadrons.o tmp/Settings.o tmp/SigmaExtraDim.o tmp/ResonanceDecays.o tmp/BoseEinstein.o tmp/SusyResonanceWidths.o tmp/ResonanceWidths.o tmp/HelicityMatrixElements.o tmp/SigmaProcess.o tmp/ParticleDecays.o tmp/PartonDistributions.o
ar: `u' modifier ignored since `D' is the default (see `U')

g++ -x c++ include/Pythia8Plugins/LHAPDF6.h -o tmp/LHAPDF6Plugin.o -c -MD -w -I/home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta/HEPTools/lhapdf6/include\
 -I/usr/local/include -Iinclude -ldl -lstdc++ -DHEPMC2HACK

g++ tmp/LHAPDF6Plugin.o lib/libpythia8.a -o lib/libpythia8lhapdf6.so -Iinclude -ldl -lstdc++ -DHEPMC2HACK -shared -Wl,-soname,libpythia8lhapdf6.so\
 -L/home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta/HEPTools/lhapdf6/lib -Wl,-rpath,/home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta/HEPTools/lhapdf6/lib -lLHAPDF
/usr/bin/ld: tmp/LHAPDF6Plugin.o: relocation R_X86_64_32 against `_ZTVN7Pythia87LHAPDF6E' can not be used when making a shared object; recompile with -fPIC
tmp/LHAPDF6Plugin.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:116: recipe for target 'lib/libpythia8lhapdf6.so' failed
make: *** [lib/libpythia8lhapdf6.so] Error 1

g++ tmp/LHAPDF6Plugin.o lib/libpythia8.a -o lib/libpythia8lhapdf6.so -Iinclude -ldl -lstdc++ -DHEPMC2HACK -shared -Wl,-soname,libpythia8lhapdf6.so\
 -L/home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta/HEPTools/lhapdf6/lib -Wl,-rpath,/home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta/HEPTools/lhapdf6/lib -lLHAPDF
/usr/bin/ld: tmp/LHAPDF6Plugin.o: relocation R_X86_64_32 against `_ZTVN7Pythia87LHAPDF6E' can not be used when making a shared object; recompile with -fPIC
tmp/LHAPDF6Plugin.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:116: recipe for target 'lib/libpythia8lhapdf6.so' failed
make: *** [lib/libpythia8lhapdf6.so] Error 1
 Compile PYTHIA8 examples
/home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta/HEPTools/HEPToolsInstallers/installPYTHIA8.sh: line 51: cd: /home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta/HEPTools/pythia8//share/Pythia8/examples: No such file or directory
ls: cannot access 'main*.cc': No such file or directory
 Finished PYTHIA8 installation

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Stefan Prestel Edit question
Solved by:
Richard Ruiz
Solved:
Last query:
Last reply:
Revision history for this message
Valentin Hirschi (valentin-hirschi) said :
#1

HI Richard,

Can you tell me if it works when removing the dependency to lhapdf6; that is with an install command like this:

install pythia8 --with_lhapdf6=OFF --keep_source --logging=DEBUG

Also, if you have successfully installed Pythia8 by yourself on any of the two machines you tested, it would be interesting to compare the respective configure lines (Pythia8 installation doesn't produce a 'config.log' file by default, but on recent enough versions you can access the config line with './pythia8-config --config').

Cheers

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

Hi Valentin,

Thanks for the response. Installing with "--with_lhapdf6=OFF", etc. does care care of both pythia8 and mg5amc_py8_interface compilations. However, a few new issues appeared. The second one might be a typo in the installation scripts but the third is tricky.

Best,
Richard

1. Unlinking lhapdf6 caused problems with downloading the default (NNPDF 2.3 QED) PDF set and calculating the scale variation. I resolved this by fixed by setting the lhapdf path to "lhapdf-config" in my primary mg5_configuration.txt file. Simple enough.

2. After computing the scale variation, MG5 crashes with the following output:

 INFO: End of systematics computation
store_events
INFO: Storing parton level results
INFO: End Parton
reweight -from_cards
decay_events -from_cards
Command "generate_events run_05" interrupted with error:
InvalidCmd : The MG5aMC_PY8_interface tool cannot be found, so that MadEvent cannot steer Pythia8 shower.
 Please install this tool with the following MG5_aMC command:
   MG5_aMC> install mg5amc_py8_interface_path
quit

It turns out that the mg5amc_py8_interface_path written is to the local configuration file is
"/.../HEPTools/mg5amc_py8_interface",
instead of /.../HEPTools/MG5aMC_PY8_interface <~~ Note the capitalization
Again, simple enough to change the path in the local copy of "input/mg5_configuration.txt"

3. Running with the modified config file still results in a crash at the same point but with a new output:
decay_events -from_cards
Command "generate_events " interrupted with error:
NameError : global name 'MG5DIR' is not defined
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/.../MG5_aMC_v2_5_0_beta/.../run_06_tag_1_debug.log'.
Please attach this file to your report.

The relevant lines in the log file are:
  File "/.../MG5_aMC_v2_5_0_beta/.../bin/internal/madevent_interface.py", line 3462, in mg5amc_py8_interface_consistency_warning MG5_version_on_install =
open(pjoin(MG5DIR,options['mg5amc_py8_interface_path'],
NameError: global name 'MG5DIR' is not defined

The same problem appears if instead I rename the "MG5aMC_PY8_interface" directory in HEPTools to "mg5amc_py8_interface".

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

Dear Richard,

Thanks again for your feedback.
I'll address your various points in order:

1. Do you know how the MG5aMC option 'lhapdf_path' got "unset" in your configuration?
Did that happen as a result of installing Pythia8 with the option '--with_lhapdf6=OFF' ?
If this is so, it is not supposed to behave like this, and we should fix this.

2. Ouch, this is quite a blunder. We didn't notice this because both Olivier and myself are working on MacOS whose file system is case-insensitive.
I have now fixed it in the development branch 2.5.1, but this might warrant a quick fix for the released v2.5.0.beta tarball.

3. This is because you have ran our code directly from the output directory, i.e. using the executables in '<PROC_OUTPUT>/bin/[madevent or generate_events or ...]
The preferred way to run the code is by accessing all these functionalities using
   ./bin/mg5_aMC
in your madgraph distribution and then starting the madevent interactive interface with
  launch <PROC_OUTPUT> -i
You can then use a whole list of commands to run on this output, which includes (but not limited to) the functionalities available using the executable in the PROC_OUTPUT.
One fo the difference with steering the code in this way is that we can rely on the location of your MG5aMC installation (stored in the variable MG5DIR').
When not doing so, we have do some gymnastics to get there, and it was not correctly coded in this case.
I have fixed this in the development branch v2.5.1, but for now you can solve your last issue by running the code as suggested above.

I will look for a way to bring these important fixes as soon as possible in the publicly released tarball.
Thanks a lot for your tests and feedback.

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

I have now assigned Stefan Prestel to this issue, so that he can look into what happened with the compilation of Pythia8 with the lhapdf6 plugin, as it seems very likely to be a problem of the Pythia8 installation makefiles and not directly related to MG5aMC.

Regarding the 'unsetting' of 'lhapdf_path' when you installed Pythia8 with '--with_lhapdf6=OFF': I believe that what might have happened is that the installer still linked Pythia8 against lhapdf5 and then accordingly updated your MG5 'lhapdf_path' parameter so as to reflect the lhapdf version active in PY8 (which makes sense).
Now, NNPDF 2.3 QED might not play nice with lhapdf5, and you reverted your MG5aMC lhapdf to the system-wide 'lhapdf-config' (which is v6 I assume then) which solved your issue for that PDF set.

I therefore think that for that particular point, things are fine as they are now then.
I should have suggested you to use '--with_lhapdf6=OFF --with_lhapdf5=OFF' instead, so that Pythia8 would not have been linked against LHPADF at all, and you wouldn't have suffered this inconvenience then.

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

Stefan Prestel must still look into the Pythia8 compilation issue when linking to LHAPDF6.

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

Hi Valentine,

1. Regarding the lhapdf issue, I agree that this might be a (multiple) library conflict with v5 and v6, but also with NNPDF QED, caused by me. I previously commented out 'lhapdf_path' (to v6) since the pythia8 installation complained about lhapdf6 and was nicer after removing the reference. I suspect keeping the path to "lhapdf-config" but adding the --without-lhapdf flag will solve my problems. Thanks for the solution.

3. Interesting. I always thought working from the working directories themselves was the preferred/recommended procedure. However, there is little difference at LO from running with -i. I will keep this in mind.

Again, I appreciate the work everyone does. Thanks! Hopefully Stefan and I will be able to hash things out quickly.

Best,
Richard

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

3. Running any functionality from the process output executables or from the interactive interface started with 'launch -i' should not yield any difference from a physics standpoint.
From an execution standpoint, the former approach uses the MG5aMC python modules of your original distribution whereas the latter one uses the modules exported and written out with the process output (and MG5DIR is not set).
For this reason, it is actually preferable to steer things from 'launch -i' so as to make sure that it is your current MG5aMC distribution that is active.

Your checks and feedback are very much appreciated as well.

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

One thing you could try (awaiting Stefan's answer) is to recompile pythia8 by hand with the C++ flag (-fPIC) and see if it solves the issue.

You can usually do so if you had tried to install your PY8 distribution via MG5aMC with option '--keep_source', that is:

MG5_aMC> install pythia8 --keep_source

You can then find PY8 sources in

<MG5aMC_installation_path>/HEPTools/pythia8_src

where you can run the following executable to find out what were its configuration options:

./bin/pythia8-config config

In my case it returns something like

./bin/pythia8-config --config
./configure --prefix=/Users/valentin/Documents/Work/MG5/HEPTools/pythia8/ --with-hepmc2=/Users/valentin/Documents/Work/MG5/HEPTools/hepmc --with-hepmc2-include=/Users/valentin/Documents/Work/MG5/HEPTools/hepmc/include --with-gzip=/opt/local --with-lhapdf6=/Users/valentin/Documents/HEP_softs/LHAPDF/LHAPDF-6.1.2_installation --with-lhapdf6-plugin=LHAPDF6.h --with-boost=/opt/local --cxx-common=-ldl -lstdc++ -DHEPMC2HACK

So what you can try is to run 'make clean' in your 'pythia8_src' directory and reconfigure it with the line you would have obtained above, but with '-fPIC' added to the list of '--cxx-common' options.
Then you can run 'make' and 'make install' and see if it works this way.
Of course make sure that your previous attempted installation of pythia8 included lhapdf6, so that the configure line you obtain above does have the specification of the lhapdf6 dependency.

If you tell me that the above works, then I'll be able to directly modify our installer and distribute it automatically for all users without any re-release of MG5aMC. So this could potentially help many users and be quite useful.

Thank you again for your help in investigating this issue (that I unfortunately cannot reproduce on my own with my setup).

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

Hi Valentin,

With the beta2 release, I installed PY8, etc., with the "--without-lhapdf" flag and everything worked as one would hope. My default MG/ME configuration file does indeed point to my primary lhapd-config installation.

My config output gives the following:
MG5_aMC_v2_5_0_beta2/HEPTools/bin$ ./pythia8-config --config
./configure --prefix=/.../MG5_aMC_v2_5_0_beta2/HEPTools/pythia8/ --with-hepmc2=/.../MG5_aMC_v2_5_0_beta2/HEPTools/hepmc --with-hepmc2-include=/.../MG5_aMC_v2_5_0_beta2/HEPTools/hepmc/include --with-gzip=/usr/lib/x86_64-linux-gnu --cxx-common='-ldl -lstdc++ -DHEPMC2HACK'

best

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

PS Thanks for your help!

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

Thanks for the check Richard,
However, I would like to see if we can manage to have the PY8 LHAPDF linking working (that is, *without* the option '--without-lhapdf' ) on your machines as well, so could you try the approach I suggested in my previous message (i.e. adding -fPIC to the PY8 compilation flags) and tell me if it works?

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

Hi Valentin,

Sorry for the confusion. Yes, on a fresh download of beta2, running with "-fPIC" in the cxx-common flags + make + make install leads to PY8 compiling successfully. However, installing mg5amc_py8_interface seems to be study on installing because it cannot verify the version of PY8 installed. See below for details.

Best
richard

MG5_aMC>install mg5amc_py8_interface
Installing tool 'mg5amc_py8_interface'...
    > Follow the installation progress by running the command below in a separate terminal)
    > tail -f /../MG5_aMC_v2_5_0_beta2/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 '/.../MG5_aMC_v2_5_0_beta2/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log':

Error, could not retrieve Pythia8 version using script 'get_pythia8_version.py'. Check it.

Command "install mg5amc_py8_interface" interrupted with error:
InvalidCmd : Installation of mg5amc_py8_interface failed.

$ more /.../MG5_aMC_v2_5_0_beta2/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log
Error, could not retrieve Pythia8 version using script 'get_pythia8_version.py'. Check it.

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

Excellent, then I'll consider adding '-fPIC by default' to the flags in my installer.

Before doing this however, I should understand what happened with the pythia8_version checker.
So could you try to run it by hand? In order to do this, just 'cd' into the 'MG5aMC_PY8_interface' directory of your HEPTools folder, and type

./get_pythia8_version.py <pythia8_installation_path>

If you have installed pythia8 with the MG5aMC installer, you can then typically simply do:

./get_pythia8_version.py ../pythia8

In my case, I simply get:

> ./get_pythia8_version.py ../pythia8
8.219

Hopefully it will crash in an instructive manner on your setup. Let me know.

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

Hi Valentin,

Apologies for the slow reply. I should have mentioned yesterday that yes, get_pythia8_version does return the correct PY8 version when pointing to the correct directory. Specifically, I get the following:

MG5_aMC_v2_5_0_beta2/HEPTools/MG5aMC_PY8_interface$ ./get_pythia8_version.py ~/.../MG5_aMC_v2_5_0_beta2/HEPTools/pythia8_src/pythia8219
8.219

Let me know if there is anything else you want to know.

best,
richard

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

So when you say "pointing to the correct directory" you mean that before it (supposedly) was not?

Could you then try to print which directory it uses in your case? Because I cannot reproduce this unfortunately.

You can edit the script get_pythia8_version.py and add print lines.
Keep in mind however that by default MG5_aMC by default overwrites your HEPToolsInstallers suite with the online version whenever you issue an 'install' command.
So you must circumvent this to add print statements to debug the installation.
You can do so by copying your directory <...>/HEPTools/HEPToolsInstallers to parent directory of your MG5aMC installation (i.e. that is '<MG5_installation_path>/..'.

You can then edit the files in the directory '<MG5_installation_path>/../HEPToolsInstallers' and make sure that MG5aMC will use those when installing new tools by adding the option '--local' to your 'install' command, i.e.

MG5_aMC> install pythia8 --keep_source --local

PLease let me know.

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

Hi Valentin,

I copied "HEPToolsInstallers" as recommended to run in "--local" mode. In "HEPToolsInstallers/installPYTHIA8.sh", I then modified CXXCOMMON to include "-fPIC". Specifically, I did the following:

  #CXXCOMMON="$5"
  CXXCOMMON="'-ldl -lstdc++ -DHEPMC2HACK -fPIC'"

PY8 was then installed successfully via the commands:
MG5_aMC> install pythia8 --keep_source --local

Interestingly, the mg-py8 interface also compiled successfully with the following:
MG5_aMC> install mg5amc_py8_interface --keep_source --local

As a quick check, the following ran without a problem at LO+PY8 accuracy:
MG5_aMC>generate p p > mu+ vm ; output ; launch

The output of my mg5amc_py8_interface_install.log is below.

Best,
Richard

$ more /.../MG5_aMC_v2_5_0_beta2/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log
Warning, could not find MG5_aMC version in '/.../MG5_aMC_v2_5_0_beta2/VERSION'.
------------------------------------------------
MG5aMC_PY8_interface compilation output log:
g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/.../MG5_aMC_v2_5_0_beta2/HEPTools/hep
mc/include -I../include -ldl -lstdc++ -DHEPMC2HACK -fPIC -DGZIPSUPPORT -I/usr/lib/x86_64-linux-gnu/include -L/usr/lib/x86_64-linux-gnu/lib -Wl
,-rpath,/usr/lib/x86_64-linux-gnu/lib -lz -Wl,-rpath,../lib -ldl\
 -L/.../MG5_aMC_v2_5_0_beta2/HEPTools/MG5aMC_PY8_interface/static_library_dependencies -lHepMC

------------------------------------------------
Successful compilation of the MG5aMC_PY8_interface.

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

So does this mean that you cannot reproduce the crash in the installation of mg5amc_py8_interface, and now it is fine?

If so, it means that the -fPIC inclusion is probably fine and I can update the online installer, so please let me know, thanks!

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

Hi Valentin,

Yes, this appears to be the case.

In fact, I just deleted and re-untarred my beta2 release, installed HEPMC, copied HEPToolsInstaller to the parent directory of MG, and modified the CXXCOMMON flags in installPYTHIA8.sh as stated above. With this, I was able to successfully install PY8 + the interface. See below for details. After, the following LO+PY8 process ran successfully:

MG5_aMC>generate p p > mu+ vm ; output ; launch

Best,
Richard

MG5_aMC> install pythia8 --keep_source --local
   You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
Downloading the HEPToolInstaller at:
   http://madgraph.physics.illinois.edu/Downloads/HEPToolsInstaller/HEPToolsInstaller_V70.tar.gz
you are using a local installer. This is intended for debugging only!
Pythia8 will be linked to LHAPDF v6.
Now installing Pythia8. Be patient...
--2016-10-05 12:46:51-- http://home.thep.lu.se/~torbjorn/pythia8/pythia82.tgz
Resolving home.thep.lu.se (home.thep.lu.se)... 130.235.189.138
Connecting to home.thep.lu.se (home.thep.lu.se)|130.235.189.138|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15756177 (15M) [application/x-gzip]
Saving to: ‘pythia82.tgz’

pythia82.tgz 100%[=================================================================>] 15.03M 4.67MB/s in 3.4s

2016-10-05 12:46:55 (4.47 MB/s) - ‘pythia82.tgz’ saved [15756177/15756177]

Installing tool 'pythia8'...
    > Follow the installation progress by running the command below in a separate terminal)
    > tail -f /.../MG5_aMC_v2_5_0_beta2/HEPTools/pythia8/pythia8_install.log

The source directory of tool 'pythia8' is kept at:
  /.../MG5_aMC_v2_5_0_beta2/HEPTools/pythia8_src
Successful installation of 'pythia8' in '/.../MG5_aMC_v2_5_0_beta2/HEPTools'.
pythia8 successfully installed in /.../MG5_aMC_v2_5_0_beta2/HEPTools.
save configuration file to /.../MG5_aMC_v2_5_0_beta2/input/mg5_configuration.txt
Now installing mg5amc_py8_interface. Be patient...
--2016-10-05 12:51:25-- http://madgraph.physics.illinois.edu/Downloads/MG5aMC_PY8_interface/MG5aMC_PY8_interface_V1.0.tar.gz
Resolving madgraph.physics.illinois.edu (madgraph.physics.illinois.edu)... 192.17.91.69
Connecting to madgraph.physics.illinois.edu (madgraph.physics.illinois.edu)|192.17.91.69|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19103 (19K) [application/x-gzip]
Saving to: ‘MG5aMC_PY8_interface_V1.0.tar.gz’

MG5aMC_PY8_interface_V1.0.tar.gz 100%[=================================================================>] 18.66K --.-KB/s in 0.1s

2016-10-05 12:51:25 (168 KB/s) - ‘MG5aMC_PY8_interface_V1.0.tar.gz’ saved [19103/19103]

Installing tool 'mg5amc_py8_interface'...
    > Follow the installation progress by running the command below in a separate terminal)
    > tail -f /.../MG5_aMC_v2_5_0_beta2/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log
The source directory of tool 'mg5amc_py8_interface' is kept at:
  /.../MG5_aMC_v2_5_0_beta2/HEPTools/MG5aMC_PY8_interface_src
Successful installation of 'mg5amc_py8_interface' in '/.../MG5_aMC_v2_5_0_beta2/HEPTools'.
mg5amc_py8_interface successfully installed in /.../MG5_aMC_v2_5_0_beta2/HEPTools.
save configuration file to /.../MG5_aMC_v2_5_0_beta2/input/mg5_configuration.txt

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

Thanks a lot for re-performing the check from scratch; this is very useful.
I now feel confident in updating the installer with the flag '-fPIC'.

Revision history for this message
Shankha Banerjee (banerjee-n) said :
#20

Dear Valentin,

I was following this thread and I am still having an error when I try:

install mg5amc_py8_interface

The error being:

"In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
make: *** [MG5aMC_PY8_interface] Error 1

Command "install mg5amc_py8_interface " interrupted in sub-command:
"install mg5amc_py8_interface" with error:
InvalidCmd : Installation of mg5amc_py8_interface failed."

I had installed hepmc, lhapdf6 in MG5 and they installed fine. As for the manual installation of pythia8, that also works. I took your advise above.

Can you please advise me with what might be going on. I can provide you with more details if you want.

One more thing: I am now trying it with MG5 2.5.2. Previously, I had used 2.5.1 and the installations were fine there.

Thanks a lot for your help.

Cheers,

Shankha.

Revision history for this message
Shankha Banerjee (banerjee-n) said :
#21

The full error log is this:

==========================================================================================================
2017-01-10 22:24:49 (598 KB/s) - ‘MG5aMC_PY8_interface_V1.0.tar.gz’ saved [19217/19217]

Installing tool 'mg5amc_py8_interface'...
    > Follow the installation progress by running the command below in a separate terminal)
    > tail -f /home/shankha/Packages_new/MG5_aMC_v2_5_2/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/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log':

------------------------------------------------
MG5aMC_PY8_interface compilation output log:
g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include\
  /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/zlib/include -L/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/zlib/lib -Wl,-rpath,/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/zlib/lib -lz -Wl,-rpath,../lib -ldl
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:195:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:195:71: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:195:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:264:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:264:69: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:264:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:340:64: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,GenParticle*,ptrdiff_t>{
                                                                ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:340:64: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:340:73: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,GenParticle*,ptrdiff_t>{
                                                                         ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:335:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:335:69: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:335:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:392:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:392:69: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:392:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:465:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:465:71: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:465:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:71: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
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/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include\
  /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/zlib/include -L/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/zlib/lib -Wl,-rpath,/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/zlib/lib -lz -Wl,-rpath,../lib -ldl
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:195:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:195:71: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:195:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:264:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:264:69: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:264:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:340:64: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,GenParticle*,ptrdiff_t>{
                                                                ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:340:64: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:340:73: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,GenParticle*,ptrdiff_t>{
                                                                         ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:335:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:335:69: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:335:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:392:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:392:69: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:392:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:465:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:465:71: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:465:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:71: note: suggested alternatives:
In file included from /usr/include/c++/4.8/cmath:41:0,
                 from ../include/Pythia8/PythiaStdlib.h:14,
                 from ../include/Pythia8/Basics.h:16,
                 from ../include/Pythia8/Analysis.h:16,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note: ‘std::ptrdiff_t’
In file included from ../include/zconf.h:247:0,
                 from ../include/zlib.h:34,
                 from ../include/Pythia8/Streams.h:26,
                 from ../include/Pythia8/LHEF3.h:15,
                 from ../include/Pythia8/Info.h:13,
                 from ../include/Pythia8/ParticleData.h:15,
                 from ../include/Pythia8/Event.h:15,
                 from ../include/Pythia8/Analysis.h:17,
                 from ../include/Pythia8/Pythia.h:17,
                 from MG5aMC_PY8_interface.cc:11:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
In file included from /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
                 from ../include/Pythia8Plugins/HepMC2.h:17,
                 from MG5aMC_PY8_interface.cc:12:
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
make: *** [MG5aMC_PY8_interface] Error 1

Command "install mg5amc_py8_interface " interrupted in sub-command:
"install mg5amc_py8_interface" with error:
InvalidCmd : Installation of mg5amc_py8_interface failed.
========================================================================================================

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

There is an issue with recent compilers and HepMC which can be fixed by
changing all occurrences of

ptrdiff_t

into

std::ptrdiff_t

in the two includes:

/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h
/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h

I have to better understand the origin of this problem and check whether it
is safe to always do this. If it is, then I'll apply this replacement by
default in the MG5_aMC install command.

Cheers,

On Wed, Jan 11, 2017 at 1:58 AM, Shankha Banerjee <
<email address hidden>> wrote:

> Question #389255 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/389255
>
> Shankha Banerjee posted a new comment:
> The full error log is this:
>
> ============================================================
> ==============================================
> 2017-01-10 22:24:49 (598 KB/s) - ‘MG5aMC_PY8_interface_V1.0.tar.gz’ saved
> [19217/19217]
>
> Installing tool 'mg5amc_py8_interface'...
> > Follow the installation progress by running the command below in a
> separate terminal)
> > tail -f /home/shankha/Packages_new/MG5_aMC_v2_5_2/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/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_interface/mg5amc_
> py8_interface_install.log':
>
> ------------------------------------------------
> MG5aMC_PY8_interface compilation output log:
> g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface
> -I/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include\
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/
> MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include
> -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/zlib/include -L/home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/zlib/lib -Wl,-rpath,/home/shankha/
> Packages_new/MG5_aMC_v2_5_2/HEPTools/zlib/lib -lz -Wl,-rpath,../lib -ldl
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:195:71: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:195:71: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:195:80: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
>
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:264:69: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:264:69: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:264:78: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
>
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:340:64: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,GenParticle*,
> ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:340:64: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:340:73: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,GenParticle*,
> ptrdiff_t>{
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:335:69: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:335:69: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:335:78: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
>
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:392:69: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:392:69: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:392:78: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
>
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:465:71: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:465:71: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:465:80: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
>
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:521:71: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:521:71: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:521:80: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
>
> ^
> 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/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/include\
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/
> MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include
> -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/zlib/include -L/home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/zlib/lib -Wl,-rpath,/home/shankha/
> Packages_new/MG5_aMC_v2_5_2/HEPTools/zlib/lib -lz -Wl,-rpath,../lib -ldl
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:195:71: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:195:71: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:195:80: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
>
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:264:69: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:264:69: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:264:78: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
>
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:340:64: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,GenParticle*,
> ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:340:64: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenVertex.h:340:73: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,GenParticle*,
> ptrdiff_t>{
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:335:69: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:335:69: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:335:78: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
>
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:392:69: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:392:69: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:392:78: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*
> ,ptrdiff_t>{
>
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:465:71: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:465:71: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:465:80: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
>
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:521:71: error: ‘ptrdiff_t’ was not declared in
> this scope
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
> ^
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:521:71: note: suggested alternatives:
> In file included from /usr/include/c++/4.8/cmath:41:0,
> from ../include/Pythia8/PythiaStdlib.h:14,
> from ../include/Pythia8/Basics.h:16,
> from ../include/Pythia8/Analysis.h:16,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:187:28: note:
> ‘std::ptrdiff_t’
> In file included from ../include/zconf.h:247:0,
> from ../include/zlib.h:34,
> from ../include/Pythia8/Streams.h:26,
> from ../include/Pythia8/LHEF3.h:15,
> from ../include/Pythia8/Info.h:13,
> from ../include/Pythia8/ParticleData.h:15,
> from ../include/Pythia8/Event.h:15,
> from ../include/Pythia8/Analysis.h:17,
> from ../include/Pythia8/Pythia.h:17,
> from MG5aMC_PY8_interface.cc:11:
> /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:147:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> In file included from /home/shankha/Packages_new/
> MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/IO_BaseClass.h:22:0,
> from ../include/Pythia8Plugins/HepMC2.h:17,
> from MG5aMC_PY8_interface.cc:12:
> /home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/hepmc/
> include/HepMC/GenEvent.h:521:80: error: template argument 3 is invalid
> public std::iterator<std::forward_iterator_tag,HepMC::
> GenParticle*,ptrdiff_t>{
>
> ^
> make: *** [MG5aMC_PY8_interface] Error 1
>
>
> Command "install mg5amc_py8_interface " interrupted in sub-command:
> "install mg5amc_py8_interface" with error:
> InvalidCmd : Installation of mg5amc_py8_interface failed.
> ============================================================
> ============================================
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>

--
Valentin

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

Actually, The proper solution was to swap the order of the following two includes in the Pythia8 MG5_aMC interface driver:

#include "Pythia8/Pythia.h"
#include "Pythia8Plugins/HepMC2.h"

to

#include "Pythia8Plugins/HepMC2.h"
#include "Pythia8/Pythia.h"

I did this in the new version of the interface that is hosted on the MG5_aMC server and now the installation should happen flawlessly.

Revision history for this message
Shankha Banerjee (banerjee-n) said :
#24

Dear Valentin,

Thank you so much for the help. Now everything compiles and pythia 8 gets installed. I have made the changes in the hepmc files as you had written and I also swapped the order of the two header files here:

~/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_interface/MG5aMC_PY8_interface.cc

Then again, I typed:

mg5_aMC>install pythia8

Now, pythia8 got installed. However, I just saw that there are some error messages (mostly FASTJET3 related) which still does not affect the installation. The errors are these:

========================================================================================================
Error: main46 requires PROMC

Error: main71 requires FASTJET3
Error: main72 requires FASTJET3

Error: main81 requires FASTJET3 and HEPMC2
Error: main82 requires FASTJET3 and HEPMC2
Error: main83 requires FASTJET3 and HEPMC2
Error: main84 requires FASTJET3 and HEPMC2

Error: main91 requires ROOT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./;\
  rootcint -f main92Dct.cc -c -I/home/shankha/Packages_new/MG5_aMC_v2_5_2/HEPTools/pythia8//include main92.h main92LinkDef.h
Error: cannot open file "gnu/stubs.h" /usr/include/features.h:399:
Error: cannot open file "bits/dlfcn.h" /usr/include/dlfcn.h:28:
Error: Symbol Dl_info is not defined in current scope /usr/include/dlfcn.h:94:
Error: Missing whitespace at or after line 189.
Error: Unexpected end of file (G__fgetspace():2) /usr/include/dlfcn.h:191:
Report: Unrecognized string '__END_DECLS' ignored /usr/include/dlfcn.h:192:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing main92Dct.cc main92Dct.h !!!
Error: rootcint: error loading headers...
make: *** [main92Dct.cc] Error 1
========================================================================================================

The showering works though. I tried it on a simple process. I am however unable to install FASTJET3 using the install command. I hope this is okay.

Thank you very much for your help.

Cheers,

Shankha.

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

Yes, this is just "errors" which aren't errors and simply come from the automated compilation of the example drivers which are skipped because of missing optional resources.

We do not have an install command for fastjet (and I'm reluctant to add any more automatic installation given how much support these require), so I am afraid that you will have to sort this one out directly with FastJet's authors.

Revision history for this message
Shankha Banerjee (banerjee-n) said :
#26

Thank you very much Valentin for clarifying this point.

Revision history for this message
said ghourmin (saidghourmin) said :
#27

Hi Valentin,
While trying the command "install pythia8" I get the output below in the MG5_aMC>

Installing tool 'pythia8'...
    > Follow the installation progress by running the command below in a separate terminal)
    > tail -f /home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/pythia8/pythia8_install.log
A problem occured during the installation of 'pythia8'.
Content of the installation log file '/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/pythia8/pythia8_install.log':

 Set environment variables
 >> Unpack PYTHIA8
 >> Enter PYTHIA8 directory
 >> Configure PYTHIA8
cd plugins/python && make clean
make[1]: Entering directory '/tmp/tmpZrBpJW/pythia8303/plugins/python'
rm -rf tmp ../../lib/pythia8.so
make[1]: Leaving directory '/tmp/tmpZrBpJW/pythia8303/plugins/python'
cd plugins/mg5mes && make clean
make[1]: Entering directory '/tmp/tmpZrBpJW/pythia8303/plugins/mg5mes'
rm -rf tmp ../../lib/libpythia8mg5sm.so ../../lib/libpythia8mg5heft.so
make[1]: Leaving directory '/tmp/tmpZrBpJW/pythia8303/plugins/mg5mes'
rm -rf tmp lib
rm -f examples/*Dct.*
rm -f examples/*[0-9]
rm -f examples/weakbosons.lhe
rm -f examples/hist.root
find . -type f -name Makefile.inc -print0 | xargs -0 rm -f
find . -type f -name "*~" -print0 | xargs -0 rm -f
find . -type f -name "#*" -print0 | xargs -0 rm -f
rm -rf bin/
rm -f share/Pythia8/AUTHORS
rm -f share/Pythia8/COPYING
rm -f share/Pythia8/GUIDELINES
rm -f share/Pythia8/README
Running PYTHIA configuration script. Now is jue mar 11 12:27:11 WET 2021
WARNING: Ignoring invalid option "--with-lhapdf6-plugin".
WARNING: Ignoring invalid option "--with-boost".
---------------------------------------------------------------------
| PYTHIA Configuration Summary |
---------------------------------------------------------------------
  Architecture = LINUX
  C++ compiler CXX = g++
  C++ flags CXX_COMMON = -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIP -I/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/zlib/include
  C++ shared flag CXX_SHARED = -shared
  Further options =

The following optional external packages will be used:
 + HEPMC2 (-I/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/hepmc/include)
 + LHAPDF6 (-I/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/lhapdf6/include)
 + GZIP (-I/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/zlib/include)
./configure ./configure --prefix=/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/pythia8/ --with-hepmc2=/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/hepmc --with-hepmc2-include=/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/hepmc/include --with-gzip=/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/zlib --with-lhapdf6=/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/lhapdf6 --with-lhapdf6-plugin=LHAPDF6.h --with-boost=/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/boost --cxx-common='-ldl -fPIC -lstdc++ -DHEPMC2HACK'
g++
 >> Compile PYTHIA8
g++ src/Analysis.cc -o tmp/Analysis.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIP -I/home/said/Desktop/MG5_aMC_v2_9_2/HEPTools/zlib/include
In file included from /usr/include/c++/5/unordered_map:35:0,
                 from include/Pythia8/PythiaStdlib.h:24,
                 from include/Pythia8/Basics.h:16,
                 from include/Pythia8/Analysis.h:16,
                 from src/Analysis.cc:9:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \
  ^
In file included from include/Pythia8/Basics.h:16:0,
                 from include/Pythia8/Analysis.h:16,
                 from src/Analysis.cc:9:
include/Pythia8/PythiaStdlib.h:70:12: error: ‘std::function’ has not been declared
 using std::function;