How to set PYTHIA8?

Asked by Joonbin Lee

Hi,

I want to set PYTHIA8 at MG5_aMC_v2_5_1. So I try as belows. (I download the PYTHIA8 and MG5_aMC_v2_5_1 at my hoem directory which is '/home/joonblee'.

----------------------------------------------------------------------------------------
(download pythia8186.tgz)
tar xvfz pythia8186.tgz
cd pythia8186
make
cd ../MG5_aMC_v2_5_1
vi input/mg5_configuration.txt
----------------set pythia8_path like this-----------------
#! Pythia8 path.
#! Defines the path to the pythia8 installation directory (i.e. the
#! on containing the lib, bin and include directories) .
#! If using a relative path, that starts from the mg5 directory
pythia8_path = /home/joonblee/pythia8186
-----------------------------------------------------------------------
:q
----------------------------------------------------------------------------------------------

However, when I start the mg5_aMC, then I get this messages.

----------------------------------------------------------------------------------------------
$ ./bin/mg5_aMC
************************************************************
* *
* W E L C O M E to *
* M A D G R A P H 5 _ a M C @ N L O *
* *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 2.5.1 2016-11-04 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* https://server06.fynu.ucl.ac.be/projects/madgraph *
* and *
* http://amcatnlo.web.cern.ch/amcatnlo/ *
* *
* Type 'help' for in-line help. *
* Type 'tutorial' to learn how MG5 works *
* Type 'tutorial aMCatNLO' to learn how aMC@NLO works *
* Type 'tutorial MadLoop' to learn how MadLoop works *
* *
************************************************************
load MG5 configuration from input/mg5_configuration.txt
set fastjet to /home/joonblee/fastjet-install/bin/fastjet-config
set lhapdf to /cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/lhapdf/6.1.6-giojec/bin/lhapdf-config

    A Pythia8 path is specified via the option 'pythia8_path' but no path for option
    'mg5amc_py8_interface_path' is specified. This means that Pythia8 cannot be used
    leading order simulations with MadEvent.
    Consider installing the MG5_aMC-PY8 interface with the following command:
     MG5_aMC>install mg5amc_py8_interface

Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
Loading default model: sm
INFO: Restrict model sm with file models/sm/restrict_default.dat .
INFO: Run "set stdout_level DEBUG" before import for more information.
INFO: Change particles name to pass to MG5 convention
Defined multiparticle p = g u c d s u~ c~ d~ s~
Defined multiparticle j = g u c d s u~ c~ d~ s~
Defined multiparticle l+ = e+ mu+
Defined multiparticle l- = e- mu-
Defined multiparticle vl = ve vm vt
Defined multiparticle vl~ = ve~ vm~ vt~
Defined multiparticle all = g u c d s u~ c~ d~ s~ a ve vm vt e- mu- ve~ vm~ vt~ e+ mu+ t b t~ b~ z w+ h w- ta- ta+
MG5_aMC>
---------------------------------------------------------------------------------------------------------------------

I don't know why I get the message like
'
    A Pythia8 path is specified via the option 'pythia8_path' but no path for option
    'mg5amc_py8_interface_path' is specified. This means that Pythia8 cannot be used
    leading order simulations with MadEvent.
    Consider installing the MG5_aMC-PY8 interface with the following command:
     MG5_aMC>install mg5amc_py8_interface
'.
Even when I try to install mg5amc_py8_interface, I get this error messaes.

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

I want to set PYTHIA8. Could you help me, please?

Thank you.

Best regards,
joonblee

Question information

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

Apparently your Pythia8 version is not compatible with the interface-driver
between MG5_aMC Pythia8. Could you:

a) Send me or attach or copy the relevant part of the installation log file
of mg5amc_py8_interface? (Its path should be indicated in the error
message).

b) Try again with the very last version of Pythia8. Notice that you can
also install it automatically with MG5aMC and:
MG5_aMC> install pythia8

On Fri, Dec 2, 2016 at 8:13 AM, Olivier Mattelaer <
<email address hidden>> wrote:

> Question #404580 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/404580
>
> Assignee: None => Valentin Hirschi
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>

--
Valentin

Revision history for this message
Joonbin Lee (joonblee) said :
#2

Hi,

Thanks for your reply. I try

MG5_aMC> install pythia8

and I got an error message like bellow.

