How to set PYTHIA8?
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_
----------------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/
-------
: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:/
* and *
* http://
* *
* 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_
set fastjet to /home/joonblee/
set lhapdf to /cvmfs/
A Pythia8 path is specified via the option 'pythia8_path' but no path for option
'mg5amc_
leading order simulations with MadEvent.
Consider installing the MG5_aMC-PY8 interface with the following command:
MG5_
Using default text editor "vi". Set another one in ./input/
Using default eps viewer "evince". Set another one in ./input/
Using default web browser "firefox". Set another one in ./input/
Loading default model: sm
INFO: Restrict model sm with file models/
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_
leading order simulations with MadEvent.
Consider installing the MG5_aMC-PY8 interface with the following command:
MG5_
'.
Even when I try to install mg5amc_
-------
Command "install mg5amc_
"install mg5amc_
InvalidCmd : Installation of mg5amc_
-------
I want to set PYTHIA8. Could you help me, please?
Thank you.
Best regards,
joonblee
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- Stefan Prestel Edit question
- Solved by:
- Joonbin Lee
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#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_
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:/
>
> 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
|
#2 |
Hi,
Thanks for your reply. I try
MG5_aMC> install pythia8
and I got an error message like bellow.
-------
> tail -f /home/joonblee/
A problem occured during the installation of 'mg5amc_
Content of the installation log file '/home/
The version of HEPMC2 linked to Pythia8 seems not to include a static library.
This is necessary for the default compilation of MG5aMC_
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_
-------
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_
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
|
#3 |
Well, did you try to follow the instructions and specify the option '--pythia8_
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
|
#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_
Command "install pythia8 " interrupted in sub-command:
"install pythia8" with error:
InvalidCmd : Installation of mg5amc_
-------
So I try to 'install pythia8 --pythia8_
-------
Option '--pythia8_
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
|
#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_
What was the error during the compilation?
Revision history for this message
|
#6 |
I find the file 'mg5amc_
#######
-------
MG5aMC_
g++ MG5aMC_
-L/home/
/tmp/joonblee/
MG5aMC_
MG5aMC_
MG5aMC_
MG5aMC_
MG5aMC_
collect2: error: ld returned 1 exit status
Makefile_
make: *** [MG5aMC_
-------
Error during the compilation of MG5aMC_
g++ MG5aMC_
-L/home/
/tmp/joonblee/
MG5aMC_
MG5aMC_
MG5aMC_
MG5aMC_
MG5aMC_
collect2: error: ld returned 1 exit status
Makefile_
make: *** [MG5aMC_
#######
Thanks for your help, again.
Best regards,
joonblee
Revision history for this message
|
#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/
Now, what you can do is to check the following (when not using the option '--pythia8_
a) Could you check that the soft links in '/home/
b) The problem may also be that the specification above is placed last, can you try to move '-L/...
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
|
#8 |
Oh,
I find my mistake. I try '> set pythia8_path /home/joonblee/
Thank you Hirschi.
Best regards,
joonblee
Revision history for this message
|
#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
|
#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_
Command "install pythia8 " interrupted in sub-command:
"install pythia8" with error:
InvalidCmd : Installation of mg5amc_
Previous to this, I get a lot of output, with the relevant line being:
Makefile_
I tried to follow your previous instructions. I entered:
/home/jjones/
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/
Any help would be appreciated. Cheers,
Joel
Revision history for this message
|
#11 |
If you go inside:
/home/jjones/
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:/
>
> 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_
> failed. The message was:
>
> Command "install pythia8 " interrupted in sub-command:
> "install pythia8" with error:
> InvalidCmd : Installation of mg5amc_
>
> Previous to this, I get a lot of output, with the relevant line being:
> Makefile_
> 'MG5aMC_
>
> I tried to follow your previous instructions. I entered:
> /home/jjones/
> interface/
>
> 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/
> 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
|
#12 |
This is a long one:
-------
MG5aMC_
g++ MG5aMC_
/home/
In file included from /home/jjones/
/usr/include/
using ::max_align_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
Makefile_
make: *** [MG5aMC_
-------
Error during the compilation of MG5aMC_
g++ MG5aMC_
/home/
In file included from /home/jjones/
/usr/include/
using ::max_align_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
/home/jjones/
public std::iterator<
/home/jjones/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../include/
/usr/lib/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
In file included from /home/jjones/
/home/jjones/
public std::iterator<
Makefile_
make: *** [MG5aMC_
Revision history for this message
|
#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:/
>
> Joel Jones posted a new comment:
> This is a long one:
>
> -------
> MG5aMC_
> g++ MG5aMC_
> -I/home/
> /home/jjones/
> interface/
> -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/
> aMC_v2_
> -Wl,-rpath,
> -Wl,-rpath,../lib -ldl
> In file included from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /usr/include/
> declared
> using ::max_align_t;
> ^~~~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> GenParticle*
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> GenParticle*
>
> ^
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> ,ptrdiff_t>{
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> ptrdiff_t>{
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> ptrdiff_t>{
> ^
> In file included from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> ,ptrdiff_t>{
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> ,ptrdiff_t>{
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> GenParticle*
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> GenParticle*
>
> ^
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> GenParticle*
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> GenParticle*
>
> ^
> Makefile_
> 'MG5aMC_
> make: *** [MG5aMC_
>
> -------
> Error during the compilation of MG5aMC_
> g++ MG5aMC_
> -I/home/
> /home/jjones/
> interface/
> -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/
> aMC_v2_
> -Wl,-rpath,
> -Wl,-rpath,../lib -ldl
> In file included from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /usr/include/
> declared
> using ::max_align_t;
> ^~~~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> GenParticle*
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> GenParticle*
>
> ^
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> ,ptrdiff_t>{
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> ptrdiff_t>{
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> ptrdiff_t>{
> ^
> In file included from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> ,ptrdiff_t>{
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> ,ptrdiff_t>{
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> GenParticle*
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> GenParticle*
>
> ^
> /home/jjones/
> error: ‘ptrdiff_t’ was not declared in this scope
> public std::iterator<
> GenParticle*
>
> ^~~~~~~~~
> /home/jjones/
> note: suggested alternatives:
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> note: ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> /usr/include/
> note: ‘std::ptrdiff_t’
> In file included from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/lib/
> ‘Pythia8:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^~~~~~~~~
> In file included from /home/jjones/
> v2_5_2/
> from ../include/
> from MG5aMC_
> /home/jjones/
> error: template argument 3 is invalid
> public std::iterator<
> GenParticle*
>
> ^
> Makefile_
> 'MG5aMC_
> make: *** [MG5aMC_
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>
--
Valentin
Revision history for this message
|
#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_
Revision history for this message
|
#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_
See details in this post:
https:/
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
|
#16 |
Excellent. I followed your suggestion, which means editing MGaMC_PY_
#include "Pythia8/Pythia.h"
#include "Pythia8Plugins
into
#include "Pythia8Plugins
#include "Pythia8/Pythia.h"
I ran install mg5amc_
Many thanks!
Revision history for this message
|
#17 |
Great. I have brought this change to the MGaMC_PY_
The installation should now work without any problem or special change from the user.
Thanks for your feedback.