Pythia and Delphes on M1 ship macOS 12.3.1

Asked by Marawan Barakat

Hello,

I am installing Pythia and Delphes on my MacBook Air M1 machine with MG5_aMC_v3_4_0 ,

While running Pythia I get :
WARNING: program /Users/marawan/miniconda3/bin/python3 -O /Users/marawan/MadGraph/MG5_aMC_v3_4_0/ppmumu/bin/internal/systematics.py unweighted_events.lhe.gz ./tmp_1_unweighted_events.lhe.gz --mur=0.5,1,2 --muf=0.5,1,2 --pdf=errorset --start_event=2500 --stop_event=5000 --result=./log_sys_1.txt --lhapdf_config=/Users/marawan/MadGraph/MG5_aMC_v3_4_0/HEPTools/lhapdf6_py3/bin/lhapdf-config launch ends with non zero status: 1. Stop all computation
WARNING: program /Users/marawan/miniconda3/bin/python3 -O /Users/marawan/MadGraph/MG5_aMC_v3_4_0/ppmumu/bin/internal/systematics.py unweighted_events.lhe.gz ./tmp_3_unweighted_events.lhe.gz --mur=0.5,1,2 --muf=0.5,1,2 --pdf=errorset --start_event=7500 --stop_event=10000 --result=./log_sys_3.txt --lhapdf_config=/Users/marawan/MadGraph/MG5_aMC_v3_4_0/HEPTools/lhapdf6_py3/bin/lhapdf-config launch ends with non zero status: 1. Stop all computation
INFO: Running Systematics computation
Command "generate_events " interrupted with error:
RuntimeError : Info file not found for PDF set 'NNPDF23_lo_as_0130_qed'
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/Users/marawan/MadGraph/MG5_aMC_v3_4_0/ppmumu/run_02_tag_1_debug.log'.
Please attach this file to your report.

And When I install Delphes I get :

>> Building libDelphesNoFastJet.dylib
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libDelphesNoFastJet.dylib] Error 1
Error detected during the compilation. Please check the compilation error and run make manually.
save configuration file to /Users/marawan/MadGraph/MG5_aMC_v3_4_0/input/mg5_configuration.txt

I tried to make manually and I got :

ld: -rpath can only be used when targeting Mac OS X 10.5 or later
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libDelphesNoFastJet.dylib] Error 1

Cheers

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

For Pythia looks like you are missing a PDF set from lhapdf.
Normally such pdf set is automatically installed when you do install lhpadf6.
So my suggestion would be to reinstall lhapdf6.

For Delphes, I do not know, except that I do know that they tested Delphes on M1 and that it was working.

Cheers,

Olivier

Revision history for this message
Marawan Barakat (marawanbarakat) said :
#2

I reinstalled the lhapdf6 and still has the same error.
Should I modify the pdflabel ? I have : nn23lo1

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

So I have tested on a M1 right now and it did works:
The end of the installation file is:

--2022-05-30 21:24:12-- http://lhapdfsets.web.cern.ch/lhapdfsets/current/NNPDF23_lo_as_0130_qed.tar.gz
Resolving lhapdfsets.web.cern.ch (lhapdfsets.web.cern.ch)... 137.138.31.235, 188.185.87.216, 188.185.90.87
Connecting to lhapdfsets.web.cern.ch (lhapdfsets.web.cern.ch)|137.138.31.235|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://lhapdfsets.web.cern.ch/lhapdfsets/current/NNPDF23_lo_as_0130_qed.tar.gz [following]
--2022-05-30 21:24:12-- https://lhapdfsets.web.cern.ch/lhapdfsets/current/NNPDF23_lo_as_0130_qed.tar.gz
Connecting to lhapdfsets.web.cern.ch (lhapdfsets.web.cern.ch)|137.138.31.235|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://lhapdfsets.web.cern.ch/current/NNPDF23_lo_as_0130_qed.tar.gz [following]
--2022-05-30 21:24:12-- https://lhapdfsets.web.cern.ch/current/NNPDF23_lo_as_0130_qed.tar.gz
Reusing existing connection to lhapdfsets.web.cern.ch:443.
HTTP request sent, awaiting response... 200 OK
Length: 27625668 (26M) [application/x-gzip]
Saving to: ‘NNPDF23_lo_as_0130_qed.tar.gz’

followed by many line of the type:
   150K .......... .......... .......... .......... .......... 0% 7.82M 14s
followed by many line of the type
x NNPDF23_lo_as_0130_qed/NNPDF23_lo_as_0130_qed_0089.dat

