Cannot install delphes

Asked by Juan Antonio Aguilar Saavedra on 2021-04-30

Hello, I various sorts of compile errors when trying to install delphes on my new mac with big sur and xcode 12.4 / 12.5, with the latest root installed with homebrew. It's a bit surprising because I neved had any problem at all in any other mac os version.

Has anyone installed delphes on big sur? Which xcode was used? How was root installed? I am wondering whether to use macports instead of homebrew.

I have to say that installing root and other packages with homebrew was tricky, I got many error messages when installing dependencies (error: cannot remove whatever and the installation stopped). I had to install individual packages by hand and resume several times. But at the end, the installation seemed ok.

Thanks a lot in advance!

JA

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Juan Antonio Aguilar Saavedra
Solved:
Last query:
Last reply:

For root on mac, my advise is to use the pre-compiled version provided by CERN, I have never faced any issue with those one and those are consistent with the recomendation of using clang and not gcc on mac.

Cheers,

Olivier

> On 1 May 2021, at 00:20, Juan Antonio Aguilar Saavedra <email address hidden> wrote:
>
> New question #696852 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/696852
>
> Hello, I various sorts of compile errors when trying to install delphes on my new mac with big sur and xcode 12.4 / 12.5, with the latest root installed with homebrew. It's a bit surprising because I neved had any problem at all in any other mac os version.
>
> Has anyone installed delphes on big sur? Which xcode was used? How was root installed? I am wondering whether to use macports instead of homebrew.
>
> I have to say that installing root and other packages with homebrew was tricky, I got many error messages when installing dependencies (error: cannot remove whatever and the installation stopped). I had to install individual packages by hand and resume several times. But at the end, the installation seemed ok.
>
> Thanks a lot in advance!
>
> JA
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Dear Olivier, thanks a lot. I managed to compile it but not without some pain. I list here the errors and fixes, for reference. The first compilation error I got was

classes/DelphesTF2.cc:35:12: error: no viable overloaded '='

which I solved by inserting

  TFormula * fFormula;

on line 35 before

  fFormula = new TFormula();

With that fix, compilation continued until the second error:

error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)

which I solved by writing

export MACOSX_DEPLOYMENT_TARGET=10.15

as suggested by Benj elsewhere. This prompted many warnings but otherwise the compilation continued. The third error was

validation/DelphesValidation.cpp:1196:17: error: allocation of incomplete type 'TF1'

which I solved by adding

#include "TF1.h"

to the header in that file. With that, I've been able to pass through Delphes a test hepmc file. It remains to be checked whether simulated events are fine, but I guess so.

Best,

Juan Antonio

I have created a ticket on the Delphes tracking system:
https://cp3.irmp.ucl.ac.be/projects/delphes/ticket/1500#ticket <https://cp3.irmp.ucl.ac.be/projects/delphes/ticket/1500#ticket>

Cheers,

Olivier

> On 2 May 2021, at 23:25, Juan Antonio Aguilar Saavedra <email address hidden> wrote:
>
> Juan Antonio Aguilar Saavedra confirmed that the question is solved:
> Dear Olivier, thanks a lot. I managed to compile it but not without some
> pain. I list here the errors and fixes, for reference. The first
> compilation error I got was
>
> classes/DelphesTF2.cc:35 <http://delphestf2.cc:35/>:12: error: no viable overloaded '='
>
> which I solved by inserting
>
> TFormula * fFormula;
>
> on line 35 before
>
> fFormula = new TFormula();
>
> With that fix, compilation continued until the second error:
>
> error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7
> or later)
>
> which I solved by writing
>
> export MACOSX_DEPLOYMENT_TARGET=10.15
>
> as suggested by Benj elsewhere. This prompted many warnings but
> otherwise the compilation continued. The third error was
>
> validation/DelphesValidation.cpp:1196:17: error: allocation of
> incomplete type 'TF1'
>
> which I solved by adding
>
> #include "TF1.h"
>
> to the header in that file. With that, I've been able to pass through
> Delphes a test hepmc file. It remains to be checked whether simulated
> events are fine, but I guess so.
>
> Best,
>
> Juan Antonio