gfortran compile error

Asked by sam7k9621

I followed the steps to generate the event of p p > t t~
After I launched and I type "done" , it showed that it can't compile the file

Error detected in "generate_events run_01"
write debug file /Users/Sam/Downloads/MG5_aMC_v2_4_2/mytestdir/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
MadGraph5Error : A compilation Error occurs when trying to compile /Users/Sam/Downloads/MG5_aMC_v2_4_2/mytestdir/Source.
 The compilation fails with the following output message:
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o combine_events.o combine_events.f
     gfortran -lc++ -mmacosx-version-min=10.7 -o ../bin/internal/combine_events combine_events.o rw_events.o ranmar.o kin_functions.o open_file.o rw_routines.o alfas_functions.o setrun.o -L../lib/ -lmodel -lpdf
     ld: library not found for -lcrt1.10.6.o
     collect2: 錯誤:ld 回傳 1
     make: *** [../bin/internal/combine_events] 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 use OS X 10.11 and I've downloaded the gfortran 6.1

Question information

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

According to http://stackoverflow.com/questions/19555312/ld-library-not-found-for-lcrt1-10-6-o-after-running-intel-icc-compiler-on-os-m

You need to run on your computer.

xcode-select --install

this should solve your problem.

Cheers,

Olivier

> On Jul 26, 2016, at 16:37, sam7k9621 <email address hidden> wrote:
>
> New question #303541 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/303541
>
> I followed the steps to generate the event of p p > t t~
> After I launched and I type "done" , it showed that it can't compile the file
>
> Error detected in "generate_events run_01"
> write debug file /Users/Sam/Downloads/MG5_aMC_v2_4_2/mytestdir/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
> MadGraph5Error : A compilation Error occurs when trying to compile /Users/Sam/Downloads/MG5_aMC_v2_4_2/mytestdir/Source.
> The compilation fails with the following output message:
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o combine_events.o combine_events.f
> gfortran -lc++ -mmacosx-version-min=10.7 -o ../bin/internal/combine_events combine_events.o rw_events.o ranmar.o kin_functions.o open_file.o rw_routines.o alfas_functions.o setrun.o -L../lib/ -lmodel -lpdf
> ld: library not found for -lcrt1.10.6.o
> collect2: 錯誤:ld 回傳 1
> make: *** [../bin/internal/combine_events] 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 use OS X 10.11 and I've downloaded the gfortran 6.1
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
sam7k9621 (sam7k9621) said :
#2

Thanks Olivier Mattelaer, that solved my question.