macos version

Asked by Marawan Barakat

After I launch a process I get :

INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
compile Source Directory
Error detected in "generate_events "
write debug file /Users/marawanbarakat/MG5_aMC_v3_3_0/ppmumu/run_01_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/marawanbarakat/MG5_aMC_v3_3_0/ppmumu/Source.
 The compilation fails with the following output message:
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o StringCast.o StringCast.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o ranmar.o ranmar.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o transpole.o transpole.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o invarients.o invarients.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o hfill.o hfill.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o pawgraphs.o pawgraphs.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o ran1.o ran1.f
     clang: error: invalid version number in '-mmacosx-version-min=11.0'
     clang: error: invalid version number in '-mmacosx-version-min=11.0'
     clang: error: invalid version number in '-mmacosx-version-min=11.0'
     clang: error: invalid version number in '-mmacosx-version-min=11.0'
     clang: error: invalid version number in '-mmacosx-version-min=11.0'
     clang: error: invalid version number in '-mmacosx-version-min=11.0'
     clang: error: invalid version number in '-mmacosx-version-min=11.0'
     make: *** [pawgraphs.o] Error 1
     make: *** Waiting for unfinished jobs....
     make: *** [transpole.o] Error 1
     make: *** [StringCast.o] Error 1
     make: *** [ranmar.o] Error 1
     make: *** [alfas_functions.o] Error 1
     make: *** [hfill.o] Error 1
     make: *** [ran1.o] Error 1
     clang: error: invalid version number in '-mmacosx-version-min=11.0'
     make: *** [invarients.o] 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

I tried to install the latest version 3.3 of MadGraph and still have the same issue !

Question information

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

Which version of macos do you have?

Cheers,

Olivier

> On 2 Dec 2021, at 14:20, Marawan Barakat <email address hidden> wrote:
>
> New question #699720 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/699720
>
> After I launch a process I get :
>
> INFO: Update the dependent parameter of the param_card.dat
> Generating 10000 events with run name run_01
> survey run_01
> INFO: compile directory
> compile Source Directory
> Error detected in "generate_events "
> write debug file /Users/marawanbarakat/MG5_aMC_v3_3_0/ppmumu/run_01_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/marawanbarakat/MG5_aMC_v3_3_0/ppmumu/Source.
> The compilation fails with the following output message:
> gfortran -w -fPIC -O -ffixed-line-length-132 -c -o StringCast.o StringCast.f
> gfortran -w -fPIC -O -ffixed-line-length-132 -c -o ranmar.o ranmar.f
> gfortran -w -fPIC -O -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
> gfortran -w -fPIC -O -ffixed-line-length-132 -c -o transpole.o transpole.f
> gfortran -w -fPIC -O -ffixed-line-length-132 -c -o invarients.o invarients.f
> gfortran -w -fPIC -O -ffixed-line-length-132 -c -o hfill.o hfill.f
> gfortran -w -fPIC -O -ffixed-line-length-132 -c -o pawgraphs.o pawgraphs.f
> gfortran -w -fPIC -O -ffixed-line-length-132 -c -o ran1.o ran1.f
> clang: error: invalid version number in '-mmacosx-version-min=11.0'
> clang: error: invalid version number in '-mmacosx-version-min=11.0'
> clang: error: invalid version number in '-mmacosx-version-min=11.0'
> clang: error: invalid version number in '-mmacosx-version-min=11.0'
> clang: error: invalid version number in '-mmacosx-version-min=11.0'
> clang: error: invalid version number in '-mmacosx-version-min=11.0'
> clang: error: invalid version number in '-mmacosx-version-min=11.0'
> make: *** [pawgraphs.o] Error 1
> make: *** Waiting for unfinished jobs....
> make: *** [transpole.o] Error 1
> make: *** [StringCast.o] Error 1
> make: *** [ranmar.o] Error 1
> make: *** [alfas_functions.o] Error 1
> make: *** [hfill.o] Error 1
> make: *** [ran1.o] Error 1
> clang: error: invalid version number in '-mmacosx-version-min=11.0'
> make: *** [invarients.o] 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
>
> I tried to install the latest version 3.3 of MadGraph and still have the same issue !
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

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

I am using 11.6

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

Weird that is the same as me. (11.6.1)

So the next question is which version of clang do you have?

According to this thread: https://stackoverflow.com/questions/63972113/big-sur-clang-invalid-version-error-due-to-macosx-deployment-target

Your bug seems related to the command line tools installation and maybe to the an environment variable
SYSTEM_VERSION_COMPAT

In my case, I have this version of clang
$> clang --version
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

and did not set that environment variable
$> echo $SYSTEM_VERSION_COMPAT
[no returned value]

That thread claims that my clang version is problematic, but I do not have that issue....
but i would advise to follow the instruction in that thread and reinstall command line tools

Cheers,

Olivier

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

So this helped to solve the problem, thank you very much.

The problem was an non compatibility between the macos version and the xcode version.
The solution steps are :

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

And then the run is working succesfully

Cheers :)