-----------------------------------------------------------------------
   > tail -f /home/joonblee/CMSSW_8_0_3_patch1/src/MG5_aMC_v2_5_1/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/joonblee/CMSSW_8_0_3_patch1/src/MG5_aMC_v2_5_1/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log':

The version of HEPMC2 linked to Pythia8 seems not to include a static library.
This is necessary for the default compilation of MG5aMC_PY8_interface.
You can try again with the option --pythia8_makefile but HEPMC2 will need to be available at runtime.

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

I attned the log file.

---------------------------------------------------------------------------
The version of HEPMC2 linked to Pythia8 seems not to include a static library.
This is necessary for the default compilation of MG5aMC_PY8_interface.
You can try again with the option --pythia8_makefile but HEPMC2 will need to be available at runtime.
----------------------------------------------------------------------------

Thank you.

Best regards,
joonblee

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

Well, did you try to follow the instructions and specify the option '--pythia8_makefile'?, i.e.

MG5_aMC> install pythia8 --pythia8_makefile

In any case, the simplest would be that you also install a new version of hepmc before trying to install pythia8, with

MG5_aMC> install hepmc

Also, I cannot find the log file attached. You can send it at <email address hidden>

Revision history for this message
Joonbin Lee (joonblee) said :
#4

Hi,

Thank you for helps. Your comments are very useful for me. So I follow your comments. First, I install hepmc and install pythia8. However, I got this error message.

----------------------------------------------------------------------------
make: *** [MG5aMC_PY8_interface] Error 1

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

So I try to 'install pythia8 --pythia8_makefile'. However, in this case, I got a message as belows.

-----------------------------------------------------------------------------
Option '--pythia8_makefile' not reckognized.
Command "install pythia8 --pythia8_makefile" interrupted with error:
InvalidCmd : Installation of pythia8 failed.
------------------------------------------------------------------------------

I'm sorry that I cannot find any log file in this case. Could you help me please?

Best regards,
joonblee

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

So both the installation of hepmc and pythia8 was successful good.
Now the installation of the interface failed, you can find the log file of the installation here:

<MG5aMC_installation_dir>/HEPTools/MG5aMC_pythia8_interface/install.log

What was the error during the compilation?

Revision history for this message
Joonbin Lee (joonblee) said :
#6

I find the file 'mg5amc_py8_interface_install.log'. The contexts is here.

########################################
------------------------------------------------
MG5aMC_PY8_interface compilation output log:
g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/home/joonblee/CMSSW_8_0_3_patch1/src/MG5_aMC_v2_5_1/HEPTools/hepmc/include -I../include -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/cvmfs/cms.cern.ch/slc6_amd64_gcc530/cms/cmssw-patch/CMSSW_8_0_3_patch1/external/slc6_amd64_gcc530/include -L/cvmfs/cms.cern.ch/slc6_amd64_gcc530/cms/cmssw-patch/CMSSW_8_0_3_patch1/external/slc6_amd64_gcc530/lib -Wl,-rpath,/cvmfs/cms.cern.ch/slc6_amd64_gcc530/cms/cmssw-patch/CMSSW_8_0_3_patch1/external/slc6_amd64_gcc530/lib -lz -Wl,-rpath,../lib -ldl\
 -L/home/joonblee/CMSSW_8_0_3_patch1/src/MG5_aMC_v2_5_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies -lHepMC
/tmp/joonblee/ccoNDh30.o: In function `main':
MG5aMC_PY8_interface.cc:(.text+0x83eb): undefined reference to `HepMC::WeightContainer::push_back(double const&, std::string)'
MG5aMC_PY8_interface.cc:(.text+0x8ab5): undefined reference to `HepMC::WeightContainer::push_back(double const&, std::string)'
MG5aMC_PY8_interface.cc:(.text+0x8cf0): undefined reference to `HepMC::WeightContainer::push_back(double const&, std::string)'
MG5aMC_PY8_interface.cc:(.text+0x8e7e): undefined reference to `HepMC::WeightContainer::push_back(double const&, std::string)'
MG5aMC_PY8_interface.cc:(.text+0x900c): undefined reference to `HepMC::WeightContainer::push_back(double const&, std::string)'
collect2: error: ld returned 1 exit status
Makefile_mg5amc_py8_interface_static:8: recipe for target 'MG5aMC_PY8_interface' failed
make: *** [MG5aMC_PY8_interface] Error 1

