Pythia8 not working for MG5_aMC_v2.8.3.2

Asked by Michele Mormile

Hello,

I am having troubles using pythia8 with MG5_aMC_v2.8.3.2 at NLO in QCD.
When I try to run the shower I get the following compiling errors:
In file included from Pythia82.cc:3:
In file included from /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/Pythia.h:17:
In file included from /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/Analysis.h:16:
In file included from /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/Basics.h:16:
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:92:12: error: no member named 'tuple' in namespace 'std'
using std::tuple;
      ~~~~~^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:129:1: error: unknown type name 'constexpr'
constexpr double HBARC = 0.19732698;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:130:1: error: unknown type name 'constexpPythia8 compilation did not succeed, exiting

/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:131:1: error: unknown type name 'constexpr'
constexpr double GEVINV2FM = HBARC;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:132:1: error: unknown type name 'constexpr'
constexpr double FM2GEVINV = 1./HBARC;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:133:1: error: unknown type name 'constexpr'
constexpr double FMINV2GEV = HBARC;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:136:1: error: unknown type name 'constexpr'
constexpr double HBARCSQ = 0.38937937;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:137:1: error: unknown type name 'constexpr'
constexpr double GEVSQ2MBINV = 1. / HBARCSQ;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:138:1: error: unknown type name 'constexpr'
constexpr double GEVSQINV2MB = HBARCSQ;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:139:1: error: unknown type name 'constexpr'
constexpr double MB2GEVSQINV = 1. / HBARCSQ;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:140:1: error: unknown type name 'constexpr'
constexpr double MBINV2GEVSQ = HBARCSQ;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:143:1: error: unknown type name 'constexpr'
constexpr double FM2MM = 1e-12;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:144:1: error: unknown type name 'constexpr'
constexpr double MM2FM = 1e12;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:147:1: error: unknown type name 'constexpr'
constexpr double MB2PB = 1e9;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:148:1: error: unknown type name 'constexpr'
constexpr double PB2MB = 1e-9;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:149:1: error: unknown type name 'constexpr'
constexpr double MB2FB = 1e12;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:150:1: error: unknown type name 'constexpr'
constexpr double FB2MB = 1e-12;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:153:1: error: unknown type name 'constexpr'
constexpr double FMSQ2MB = 10.;
^
/Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:154:1: error: unknown type name 'constexpr'
constexpr double MB2FMSQ = 0.1;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Pythia82] Error 1

I am running on a MacBook Pro with Intel processor and MacOs Big Sur 11.6.
The clang version is 13.0.0 (clang-1300.0.29.3).

The error is not there when I shower LO processes.

Thank you for your help.

Cheers,
Michele

Question information

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

Hi,

So this is an issue that your compiler is not C++11 compliant by default.
This was fixed in newer version of the code.
So the best is to update to 2.9.6 our latest subversion of our long term stable branch.
Our use our latest relase 3.3.0

Note that those two version are expecting Pythia8.3

Cheers,

Olivier

> On 16 Nov 2021, at 19:15, Michele Mormile <email address hidden> wrote:
>
> New question #699520 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/699520
>
> Hello,
>
> I am having troubles using pythia8 with MG5_aMC_v2.8.3.2 at NLO in QCD.
> When I try to run the shower I get the following compiling errors:
> In file included from Pythia82.cc:3:
> In file included from /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/Pythia.h:17:
> In file included from /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/Analysis.h:16:
> In file included from /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/Basics.h:16:
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:92:12: error: no member named 'tuple' in namespace 'std'
> using std::tuple;
> ~~~~~^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:129:1: error: unknown type name 'constexpr'
> constexpr double HBARC = 0.19732698;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:130:1: error: unknown type name 'constexpPythia8 compilation did not succeed, exiting
>
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:131:1: error: unknown type name 'constexpr'
> constexpr double GEVINV2FM = HBARC;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:132:1: error: unknown type name 'constexpr'
> constexpr double FM2GEVINV = 1./HBARC;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:133:1: error: unknown type name 'constexpr'
> constexpr double FMINV2GEV = HBARC;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:136:1: error: unknown type name 'constexpr'
> constexpr double HBARCSQ = 0.38937937;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:137:1: error: unknown type name 'constexpr'
> constexpr double GEVSQ2MBINV = 1. / HBARCSQ;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:138:1: error: unknown type name 'constexpr'
> constexpr double GEVSQINV2MB = HBARCSQ;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:139:1: error: unknown type name 'constexpr'
> constexpr double MB2GEVSQINV = 1. / HBARCSQ;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:140:1: error: unknown type name 'constexpr'
> constexpr double MBINV2GEVSQ = HBARCSQ;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:143:1: error: unknown type name 'constexpr'
> constexpr double FM2MM = 1e-12;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:144:1: error: unknown type name 'constexpr'
> constexpr double MM2FM = 1e12;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:147:1: error: unknown type name 'constexpr'
> constexpr double MB2PB = 1e9;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:148:1: error: unknown type name 'constexpr'
> constexpr double PB2MB = 1e-9;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:149:1: error: unknown type name 'constexpr'
> constexpr double MB2FB = 1e12;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:150:1: error: unknown type name 'constexpr'
> constexpr double FB2MB = 1e-12;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:153:1: error: unknown type name 'constexpr'
> constexpr double FMSQ2MB = 10.;
> ^
> /Users/michele/Desktop/MG5_aMC_v2_8_3_2/HEPTools/pythia8/include/Pythia8/PythiaStdlib.h:154:1: error: unknown type name 'constexpr'
> constexpr double MB2FMSQ = 0.1;
> ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> make: *** [Pythia82] Error 1
>
>
>
> I am running on a MacBook Pro with Intel processor and MacOs Big Sur 11.6.
> The clang version is 13.0.0 (clang-1300.0.29.3).
>
> The error is not there when I shower LO processes.
>
> Thank you for your help.
>
> Cheers,
> Michele
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Michele Mormile for more information if necessary.

To post a message you must log in.