nemesiscode / radtrancode

This is the repository of the NEMESIS/RADTRANS project. It is described on the associated web page listed here.
https://nemesiscode.github.io/
20 stars 2 forks source link

Any advice for getting it working on a new M1 Mac? #1

Open mcordiner opened 2 years ago

mcordiner commented 2 years ago

After downloading and compiling on a new Arm64 Mac laptop, I'm getting a runtime error about the dyld_shared_cache_arm64e not being loaded. A bit of Googling indicates it could be related to the presence of large, static arrays. Does anyone know how to fix this / work around? Can Nemesis be run on an M1 Mac with OS12.5? Thanks!

nemesiscode commented 2 years ago

Hi Martin,

I’ve not yet got an M1 Mac, but one of my students has and he initially could not get things to run with the M1 chip and OS12.5. The issue seems to be something with Xcode. The workaround we found in the end was to use the following compile flags with gfortran: -O -finit-local-zero -m64 -fcheck=bounds -fcheck=mem -fbacktrace -Wconversion -mcmodel=medium

And also to add the following string at the end of each executable compile statement in the makefile: -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib

Fingers crossed that works for you too!

Best wishes,

Pat

On 7 Sep 2022, at 22:13, Martin Cordiner @.**@.>> wrote:

After downloading and compiling on a new Arm64 Mac laptop, I'm getting a runtime error about the dyld_shared_cache_arm64e not being loaded. A bit of Googling indicates it could be related to the presence of large, static arrays. Does anyone know how to fix this / work around? Can Nemesis be run on an M1 Mac with OS12.5? Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/nemesiscode/radtrancode/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALHNT3ZK6KB5P73IFEIHKQLV5EARNANCNFSM6AAAAAAQHEBE74. You are receiving this because you are subscribed to this thread.Message ID: @.***>