------------------------------------------------
Error during the compilation of MG5aMC_PY8_interface:
g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/home/joonblee/CMSSW_8_0_3_patch1/src/MG5_aMC_v2_5_1/HEPTools/hepmc/include -I../include -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/cvmfs/cms.cern.ch/slc6_amd64_gcc530/cms/cmssw-patch/CMSSW_8_0_3_patch1/external/slc6_amd64_gcc530/include -L/cvmfs/cms.cern.ch/slc6_amd64_gcc530/cms/cmssw-patch/CMSSW_8_0_3_patch1/external/slc6_amd64_gcc530/lib -Wl,-rpath,/cvmfs/cms.cern.ch/slc6_amd64_gcc530/cms/cmssw-patch/CMSSW_8_0_3_patch1/external/slc6_amd64_gcc530/lib -lz -Wl,-rpath,../lib -ldl\
 -L/home/joonblee/CMSSW_8_0_3_patch1/src/MG5_aMC_v2_5_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies -lHepMC
/tmp/joonblee/ccoNDh30.o: In function `main':
MG5aMC_PY8_interface.cc:(.text+0x83eb): undefined reference to `HepMC::WeightContainer::push_back(double const&, std::string)'
MG5aMC_PY8_interface.cc:(.text+0x8ab5): undefined reference to `HepMC::WeightContainer::push_back(double const&, std::string)'
MG5aMC_PY8_interface.cc:(.text+0x8cf0): undefined reference to `HepMC::WeightContainer::push_back(double const&, std::string)'
MG5aMC_PY8_interface.cc:(.text+0x8e7e): undefined reference to `HepMC::WeightContainer::push_back(double const&, std::string)'
MG5aMC_PY8_interface.cc:(.text+0x900c): undefined reference to `HepMC::WeightContainer::push_back(double const&, std::string)'
collect2: error: ld returned 1 exit status
Makefile_mg5amc_py8_interface_static:8: recipe for target 'MG5aMC_PY8_interface' failed
make: *** [MG5aMC_PY8_interface] Error 1
#######################################

Thanks for your help, again.

Best regards,
joonblee

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

1) Please confirm that you have indeed, with MG5aMC, first installed hepmc *and then* pythia8.

2) Also try to compile using the original pythia8 makefile, with

./compile.py ../pythia8 --pythia8_makefile

3)
In any case, what happens is that MG5aMC installs a special version of HEPMC that has an additional function 'push_back' to add *named weights* to the event records (the default version of hepmc doesn't allow for this).

During the compilation of the interface, the precompiler flag '-DHEPMC2HACK' specifies whether you are linking against a HEPMC library that supports has this additional 'push_back' method or doesn't.
Since you have installed hepmc with MG5aMC, it should have this ammendment and it therefore makes sense that '-DHEPMC2HACK' is present in your compilation line.

The problem here seems to be that the compiler is not linking against the correct hepmc library, even though it is specified that

'-L/home/joonblee/CMSSW_8_0_3_patch1/src/MG5_aMC_v2_5_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies -lHepMC'

Now, what you can do is to check the following (when not using the option '--pythia8_makefile'):

a) Could you check that the soft links in '/home/joonblee/CMSSW_8_0_3_patch1/src/MG5_aMC_v2_5_1/HEPTools/MG5aMC_PY8_interface/static_library_dependencies' indeed points to the libraries installed locally with MG5aMC.

b) The problem may also be that the specification above is placed last, can you try to move '-L/.../HEPTools/MG5aMC_PY8_interface/static_library_dependencies -lHepMC' at the beginning of the compilation line?
The simplest way to do this is to add 'sys.exit(0)' after '(out, err) = p.communicate()' in compile.py so as to prevent clean-up duties to take place and then enter by hand the compilation line, modified as you wish.

Let me know,

Revision history for this message
Joonbin Lee (joonblee) said :
#8

Oh,

I find my mistake. I try '> set pythia8_path /home/joonblee/CMSSW_8_0_3_patch1/src/pythia8186' and it works.

Thank you Hirschi.

Best regards,
joonblee

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

Well that can't be "the mistake".
Using the CMSSW pythia8 installation does not resolve any of the problem reviewed above.
Indeed, in principle there should be no problem installing these tools locally.
So in order to investigate these problems, you should follow the different steps I laid out in my last message.

Revision history for this message
Joel Jones (n-jones-j) said :
#10

Hi,

I am having the same issue, maybe I can give info regarding "the mistake".

