install ExRootAnalysis or Delphes

Asked by taotao

Recently I tried to install ExRootAnalysis and Delphes in mac big sur (x86) with the xcode 12, and the result shows:
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
make: *** [libExRootAnalysis.dylib] Error 1
Error detected during the compilation. Please check the compilation error and run make manually.
But I do not know how to deal with it, I need someone to help me to cancel it, thanks

Question information

Language:
English Edit question
Status:
Expired
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

I do not have (yet) a Big Sur machine so I can not test so far.
But indeed we are typically setting flag for forcing to use quite old os configuration.
(since lhapdf linking does not support new os configuration) so this might be the problem.

In a month or so, I should receive a Big Sur machine (m1) on which I should be able to test that Os/hardware.

Cheers,

Olivier

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Patricia Rebello Teles (athenafma) said :
#3

Hi Olivier

I am facing the same issue in Mg5 2.6.7

Cheers Pat

Revision history for this message
Benjamin Fuks (fuks) said :
#4

Hi Pat, Taotao,

In order to solve this, you need to specify the following environment variable:
   export MACOSX_DEPLOYMENT_TARGET=10.15
I know you should have 11.X as an OS, but specifying 11.X makes compilation failing. As the c++ standard libraries are the same, this does not matter and the above works.

Cheers,

Benj

Revision history for this message
taotao (guannanyue) said :
#5

Hi Benj,
I tried to add the environment variable:
   export MACOSX_DEPLOYMENT_TARGET=10.15 into the .zprofile and .bash_profile. But when I install ExRootAnalysis or Delphes, it shows the same error, Is the way I add the environment variable wrong?

Revision history for this message
Patricia Rebello Teles (athenafma) said :
#6

Hi taotao

I simply used export MACOSX_DEPLOYMENT_TARGET=10.15
in command line
it has worked

Revision history for this message
Patricia Rebello Teles (athenafma) said :
#7

hi all... sorry... I could install ExRoot but Delphes failed :-(

Revision history for this message
Patricia Rebello Teles (athenafma) said :
#8

The errors

validation/DelphesValidation.cpp:1196:17: error: allocation of incomplete type 'TF1'
  TF1 *f1 = new TF1("f1", "gaus", hist->GetMean() - 2 * hist->GetRMS(), hist->GetMean() + ...
                ^~~
/opt/local/libexec/root6/include/root/TGraph.h:36:7: note: forward declaration of 'TF1'
class TF1;
      ^
validation/DelphesValidation.cpp:1199:37: error: member access into incomplete type 'TF1'
  TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetPar...
                                    ^
/opt/local/libexec/root6/include/root/TGraph.h:36:7: note: forward declaration of 'TF1'
class TF1;
      ^
validation/DelphesValidation.cpp:1199:84: error: member access into incomplete type 'TF1'
  TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter...
                                                                                   ^
/opt/local/libexec/root6/include/root/TGraph.h:36:7: note: forward declaration of 'TF1'
class TF1;
      ^
validation/DelphesValidation.cpp:1202:20: error: member access into incomplete type 'TF1'
  Double_t sig = f2->GetParameter(2);
                   ^
/opt/local/libexec/root6/include/root/TGraph.h:36:7: note: forward declaration of 'TF1'
class TF1;
      ^
validation/DelphesValidation.cpp:1203:23: error: member access into incomplete type 'TF1'
  Double_t sigErr = f2->GetParError(2);