Do you have those too?

Or do you have a crash stating that you can not download that pdf set?

Cheers,

Olivier

PS: Yes you can set the PDF to lhapdf and then specify a lhaid to specify the set, this might avoid the issue.

Revision history for this message
Marawan Barakat (marawanbarakat) said :
#4
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#5

Should be in
HepTools/lhapdf6_py3/share/LHAPDF/

Cheers,

Olivier

> On 6 Jun 2022, at 21:35, Marawan Barakat <email address hidden> wrote:
>
> Question #701926 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/701926
>
> Marawan Barakat posted a new comment:
> In which directory should I install this :
> https://lhapdfsets.web.cern.ch/current/NNPDF23_lo_as_0130_qed.tar.gz ?
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Marawan Barakat (marawanbarakat) said :
#6

Done!

I get a very long log error :

Error detected in "generate_events "
write debug file /Users/marawan/MadGraph/MG5_aMC_v3_4_0/ppmumu/run_03_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : A compilation Error occurs when trying to compile /Users/marawan/MadGraph/MG5_aMC_v3_4_0/ppmumu/SubProcesses/P1_qq_ll.
 The compilation fails with the following output message:
     /Users/marawan/miniconda3/bin/x86_64-apple-darwin13.4.0-gfortran -march=core2 -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -isystem /Users/marawan/miniconda3/include -O -ffixed-line-length-132 -w -c driver.f -I../../Source/