I ran "install pythia8". This automatically installed hepmc, and I understand that both hepmc and pythia8 were installed correctly.

However, the program then attempted to install mg5amc_py8_interface, and failed. The message was:

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

Previous to this, I get a lot of output, with the relevant line being:
Makefile_mg5amc_py8_interface_static:8: recipe for target 'MG5aMC_PY8_interface' failed

I tried to follow your previous instructions. I entered:
/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_interface/static_library_dependencies

In this directory there is only one file (not a link): libHepMC.a

I added "sys.exit(0)" after "(out, err) = p.communicate()" in compile.py (there are two), and then ran "python compile.py /home/jjones/Programs/MG%_aMC_v2_5_2/HEPTools/pythia8/" but nothing happened.

Any help would be appreciated. Cheers,

Joel

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

If you go inside:

/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_interface

And, with no prior modifications whatsoever, you try to compile the
interface with:

./compile.py ../pythia8

What is the exact complete log (incl. error message) returned?

On Thu, Jan 5, 2017 at 2:04 PM, Joel Jones <
<email address hidden>> wrote:

> Question #404580 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/404580
>
> Joel Jones posted a new comment:
> Hi,
>
> I am having the same issue, maybe I can give info regarding "the
> mistake".
>
> I ran "install pythia8". This automatically installed hepmc, and I
> understand that both hepmc and pythia8 were installed correctly.
>
> However, the program then attempted to install mg5amc_py8_interface, and
> failed. The message was:
>
> Command "install pythia8 " interrupted in sub-command:
> "install pythia8" with error:
> InvalidCmd : Installation of mg5amc_py8_interface failed.
>
> Previous to this, I get a lot of output, with the relevant line being:
> Makefile_mg5amc_py8_interface_static:8: recipe for target
> 'MG5aMC_PY8_interface' failed
>
> I tried to follow your previous instructions. I entered:
> /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_
> interface/static_library_dependencies
>
> In this directory there is only one file (not a link): libHepMC.a
>
> I added "sys.exit(0)" after "(out, err) = p.communicate()" in compile.py
> (there are two), and then ran "python compile.py
> /home/jjones/Programs/MG%_aMC_v2_5_2/HEPTools/pythia8/" but nothing
> happened.
>
> Any help would be appreciated. Cheers,
>
> Joel
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>

--
Valentin

Revision history for this message
Joel Jones (n-jones-j) said :
#12

This is a long one:

------------------------------------------------
MG5aMC_PY8_interface compilation output log:
g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include\
 /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/zlib/include -L/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/zlib/lib -Wl,-rpath,/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/zlib/lib -lz -Wl,-rpath,../lib -ldl
In file included from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:32:0,
                 from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127,
                 from /home/jjones/Programs/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:
/usr/include/c++/6.3.1/cstddef:56:11: error: ‘::max_align_t’ has not been declared
   using ::max_align_t;
           ^~~~~~~~~~~
