gfortran: warning: couldn’t understand kern.osversion ‘18.6.0

Asked by Abner Soffer

Hello.

I am running version 2.6.5 out of the box on a mac Mohave 10.14.5. I do
generate p p > w+
output w2
launch
0
0 (or "done", or "enter", not clear what the difference is)
and I get

Error detected in "generate_events run_01"
write debug file /Users/Abi/cernbox/Work/pheno/Madgraph/sandbox/w2/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/Abi/cernbox/Work/pheno/Madgraph/sandbox/w2/Source.
 The compilation fails with the following output message:
     gfortran: warning: couldn’t understand kern.osversion ‘18.6.0
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o combine_events.o combine_events.f
     gfortran: warning: couldn’t understand kern.osversion ‘18.6.0
     gfortran -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 -lstdc++ -lbias
     gfortran: warning: couldn’t understand kern.osversion ‘18.6.0
     ld: library not found for -lcrt1.o
     collect2: error: ld returned 1 exit status
     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

Not clear to me what the error is, but there is indeed no file crt1.o.
What should I do?

Thanks,
Abi

Question information

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

https://stackoverflow.com/questions/23666762/g95-ld-library-not-found-for-lcrt1-o

Cheers,

Olivier

On 24 Jun 2019, at 07:37, Abner Soffer <<email address hidden><mailto:<email address hidden>>> wrote:

 ld: library not found for -lcrt1.o

Revision history for this message
Abner Soffer (asoffer) said :
#2

Hmmm,. At that link it says to do

  xcode-select --install

when I do that I get

  xcode-select: error: command line tools are already installed, use "Software Update" to install updates

and when I do

  softwareupdate --list

It says

  Software Update Tool

  Finding available software
  No new software available.

So maybe this isn't the problem.

Abi

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

This link:
http://www2.lowell.edu/users/massey/Macsoftware.html

seems to claim that the following command can solve the issue:
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/crt1.o /usr/lib/crt1.o

I'm also on 10.14.5.
I have the file
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/crt1.o
on my machine and did not need to put a symlink...

But OSX has the idea to behave differently on new mac compare to people updating from one version to next. Making the notion of version quite weird...

Olivier

On 24 Jun 2019, at 09:43, Abner Soffer <<email address hidden><mailto:<email address hidden>>> wrote:

Question #681556 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/681556

   Status: Answered => Open

Abner Soffer is still having a problem:
Hmmm,. At that link it says to do

 xcode-select --install

when I do that I get

 xcode-select: error: command line tools are already installed, use
"Software Update" to install updates

and when I do

 softwareupdate --list

It says

 Software Update Tool

 Finding available software
 No new software available.

So maybe this isn't the problem.

Abi

--
You received this question notification because you are an answer
contact for MadGraph5_aMC@NLO.

Revision history for this message
Abner Soffer (asoffer) said :
#4

I don't have /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/crt1.o and also get permission denied when I try to sudo ln -s into /usr/lib/ . If you have ideas, that's great. But I really don't want to take your time solving basic mac problems...

Thanks,
Abi

Revision history for this message
Abner Soffer (asoffer) said :
#5

OK, updating gfortran at https://github.com/fxcoudert/gfortran-for-macOS/releases seems to have fixed my problem.

Thanks,
Abi