Pythia8 compilation failed with getHook function missing

Asked by Vichayanun Wachirapusitanand

Hi,

I am currently running MadGraph5 v2.6.7 with Pythia8 installed via mg5_aMC in the package. During four top quark production generation with that setup, I am able to generate events in LHE format up to the Pythia compilation step, where Pythia always give me errors like this below:

Pythia82.cc: In function ‘int main()’:
Pythia82.cc:34:26: error: ‘class Pythia8::CombineMatchingInput’ has no member named ‘getHook’; did you mean ‘setHook’?
     matching = combined->getHook(pythia);
                          ^~~~~~~
Pythia82.cc:40:36: error: no matching function for call to ‘Pythia8::Pythia::setUserHooksPtr(Pythia8::UserHooks*&)’
     pythia.setUserHooksPtr(matching);
                                    ^
In file included from Pythia82.cc:3:0:
/storage_mnt/storage/user/vwachira/LCG_93c/MG5_aMC_v2_6_7/HEPTools/pythia8/include/Pythia8/Pythia.h:136:8: note: candidate: bool Pythia8::Pythia::setUserHooksPtr(Pythia8::UserHooksPtr)
   bool setUserHooksPtr(UserHooksPtr userHooksPtrIn) {
        ^~~~~~~~~~~~~~~
/storage_mnt/storage/user/vwachira/LCG_93c/MG5_aMC_v2_6_7/HEPTools/pythia8/include/Pythia8/Pythia.h:136:8: note: no known conversion for argument 1 from ‘Pythia8::UserHooks*’ to ‘Pythia8::UserHooksPtr {aka std::shared_ptr<Pythia8::UserHooks>}’
make: *** [Pythia82] Error 1
 \

Pythia8 compilation did not succeed, exiting

Could you please explain what could be the cause of this error and how to fix this?

Regards,
Vichayanun

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

If you re-install pythia8, it should be working now.
But note that 2.6.7 is out of support and that soon install pythia8 is going to install pythia8.3 which is not compatible with 2.6.7

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Vichayanun Wachirapusitanand for more information if necessary.

To post a message you must log in.