In file included from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:195:71: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:264:69: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:340:64: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:335:69: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:392:69: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:465:71: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:71: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/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/jjones/Programs/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>{
                                                                                ^
Makefile_mg5amc_py8_interface_static:8: recipe for target 'MG5aMC_PY8_interface' failed
make: *** [MG5aMC_PY8_interface] Error 1

------------------------------------------------
Error during the compilation of MG5aMC_PY8_interface:
g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface -I/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include\
 /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/zlib/include -L/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/zlib/lib -Wl,-rpath,/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/zlib/lib -lz -Wl,-rpath,../lib -ldl
In file included from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:32:0,
                 from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127,
                 from /home/jjones/Programs/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:
/usr/include/c++/6.3.1/cstddef:56:11: error: ‘::max_align_t’ has not been declared
   using ::max_align_t;
           ^~~~~~~~~~~
In file included from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:195:71: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:264:69: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:340:64: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
                 from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:335:69: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:392:69: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:465:71: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:71: note: suggested alternatives:
In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note: ‘Pythia8::ptrdiff_t’
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^~~~~~~~~
In file included from /home/jjones/Programs/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/jjones/Programs/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>{
                                                                                ^
Makefile_mg5amc_py8_interface_static:8: recipe for target 'MG5aMC_PY8_interface' failed
make: *** [MG5aMC_PY8_interface] Error 1

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

I can reproduce this and there is indeed a problem with the current Pythia8
interface.
Stefan P. and I will look into it and let you know as soon as it is fixed.

On Fri, Jan 6, 2017 at 9:33 AM, Joel Jones <
<email address hidden>> wrote:

> Question #404580 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/404580
>
> Joel Jones posted a new comment:
> This is a long one:
>
> ------------------------------------------------
> MG5aMC_PY8_interface compilation output log:
> g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface
> -I/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include\
> /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_
> interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC
> -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/jjones/Programs/MG5_
> aMC_v2_5_2/HEPTools/zlib/include -L/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/zlib/lib
> -Wl,-rpath,/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/zlib/lib -lz
> -Wl,-rpath,../lib -ldl
> In file included from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:32:0,
> from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127,
> from /home/jjones/Programs/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:
> /usr/include/c++/6.3.1/cstddef:56:11: error: ‘::max_align_t’ has not been
> declared
> using ::max_align_t;
> ^~~~~~~~~~~
> In file included from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:195:71:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:264:69:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:340:64:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:335:69:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:392:69:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:465:71:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:71:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/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/jjones/Programs/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>{
>
> ^
> Makefile_mg5amc_py8_interface_static:8: recipe for target
> 'MG5aMC_PY8_interface' failed
> make: *** [MG5aMC_PY8_interface] Error 1
>
> ------------------------------------------------
> Error during the compilation of MG5aMC_PY8_interface:
> g++ MG5aMC_PY8_interface.cc ../lib/libpythia8.a -o MG5aMC_PY8_interface
> -I/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include\
> /home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/MG5aMC_PY8_
> interface/static_library_dependencies/libHepMC.a -I../include -ldl -fPIC
> -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/jjones/Programs/MG5_
> aMC_v2_5_2/HEPTools/zlib/include -L/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/zlib/lib
> -Wl,-rpath,/home/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/zlib/lib -lz
> -Wl,-rpath,../lib -ldl
> In file included from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:32:0,
> from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127,
> from /home/jjones/Programs/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:
> /usr/include/c++/6.3.1/cstddef:56:11: error: ‘::max_align_t’ has not been
> declared
> using ::max_align_t;
> ^~~~~~~~~~~
> In file included from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:195:71:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:264:69:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenVertex.h:340:64:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/MG5_aMC_
> v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:127:0,
> from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:335:69:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:392:69:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:465:71:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/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/jjones/Programs/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/jjones/Programs/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/jjones/Programs/MG5_aMC_v2_5_2/HEPTools/hepmc/include/HepMC/GenEvent.h:521:71:
> note: suggested alternatives:
> In file included from /usr/include/c++/6.3.1/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/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109:28:
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/c++/6.3.1/x86_64-redhat-linux/bits/c++config.h:2109: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-redhat-linux/6.3.1/include/stddef.h:149:26: note:
> ‘Pythia8::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/Programs/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/jjones/Programs/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>{
>
> ^
> Makefile_mg5amc_py8_interface_static:8: recipe for target
> 'MG5aMC_PY8_interface' failed
> make: *** [MG5aMC_PY8_interface] Error 1
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>

--
Valentin

Revision history for this message
Doyoun Kim (abistp00) said :
#14

The problem Joel has, was solved by adding a line:

#include <cstddef>

in the Pythia8.h and reinstalled Pythia8 in the MG5.
Even though Pythia8 library can be built regardless of "typedef __PTRDIFF_TYPE__ ptrdiff_t" warnings,
it affects finally at the MG5aMC_PY8_interface installation level.

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

Thank you for your comment,

Many people reported a similar problem and I could reproduce it myself.
Your suggestion does indeed solve the problem, but I found an alternative way to solve it that only involve a change in the MG5aMC_PY8_interface driver, so that it could be fixed without waiting for this fix in the next Pythia8 release.

See details in this post:

https://answers.launchpad.net/mg5amcnlo/+question/389255

You should now therefore be able to install Pythia8 and the MG5_aMC interface to it automatically without any problem anymore.

Revision history for this message
Joel Jones (n-jones-j) said :
#16

Excellent. I followed your suggestion, which means editing MGaMC_PY_interface.cc, by swapping:

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

into

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

I ran install mg5amc_py8_interface, and it installed, cleanly.

Many thanks!

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

Great. I have brought this change to the MGaMC_PY_interface.cc file that is automatically downloaded when running the install command in MG5_aMC.
The installation should now work without any problem or special change from the user.
Thanks for your feedback.