Problem with "ld: library not found for -lcrt1.10.6.o"

Asked by Deepak Kar on 2017-10-30

Dear friendly folks,

I updated to OSX Sierra, Xcode 9.0.1, gcc 7.2. When trying to run MG5_aMC_v2_6_0, I am getting this error when compiling source, independent of whatever process I want to run.

I do have crt1.10.6.o here:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib/
and at
/usr/lib/
(although the latter is from July, while the former is from today, I cant seem to copy files into the /usr/lib path).

I installed command line tools (as some google searches suggested), and also tried doing:
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib"
without any luck.

Any help will be much appreciated. Thanks!
Deepak

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2017-10-30
Last query:
2017-10-30
Last reply:
2017-10-30

Hi,

My advise would be to not install gcc and to only install gfortran.

Otherwise, this error seems to be a miss-configuration in your setup of library (likely a mismatch due to the global installation of gcc) but I do not know more details on this.

Cheers,

Olivier

> On Oct 30, 2017, at 13:53, Deepak Kar <email address hidden> wrote:
>
> New question #660123 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/660123
>
> Dear friendly folks,
>
> I updated to OSX Sierra, Xcode 9.0.1, gcc 7.2. When trying to run MG5_aMC_v2_6_0, I am getting this error when compiling source, independent of whatever process I want to run.
>
> I do have crt1.10.6.o here:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib/
> and at
> /usr/lib/
> (although the latter is from July, while the former is from today, I cant seem to copy files into the /usr/lib path).
>
> I installed command line tools (as some google searches suggested), and also tried doing:
> export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib"
> without any luck.
>
> Any help will be much appreciated. Thanks!
> Deepak
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Deepak Kar (dkar1306) said : #2

Dear Oliver,

Thanks for your suggestion. I am also looking at this:
https://answers.launchpad.net/mg5amcnlo/+question/188704
and I would agree its a gcc version mess up.

However, being an experimentalist using ROOT (among other things), I cant remove gcc without destroying many other things. Is there a way I can ask the MG5 to look at a specific path for this library, and try to put a compatible version there?

Sincerely,
Deepak

Hi Deepark,

If I abstract the (I hope temporary bug) that root is not compatible with the latest Xcode version, I can confirm that you do not
need to have gcc installed to run Root and/or many other physics tools. It is actually better since having both gcc and clang (default on mac) is typically a nightmare (as you can realize by now).

Concerning, this issue the problem being at the linker stage, we do not have any switch used at this level inside MG5aMC who can help you.
Everything should be edit/control via environment variable in order for you to always link to the gcc version of the code and not sometimes use the gcc version and sometimes the clang version of some module.

Cheers,

Olivier

> On Oct 30, 2017, at 15:18, Deepak Kar <email address hidden> wrote:
>
> Question #660123 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/660123
>
> Deepak Kar posted a new comment:
> Dear Oliver,
>
> Thanks for your suggestion. I am also looking at this:
> https://answers.launchpad.net/mg5amcnlo/+question/188704
> and I would agree its a gcc version mess up.
>
> However, being an experimentalist using ROOT (among other things), I
> cant remove gcc without destroying many other things. Is there a way I
> can ask the MG5 to look at a specific path for this library, and try to
> put a compatible version there?
>
> Sincerely,
> Deepak
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Deepak Kar (dkar1306) said : #4

Hi Oliver,

Okay I took the leap of faith, removed gcc, installed gfortran. Root (and Rivet) still works, and my MG5 generation is now running!

Thank a lot for your help,
Deepak

Deepak Kar (dkar1306) said : #5

Thanks Olivier Mattelaer, that solved my question.