Pythia8 installation woes in v2.5.0.beta
Hi Valentin,
I am trying out v2.5.0.beta but am running into the same problem compiling pythia8 on two different machines. While trying the command "install pythia8" I get the output below. It seems pythia8 is having difficulty compiling "LHAPDF6Plugin.o" and is asking (?) to recompile with flag "-fPIC". However, I am unsure if this is the correct assessment nor how to best implement this change.
There is also an interesting flag in my pythia8 configuration: --with-
This is different from all the other flags, which reference the absolute path to the HEPTools directory.
Best,
Richard
Configuration summary:
-------
| PYTHIA Configuration Summary |
-------
Configured for LINUX with the following options:
The following optional external packages will be used:
* HEPMC2
* LHAPDF6
* GZIP
* BOOST
./configure ./configure --prefix=
g++
....
g++ src/PartonDistr
ar cru lib/libpythia8.a tmp/Merging.o tmp/ProcessCont
ar: `u' modifier ignored since `D' is the default (see `U')
g++ -x c++ include/
-I/usr/
g++ tmp/LHAPDF6Plugin.o lib/libpythia8.a -o lib/libpythia8l
-L/home/
/usr/bin/ld: tmp/LHAPDF6Plug
tmp/LHAPDF6Plug
collect2: error: ld returned 1 exit status
Makefile:116: recipe for target 'lib/libpythia8
make: *** [lib/libpythia8
g++ tmp/LHAPDF6Plugin.o lib/libpythia8.a -o lib/libpythia8l
-L/home/
/usr/bin/ld: tmp/LHAPDF6Plug
tmp/LHAPDF6Plug
collect2: error: ld returned 1 exit status
Makefile:116: recipe for target 'lib/libpythia8
make: *** [lib/libpythia8
Compile PYTHIA8 examples
/home/richard/
ls: cannot access 'main*.cc': No such file or directory
Finished PYTHIA8 installation
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- Stefan Prestel Edit question
- Solved by:
- Richard Ruiz
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
HI Richard,
Can you tell me if it works when removing the dependency to lhapdf6; that is with an install command like this:
install pythia8 --with_lhapdf6=OFF --keep_source --logging=DEBUG
Also, if you have successfully installed Pythia8 by yourself on any of the two machines you tested, it would be interesting to compare the respective configure lines (Pythia8 installation doesn't produce a 'config.log' file by default, but on recent enough versions you can access the config line with './pythia8-config --config').
Cheers
Revision history for this message
|
#2 |
Hi Valentin,
Thanks for the response. Installing with "--with_
Best,
Richard
1. Unlinking lhapdf6 caused problems with downloading the default (NNPDF 2.3 QED) PDF set and calculating the scale variation. I resolved this by fixed by setting the lhapdf path to "lhapdf-config" in my primary mg5_configurati
2. After computing the scale variation, MG5 crashes with the following output:
INFO: End of systematics computation
store_events
INFO: Storing parton level results
INFO: End Parton
reweight -from_cards
decay_events -from_cards
Command "generate_events run_05" interrupted with error:
InvalidCmd : The MG5aMC_
Please install this tool with the following MG5_aMC command:
MG5_aMC> install mg5amc_
quit
It turns out that the mg5amc_
"/.../HEPTools/
instead of /.../HEPTools/
Again, simple enough to change the path in the local copy of "input/
3. Running with the modified config file still results in a crash at the same point but with a new output:
decay_events -from_cards
Command "generate_events " interrupted with error:
NameError : global name 'MG5DIR' is not defined
Please report this bug on https:/
More information is found in '/.../MG5_
Please attach this file to your report.
The relevant lines in the log file are:
File "/.../MG5_
open(pjoin(
NameError: global name 'MG5DIR' is not defined
The same problem appears if instead I rename the "MG5aMC_
Revision history for this message
|
#3 |
Dear Richard,
Thanks again for your feedback.
I'll address your various points in order:
1. Do you know how the MG5aMC option 'lhapdf_path' got "unset" in your configuration?
Did that happen as a result of installing Pythia8 with the option '--with_
If this is so, it is not supposed to behave like this, and we should fix this.
2. Ouch, this is quite a blunder. We didn't notice this because both Olivier and myself are working on MacOS whose file system is case-insensitive.
I have now fixed it in the development branch 2.5.1, but this might warrant a quick fix for the released v2.5.0.beta tarball.
3. This is because you have ran our code directly from the output directory, i.e. using the executables in '<PROC_
The preferred way to run the code is by accessing all these functionalities using
./bin/mg5_aMC
in your madgraph distribution and then starting the madevent interactive interface with
launch <PROC_OUTPUT> -i
You can then use a whole list of commands to run on this output, which includes (but not limited to) the functionalities available using the executable in the PROC_OUTPUT.
One fo the difference with steering the code in this way is that we can rely on the location of your MG5aMC installation (stored in the variable MG5DIR').
When not doing so, we have do some gymnastics to get there, and it was not correctly coded in this case.
I have fixed this in the development branch v2.5.1, but for now you can solve your last issue by running the code as suggested above.
I will look for a way to bring these important fixes as soon as possible in the publicly released tarball.
Thanks a lot for your tests and feedback.
Revision history for this message
|
#4 |
I have now assigned Stefan Prestel to this issue, so that he can look into what happened with the compilation of Pythia8 with the lhapdf6 plugin, as it seems very likely to be a problem of the Pythia8 installation makefiles and not directly related to MG5aMC.
Regarding the 'unsetting' of 'lhapdf_path' when you installed Pythia8 with '--with_
Now, NNPDF 2.3 QED might not play nice with lhapdf5, and you reverted your MG5aMC lhapdf to the system-wide 'lhapdf-config' (which is v6 I assume then) which solved your issue for that PDF set.
I therefore think that for that particular point, things are fine as they are now then.
I should have suggested you to use '--with_lhapdf6=OFF --with_lhapdf5=OFF' instead, so that Pythia8 would not have been linked against LHPADF at all, and you wouldn't have suffered this inconvenience then.
Revision history for this message
|
#5 |
Stefan Prestel must still look into the Pythia8 compilation issue when linking to LHAPDF6.
Revision history for this message
|
#6 |
Hi Valentine,
1. Regarding the lhapdf issue, I agree that this might be a (multiple) library conflict with v5 and v6, but also with NNPDF QED, caused by me. I previously commented out 'lhapdf_path' (to v6) since the pythia8 installation complained about lhapdf6 and was nicer after removing the reference. I suspect keeping the path to "lhapdf-config" but adding the --without-lhapdf flag will solve my problems. Thanks for the solution.
3. Interesting. I always thought working from the working directories themselves was the preferred/
Again, I appreciate the work everyone does. Thanks! Hopefully Stefan and I will be able to hash things out quickly.
Best,
Richard
Revision history for this message
|
#7 |
3. Running any functionality from the process output executables or from the interactive interface started with 'launch -i' should not yield any difference from a physics standpoint.
From an execution standpoint, the former approach uses the MG5aMC python modules of your original distribution whereas the latter one uses the modules exported and written out with the process output (and MG5DIR is not set).
For this reason, it is actually preferable to steer things from 'launch -i' so as to make sure that it is your current MG5aMC distribution that is active.
Your checks and feedback are very much appreciated as well.
Revision history for this message
|
#8 |
One thing you could try (awaiting Stefan's answer) is to recompile pythia8 by hand with the C++ flag (-fPIC) and see if it solves the issue.
You can usually do so if you had tried to install your PY8 distribution via MG5aMC with option '--keep_source', that is:
MG5_aMC> install pythia8 --keep_source
You can then find PY8 sources in
<MG5aMC_
where you can run the following executable to find out what were its configuration options:
./bin/pythia8-
In my case it returns something like
./bin/pythia8-
./configure --prefix=
So what you can try is to run 'make clean' in your 'pythia8_src' directory and reconfigure it with the line you would have obtained above, but with '-fPIC' added to the list of '--cxx-common' options.
Then you can run 'make' and 'make install' and see if it works this way.
Of course make sure that your previous attempted installation of pythia8 included lhapdf6, so that the configure line you obtain above does have the specification of the lhapdf6 dependency.
If you tell me that the above works, then I'll be able to directly modify our installer and distribute it automatically for all users without any re-release of MG5aMC. So this could potentially help many users and be quite useful.
Thank you again for your help in investigating this issue (that I unfortunately cannot reproduce on my own with my setup).
Revision history for this message
|
#9 |
Hi Valentin,
With the beta2 release, I installed PY8, etc., with the "--without-lhapdf" flag and everything worked as one would hope. My default MG/ME configuration file does indeed point to my primary lhapd-config installation.
My config output gives the following:
MG5_aMC_
./configure --prefix=
best
Revision history for this message
|
#11 |
Thanks for the check Richard,
However, I would like to see if we can manage to have the PY8 LHAPDF linking working (that is, *without* the option '--without-lhapdf' ) on your machines as well, so could you try the approach I suggested in my previous message (i.e. adding -fPIC to the PY8 compilation flags) and tell me if it works?
Revision history for this message
|
#12 |
Hi Valentin,
Sorry for the confusion. Yes, on a fresh download of beta2, running with "-fPIC" in the cxx-common flags + make + make install leads to PY8 compiling successfully. However, installing mg5amc_
Best
richard
MG5_aMC>install mg5amc_
Installing tool 'mg5amc_
> Follow the installation progress by running the command below in a separate terminal)
> tail -f /../MG5_
A problem occured during the installation of 'mg5amc_
Content of the installation log file '/.../MG5_
Error, could not retrieve Pythia8 version using script 'get_pythia8_
Command "install mg5amc_
InvalidCmd : Installation of mg5amc_
$ more /.../MG5_
Error, could not retrieve Pythia8 version using script 'get_pythia8_
Revision history for this message
|
#13 |
Excellent, then I'll consider adding '-fPIC by default' to the flags in my installer.
Before doing this however, I should understand what happened with the pythia8_version checker.
So could you try to run it by hand? In order to do this, just 'cd' into the 'MG5aMC_
./get_pythia8_
If you have installed pythia8 with the MG5aMC installer, you can then typically simply do:
./get_pythia8_
In my case, I simply get:
> ./get_pythia8_
8.219
Hopefully it will crash in an instructive manner on your setup. Let me know.
Revision history for this message
|
#14 |
Hi Valentin,
Apologies for the slow reply. I should have mentioned yesterday that yes, get_pythia8_version does return the correct PY8 version when pointing to the correct directory. Specifically, I get the following:
MG5_aMC_
8.219
Let me know if there is anything else you want to know.
best,
richard
Revision history for this message
|
#15 |
So when you say "pointing to the correct directory" you mean that before it (supposedly) was not?
Could you then try to print which directory it uses in your case? Because I cannot reproduce this unfortunately.
You can edit the script get_pythia8_
Keep in mind however that by default MG5_aMC by default overwrites your HEPToolsInstallers suite with the online version whenever you issue an 'install' command.
So you must circumvent this to add print statements to debug the installation.
You can do so by copying your directory <...>/HEPTools/
You can then edit the files in the directory '<MG5_installat
MG5_aMC> install pythia8 --keep_source --local
PLease let me know.
Revision history for this message
|
#16 |
Hi Valentin,
I copied "HEPToolsInstal
#CXXCOMMON="$5"
CXXCOMMON="'-ldl -lstdc++ -DHEPMC2HACK -fPIC'"
PY8 was then installed successfully via the commands:
MG5_aMC> install pythia8 --keep_source --local
Interestingly, the mg-py8 interface also compiled successfully with the following:
MG5_aMC> install mg5amc_
As a quick check, the following ran without a problem at LO+PY8 accuracy:
MG5_aMC>generate p p > mu+ vm ; output ; launch
The output of my mg5amc_
Best,
Richard
$ more /.../MG5_
Warning, could not find MG5_aMC version in '/.../MG5_
-------
MG5aMC_
g++ MG5aMC_
mc/include -I../include -ldl -lstdc++ -DHEPMC2HACK -fPIC -DGZIPSUPPORT -I/usr/
,-rpath,
-L/...
-------
Successful compilation of the MG5aMC_
Revision history for this message
|
#17 |
So does this mean that you cannot reproduce the crash in the installation of mg5amc_
If so, it means that the -fPIC inclusion is probably fine and I can update the online installer, so please let me know, thanks!
Revision history for this message
|
#18 |
Hi Valentin,
Yes, this appears to be the case.
In fact, I just deleted and re-untarred my beta2 release, installed HEPMC, copied HEPToolsInstaller to the parent directory of MG, and modified the CXXCOMMON flags in installPYTHIA8.sh as stated above. With this, I was able to successfully install PY8 + the interface. See below for details. After, the following LO+PY8 process ran successfully:
MG5_aMC>generate p p > mu+ vm ; output ; launch
Best,
Richard
MG5_aMC> install pythia8 --keep_source --local
You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
Downloading the HEPToolInstaller at:
http://
you are using a local installer. This is intended for debugging only!
Pythia8 will be linked to LHAPDF v6.
Now installing Pythia8. Be patient...
--2016-10-05 12:46:51-- http://
Resolving home.thep.lu.se (home.thep.
Connecting to home.thep.lu.se (home.thep.
HTTP request sent, awaiting response... 200 OK
Length: 15756177 (15M) [application/
Saving to: ‘pythia82.tgz’
pythia82.tgz 100%[==
2016-10-05 12:46:55 (4.47 MB/s) - ‘pythia82.tgz’ saved [15756177/15756177]
Installing tool 'pythia8'...
> Follow the installation progress by running the command below in a separate terminal)
> tail -f /.../MG5_
The source directory of tool 'pythia8' is kept at:
/.../
Successful installation of 'pythia8' in '/.../MG5_
pythia8 successfully installed in /.../MG5_
save configuration file to /.../MG5_
Now installing mg5amc_
--2016-10-05 12:51:25-- http://
Resolving madgraph.
Connecting to madgraph.
HTTP request sent, awaiting response... 200 OK
Length: 19103 (19K) [application/
Saving to: ‘MG5aMC_
MG5aMC_
2016-10-05 12:51:25 (168 KB/s) - ‘MG5aMC_
Installing tool 'mg5amc_
> Follow the installation progress by running the command below in a separate terminal)
> tail -f /.../MG5_
The source directory of tool 'mg5amc_
/.../
Successful installation of 'mg5amc_
mg5amc_
save configuration file to /.../MG5_
Revision history for this message
|
#19 |
Thanks a lot for re-performing the check from scratch; this is very useful.
I now feel confident in updating the installer with the flag '-fPIC'.
Revision history for this message
|
#20 |
Dear Valentin,
I was following this thread and I am still having an error when I try:
install mg5amc_
The error being:
"In file included from /home/shankha/
/home/shankha/
public std::iterator<
make: *** [MG5aMC_
Command "install mg5amc_
"install mg5amc_
InvalidCmd : Installation of mg5amc_
I had installed hepmc, lhapdf6 in MG5 and they installed fine. As for the manual installation of pythia8, that also works. I took your advise above.
Can you please advise me with what might be going on. I can provide you with more details if you want.
One more thing: I am now trying it with MG5 2.5.2. Previously, I had used 2.5.1 and the installations were fine there.
Thanks a lot for your help.
Cheers,
Shankha.
Revision history for this message
|
#21 |
The full error log is this:
=======
2017-01-10 22:24:49 (598 KB/s) - ‘MG5aMC_
Installing tool 'mg5amc_
> Follow the installation progress by running the command below in a separate terminal)
> tail -f /home/shankha/
A problem occured during the installation of 'mg5amc_
Content of the installation log file '/home/
-------
MG5aMC_
g++ MG5aMC_
/home/
In file included from /home/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
In file included from /home/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
make: *** [MG5aMC_
-------
Error during the compilation of MG5aMC_
g++ MG5aMC_
/home/
In file included from /home/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
In file included from /home/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
/home/shankha/
public std::iterator<
/home/shankha/
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/shankha/
/home/shankha/
public std::iterator<
make: *** [MG5aMC_
Command "install mg5amc_
"install mg5amc_
InvalidCmd : Installation of mg5amc_
=======
Revision history for this message
|
#22 |
There is an issue with recent compilers and HepMC which can be fixed by
changing all occurrences of
ptrdiff_t
into
std::ptrdiff_t
in the two includes:
/home/shankha/
/home/shankha/
I have to better understand the origin of this problem and check whether it
is safe to always do this. If it is, then I'll apply this replacement by
default in the MG5_aMC install command.
Cheers,
On Wed, Jan 11, 2017 at 1:58 AM, Shankha Banerjee <
<email address hidden>> wrote:
> Question #389255 on MadGraph5_aMC@NLO changed:
> https:/
>
> Shankha Banerjee posted a new comment:
> The full error log is this:
>
> =======
> =======
> 2017-01-10 22:24:49 (598 KB/s) - ‘MG5aMC_
> [19217/19217]
>
> Installing tool 'mg5amc_
> > Follow the installation progress by running the command below in a
> separate terminal)
> > tail -f /home/shankha/
> MG5aMC_
> A problem occured during the installation of 'mg5amc_
> Content of the installation log file '/home/
> MG5_aMC_
> py8_interface_
>
> -------
> MG5aMC_
> g++ MG5aMC_
> -I/home/
> /home/shankha/
> MG5aMC_
> -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/
> MG5_aMC_
> MG5_aMC_
> Packages_
> In file included from /home/shankha/
> MG5_aMC_
> from /home/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> this scope
> public std::iterator<
> GenParticle*
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from /home/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> GenParticle*
>
> ^
> /home/shankha/
> include/
> this scope
> public std::iterator<
> ,ptrdiff_t>{
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from /home/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/shankha/
> include/
> this scope
> public std::iterator<
> ptrdiff_t>{
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from /home/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> ptrdiff_t>{
> ^
> In file included from /home/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> this scope
> public std::iterator<
> ,ptrdiff_t>{
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/shankha/
> include/
> this scope
> public std::iterator<
> ,ptrdiff_t>{
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/shankha/
> include/
> this scope
> public std::iterator<
> GenParticle*
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> GenParticle*
>
> ^
> /home/shankha/
> include/
> this scope
> public std::iterator<
> GenParticle*
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> GenParticle*
>
> ^
> make: *** [MG5aMC_
>
> -------
> Error during the compilation of MG5aMC_
> g++ MG5aMC_
> -I/home/
> /home/shankha/
> MG5aMC_
> -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/
> MG5_aMC_
> MG5_aMC_
> Packages_
> In file included from /home/shankha/
> MG5_aMC_
> from /home/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> this scope
> public std::iterator<
> GenParticle*
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from /home/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> GenParticle*
>
> ^
> /home/shankha/
> include/
> this scope
> public std::iterator<
> ,ptrdiff_t>{
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from /home/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/shankha/
> include/
> this scope
> public std::iterator<
> ptrdiff_t>{
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from /home/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> ptrdiff_t>{
> ^
> In file included from /home/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> this scope
> public std::iterator<
> ,ptrdiff_t>{
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/shankha/
> include/
> this scope
> public std::iterator<
> ,ptrdiff_t>{
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> ,ptrdiff_t>{
>
> ^
> /home/shankha/
> include/
> this scope
> public std::iterator<
> GenParticle*
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> GenParticle*
>
> ^
> /home/shankha/
> include/
> this scope
> public std::iterator<
> GenParticle*
> ^
> /home/shankha/
> include/
> In file included from /usr/include/
> from ../include/
> from ../include/
> from ../include/
> from ../include/
> from MG5aMC_
> /usr/include/
> ‘std::ptrdiff_t’
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> ^
> /usr/include/
> ‘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/shankha/
> MG5_aMC_
> from ../include/
> from MG5aMC_
> /home/shankha/
> include/
> public std::iterator<
> GenParticle*
>
> ^
> make: *** [MG5aMC_
>
>
> Command "install mg5amc_
> "install mg5amc_
> InvalidCmd : Installation of mg5amc_
> =======
> =======
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>
--
Valentin
Revision history for this message
|
#23 |
Actually, The proper solution was to swap the order of the following two includes in the Pythia8 MG5_aMC interface driver:
#include "Pythia8/Pythia.h"
#include "Pythia8Plugins
to
#include "Pythia8Plugins
#include "Pythia8/Pythia.h"
I did this in the new version of the interface that is hosted on the MG5_aMC server and now the installation should happen flawlessly.
Revision history for this message
|
#24 |
Dear Valentin,
Thank you so much for the help. Now everything compiles and pythia 8 gets installed. I have made the changes in the hepmc files as you had written and I also swapped the order of the two header files here:
~/MG5_aMC_
Then again, I typed:
mg5_aMC>install pythia8
Now, pythia8 got installed. However, I just saw that there are some error messages (mostly FASTJET3 related) which still does not affect the installation. The errors are these:
=======
Error: main46 requires PROMC
Error: main71 requires FASTJET3
Error: main72 requires FASTJET3
Error: main81 requires FASTJET3 and HEPMC2
Error: main82 requires FASTJET3 and HEPMC2
Error: main83 requires FASTJET3 and HEPMC2
Error: main84 requires FASTJET3 and HEPMC2
Error: main91 requires ROOT
export LD_LIBRARY_
rootcint -f main92Dct.cc -c -I/home/
Error: cannot open file "gnu/stubs.h" /usr/include/
Error: cannot open file "bits/dlfcn.h" /usr/include/
Error: Symbol Dl_info is not defined in current scope /usr/include/
Error: Missing whitespace at or after line 189.
Error: Unexpected end of file (G__fgetspace():2) /usr/include/
Report: Unrecognized string '__END_DECLS' ignored /usr/include/
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing main92Dct.cc main92Dct.h !!!
Error: rootcint: error loading headers...
make: *** [main92Dct.cc] Error 1
=======
The showering works though. I tried it on a simple process. I am however unable to install FASTJET3 using the install command. I hope this is okay.
Thank you very much for your help.
Cheers,
Shankha.
Revision history for this message
|
#25 |
Yes, this is just "errors" which aren't errors and simply come from the automated compilation of the example drivers which are skipped because of missing optional resources.
We do not have an install command for fastjet (and I'm reluctant to add any more automatic installation given how much support these require), so I am afraid that you will have to sort this one out directly with FastJet's authors.
Revision history for this message
|
#26 |
Thank you very much Valentin for clarifying this point.
Revision history for this message
|
#27 |
Hi Valentin,
While trying the command "install pythia8" I get the output below in the MG5_aMC>
Installing tool 'pythia8'...
> Follow the installation progress by running the command below in a separate terminal)
> tail -f /home/said/
A problem occured during the installation of 'pythia8'.
Content of the installation log file '/home/
Set environment variables
>> Unpack PYTHIA8
>> Enter PYTHIA8 directory
>> Configure PYTHIA8
cd plugins/python && make clean
make[1]: Entering directory '/tmp/tmpZrBpJW
rm -rf tmp ../../lib/
make[1]: Leaving directory '/tmp/tmpZrBpJW
cd plugins/mg5mes && make clean
make[1]: Entering directory '/tmp/tmpZrBpJW
rm -rf tmp ../../lib/
make[1]: Leaving directory '/tmp/tmpZrBpJW
rm -rf tmp lib
rm -f examples/*Dct.*
rm -f examples/*[0-9]
rm -f examples/
rm -f examples/hist.root
find . -type f -name Makefile.inc -print0 | xargs -0 rm -f
find . -type f -name "*~" -print0 | xargs -0 rm -f
find . -type f -name "#*" -print0 | xargs -0 rm -f
rm -rf bin/
rm -f share/Pythia8/
rm -f share/Pythia8/
rm -f share/Pythia8/
rm -f share/Pythia8/
Running PYTHIA configuration script. Now is jue mar 11 12:27:11 WET 2021
WARNING: Ignoring invalid option "--with-
WARNING: Ignoring invalid option "--with-boost".
-------
| PYTHIA Configuration Summary |
-------
Architecture = LINUX
C++ compiler CXX = g++
C++ flags CXX_COMMON = -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIP -I/home/
C++ shared flag CXX_SHARED = -shared
Further options =
The following optional external packages will be used:
+ HEPMC2 (-I/home/
+ LHAPDF6 (-I/home/
+ GZIP (-I/home/
./configure ./configure --prefix=
g++
>> Compile PYTHIA8
g++ src/Analysis.cc -o tmp/Analysis.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIP -I/home/
In file included from /usr/include/
/usr/include/
#error This file requires compiler and library support \
^
In file included from include/
include/
using std::function;