jalombar / starsmasher

A Smoothed Particle Hydrodynamics code for smashing stars (and planets)
GNU General Public License v3.0
19 stars 7 forks source link

Impossible to run .exe on MacOS Ventura (Apple Silicon) #5

Open Francyrad opened 1 year ago

Francyrad commented 1 year ago

The code compiles well on MacOS Ventura with Apple Silicon, however the .exe doesn't run (maybe because i'm missing some library that i cannot figure out)

Screenshot 2023-02-06 alle 01 54 05

How can I solve? Thank you for your work

Francesco

jalombar commented 1 year ago

Hi Francesco,

I haven't seen that error before, although I haven't been using MacOS. Could you copy and paste the errors into a message so that I can copy and paste them too? I hope you've been doing well.

Regards, Jamie

On Sun, Feb 5, 2023 at 7:54 PM Francesco Radica @.***> wrote:

The code compiles well on MacOS Ventura with Apple Silicon, however the .exe doesn't run (maybe because i'm missing some library that i cannot figure out)

[image: Screenshot 2023-02-06 alle 01 54 05] https://user-images.githubusercontent.com/51544149/216858077-c6297007-004a-4dbe-9394-9ca0f43f605b.png

How can I solve? Thank you for your work

Francesco

— Reply to this email directly, view it on GitHub https://github.com/jalombar/starsmasher/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFN7LAYPIE3256ZQ6LDWJ3DWWBDWFANCNFSM6AAAAAAUSCVQZE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- James Lombardi Professor of Physics

Pronouns: he/him/his YouTube Channel: Astronomy not Astrology https://www.youtube.com/channel/UCLn_God_bFIL32XWReIfEzQ Office Hours: Mondays 2:25 - 3:25 pm in Carr 117 Tuesdays 1 - 2:30 pm over Zoom https://allegheny.zoom.us/my/lombardi Wednesdays 2:25 - 3:25 pm in Carr 117 Thursdays 7 - 8:30 pm over Zoom https://allegheny.zoom.us/my/lombardi Fridays 2:25 - 3:25 pm in Carr 117

Francyrad commented 1 year ago

Hello Jamie, I'm doing well, Are you all ok? I copy there the error

francyrad@MacBook-Pro-di-Francesco parallel_bleeding_edge % mpirun starsmasher_cpu dyld[8935]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8937]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8929]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8927]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8936]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8931]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8930]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8927]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8929]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8931]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8936]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8937]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8935]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8930]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file)

Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted.


mpirun noticed that process rank 9 with PID 0 on node MacBook-Pro-di-Francesco exited on signal 6 (Abort trap: 6).

Best regards

jalombar commented 1 year ago

Hi Francesco,

Indeed, the error message indicates that the program "starsmasher_cpu" is missing the library "/usr/lib/libSystem.B.dylib".

It looks like the file usr/lib/libSystem.B.dylib doesn't exist. Reinstall the library there if it was deleted or uninstalled. Alternatively, if you can find where in some other directory the file does exist, then you maybe can update the library path to point to that location. Try "locate libSystem.B.dylib" or try "cd /" followed by "find . | grep libSystem.B.dylib".

Things here are going fine too!

Best regards, Jamie

On Sun, Feb 5, 2023 at 8:13 PM Francesco Radica @.***> wrote:

Hello Jamie, I'm doing well, Are you all ok? I copy there the error @.*** parallel_bleeding_edge % mpirun starsmasher_cpu dyld[8935]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8937]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8929]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8927]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8936]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8931]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8930]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[8927]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8929]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8931]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8936]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8937]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8935]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) dyld[8930]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <390927C0-C704-31F2-81E5-C4980A421AC0> /Users/francyrad/Documents/StarSmasher/Sole/parallel_bleeding_edge/starsmasher_cpu Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/libSystem.B.dylib' (no such file), '/usr/lib/libSystem.B.dylib' (no such file, no dyld cache), '/usr/local/lib/libSystem.B.dylib' (no such file) Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted.

mpirun noticed that process rank 9 with PID 0 on node MacBook-Pro-di-Francesco exited on signal 6 (Abort trap: 6).

Best regards

— Reply to this email directly, view it on GitHub https://github.com/jalombar/starsmasher/issues/5#issuecomment-1418347360, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFN7LA5AKRE7AA2JID73663WWBF4DANCNFSM6AAAAAAUSCVQZE . You are receiving this because you commented.Message ID: @.***>

-- James Lombardi Professor of Physics

Pronouns: he/him/his YouTube Channel: Astronomy not Astrology https://www.youtube.com/channel/UCLn_God_bFIL32XWReIfEzQ Office Hours: Mondays 2:25 - 3:25 pm in Carr 117 Tuesdays 1 - 2:30 pm over Zoom https://allegheny.zoom.us/my/lombardi Wednesdays 2:25 - 3:25 pm in Carr 117 Thursdays 7 - 8:30 pm over Zoom https://allegheny.zoom.us/my/lombardi Fridays 2:25 - 3:25 pm in Carr 117

Francyrad commented 1 year ago

I searched for the file and it doesn't exist anywhere, I can't even edit the folder where it should be (that exist). The solution of the problem would be to install the correct library. The point is, which library do I have to install? I searched for the problem on the web, but the answer is just to update the libraries, which I did, not nothing. The only thing that I can suppose is that I'm missing the correct one. Thank you for your time and your answers

Francesco

jalombar commented 1 year ago

Hi Francesco,

Yeah, I'm not sure then. You could try a different compiler (gfortran, ifort, ...). Maybe your mpirun was built with a compiler that is not compatible with the compiler your using for starsmasher. You can tell what compiler mpirun was made with using

ldd which mpirun

It's important to use ` and not ' as the single quotes. Sorry that I don't have other ideas, but I'll let you know if I think of anything. Please let me know if you find a solution.

Regards, Jamie

On Sun, Feb 5, 2023 at 8:36 PM Francesco Radica @.***> wrote:

I searched for the file and it doesn't exist anywhere, I can't even edit the folder where it should be (that exist). The solution of the problem would be to install the correct library. The point is, which library do I have to install? I searched for the problem on the web, but the answer is just to update the libraries, which I did, not nothing. The only thing that I can suppose is that I'm missing the correct one. Thank you for your time and your answers

Francesco

— Reply to this email directly, view it on GitHub https://github.com/jalombar/starsmasher/issues/5#issuecomment-1418366147, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFN7LA5O76T5FWOMH6NUUF3WWBIRJANCNFSM6AAAAAAUSCVQZE . You are receiving this because you commented.Message ID: @.***>

-- James Lombardi Professor of Physics

Pronouns: he/him/his YouTube Channel: Astronomy not Astrology https://www.youtube.com/channel/UCLn_God_bFIL32XWReIfEzQ Office Hours: Mondays 2:25 - 3:25 pm in Carr 117 Tuesdays 1 - 2:30 pm over Zoom https://allegheny.zoom.us/my/lombardi Wednesdays 2:25 - 3:25 pm in Carr 117 Thursdays 7 - 8:30 pm over Zoom https://allegheny.zoom.us/my/lombardi Fridays 2:25 - 3:25 pm in Carr 117