.
.
.
.

       "___cxa_throw", referenced from:
           (anonymous namespace)::PDFSetHandler::PDFSetHandler(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libpdf.a(pdf_lhapdf62.o)
           (anonymous namespace)::PDFSetHandler::PDFSetHandler(int) in libpdf.a(pdf_lhapdf62.o)
           _lhapdf_hasflavor in libpdf.a(pdf_lhapdf62.o)
           _lhapdf_xfxq2_ in libpdf.a(pdf_lhapdf62.o)
           _lhapdf_xfxq2_stdpartons_ in libpdf.a(pdf_lhapdf62.o)
           _lhapdf_getorderas_ in libpdf.a(pdf_lhapdf62.o)
           _lhapdf_alphasq2_ in libpdf.a(pdf_lhapdf62.o)
           ...
       "___dynamic_cast", referenced from:
           LHAPDF::mkAlphaS(LHAPDF::Info const&) in libLHAPDF.a(Factories.o)
           LHAPDF::File<std::__1::basic_ifstream<char, std::__1::char_traits<char> > >::open() in libLHAPDF.a(FileIO.o)
           LHAPDF::File<std::__1::basic_ifstream<char, std::__1::char_traits<char> > >::close() in libLHAPDF.a(FileIO.o)
           LHAPDF::File<std::__1::basic_ofstream<char, std::__1::char_traits<char> > >::open() in libLHAPDF.a(FileIO.o)
       "___gxx_personality_v0", referenced from:
           lhaglue_get_current_pdf(int) in libpdf.a(pdf_lhapdf62.o)
           LHAPDF::PDF::set() const in libpdf.a(pdf_lhapdf62.o)
           _lhapdf_getpdfsetlist_ in libpdf.a(pdf_lhapdf62.o)
           _lhapdf_getdatapath_ in libpdf.a(pdf_lhapdf62.o)
           _lhapdf_setdatapath_ in libpdf.a(pdf_lhapdf62.o)
           _lhapdf_prependdatapath_ in libpdf.a(pdf_lhapdf62.o)
           LHAPDF::pathsPrepend(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libpdf.a(pdf_lhapdf62.o)
           ...
     ld: symbol(s) not found for architecture x86_64
     collect2: error: ld returned 1 exit status
     make: *** [madevent_forhel] Error 1

 Please try to fix this compilations issue and retry.
 Help might be found at https://answers.launchpad.net/mg5amcnlo.
 If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#7

So looks like you have some library linking issue...

I see that you use anaconda (not sure why) and i guess that this might be the issue if anaconda does not have all the library correctly sync with each other. I guess some of the library are built for arm and other for x86_64 creating the issue.
My advise would be to get rid of anaconda and be sure to compile for one platform only (or everything in fat binary --universal binary like named by apple--).

If you do only LO, then doing everything for arm should be working.
For NLO (and loop-induced), we need quadruple precision, and so far I have not found an arm version of gfortran compatible with quadruple precision, in that case you are force to install everything for x86_64 and rosetta2 will convert the code on the flight for arm.

Cheers,

Olivier

> On 6 Jun 2022, at 23:01, Marawan Barakat <email address hidden> wrote:
>
> Question #701926 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/701926
>
> Marawan Barakat posted a new comment:
> Done!
>
> I get a very long log error :
>
> Error detected in "generate_events "
> write debug file /Users/marawan/MadGraph/MG5_aMC_v3_4_0/ppmumu/run_03_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
> str : A compilation Error occurs when trying to compile /Users/marawan/MadGraph/MG5_aMC_v3_4_0/ppmumu/SubProcesses/P1_qq_ll.
> The compilation fails with the following output message:
> /Users/marawan/miniconda3/bin/x86_64-apple-darwin13.4.0-gfortran -march=core2 -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -isystem /Users/marawan/miniconda3/include -O -ffixed-line-length-132 -w -c driver.f -I../../Source/
> .
> .
> .
> .
>
> "___cxa_throw", referenced from:
> (anonymous namespace)::PDFSetHandler::PDFSetHandler(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libpdf.a(pdf_lhapdf62.o)
> (anonymous namespace)::PDFSetHandler::PDFSetHandler(int) in libpdf.a(pdf_lhapdf62.o)
> _lhapdf_hasflavor in libpdf.a(pdf_lhapdf62.o)
> _lhapdf_xfxq2_ in libpdf.a(pdf_lhapdf62.o)
> _lhapdf_xfxq2_stdpartons_ in libpdf.a(pdf_lhapdf62.o)
> _lhapdf_getorderas_ in libpdf.a(pdf_lhapdf62.o)
> _lhapdf_alphasq2_ in libpdf.a(pdf_lhapdf62.o)
> ...
> "___dynamic_cast", referenced from:
> LHAPDF::mkAlphaS(LHAPDF::Info const&) in libLHAPDF.a(Factories.o)
> LHAPDF::File<std::__1::basic_ifstream<char, std::__1::char_traits<char> > >::open() in libLHAPDF.a(FileIO.o)
> LHAPDF::File<std::__1::basic_ifstream<char, std::__1::char_traits<char> > >::close() in libLHAPDF.a(FileIO.o)
> LHAPDF::File<std::__1::basic_ofstream<char, std::__1::char_traits<char> > >::open() in libLHAPDF.a(FileIO.o)
> "___gxx_personality_v0", referenced from:
> lhaglue_get_current_pdf(int) in libpdf.a(pdf_lhapdf62.o)
> LHAPDF::PDF::set() const in libpdf.a(pdf_lhapdf62.o)
> _lhapdf_getpdfsetlist_ in libpdf.a(pdf_lhapdf62.o)
> _lhapdf_getdatapath_ in libpdf.a(pdf_lhapdf62.o)
> _lhapdf_setdatapath_ in libpdf.a(pdf_lhapdf62.o)
> _lhapdf_prependdatapath_ in libpdf.a(pdf_lhapdf62.o)
> LHAPDF::pathsPrepend(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libpdf.a(pdf_lhapdf62.o)
> ...
> ld: symbol(s) not found for architecture x86_64
> collect2: error: ld returned 1 exit status
> make: *** [madevent_forhel] Error 1
>
> Please try to fix this compilations issue and retry.
> Help might be found at https://answers.launchpad.net/mg5amcnlo.
> If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Marawan Barakat (marawanbarakat) said :
#8

Hi
This didn't solve the problem , so Is there a docker container that can run Madgraph with Pythia and Delphes ?
This would be much easier
Cheers,
Marawan

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#9

I did a singularity2.0 image for mg5:
https://github.com/oliviermattelaer/singularity-recipe
But this was 4 years ago (and the server with the image singularityhub is not online anymore)
(but you have the recipe file)

Additionally singularity is not mac compatible (actually I do not how it could be in a efficient way)
but you should be able to inport a singularity file within docker (never check if docker is working on m1 and the efficiency of it)

Now if you google, you will find that some people have create docker image (some based on my singularity file), but I have not found one that include Delphes.

Cheers,

Olivier

> On 16 Jun 2022, at 16:00, Marawan Barakat <email address hidden> wrote:
>
> Question #701926 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/701926
>
> Status: Answered => Open
>
> Marawan Barakat is still having a problem:
> Hi
> This didn't solve the problem , so Is there a docker container that can run Madgraph with Pythia and Delphes ?
> This would be much easier
> Cheers,
> Marawan
>
> --
> 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 Marawan Barakat for more information if necessary.

To post a message you must log in.