missing libSystem.B.dylib

I just transitioned to an M2 silicon and compiled some of my previous programs. However, I am running into some execution problems when my code is not able to find the libSystem.B.dylib. I am runing Apple M2 Max, OS 13.5.2 (22G91)

I installed XCODE and command line utilities as normal and installed gcc/gfortran using homebrew. The resulting fault text is below

dyld[13777]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[13777]: Library not loaded: /usr/lib/libSystem.B.dylib Referenced from: <DD0D5B50-62AD-3AB4-942A-1AA665A235F4> /Users/gamalakabani/Applications/TALYS_CODE/talys/bin/talys 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) ./verify: line 12: 13777 Abort trap: 6 $talys < talys.inp > talys.out

Is this an issue with homebrew gcc?

Any help will be appreciated.

Thanks

  • GNU Fortran (GCC) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  • link

Add a Comment

Replies

Dear Quinn,

I followed the link, and I am still lost. I am not an expert on these matters (old school). I can't understand the narrative given in the link. I could elaborate on my issue further if you are merciful to this lost soul.

Thanks

  • I'll reply on that thread.

Add a Comment

I also encountered this problem. Xcode14.1 reported an error when running on iOS11 system, prompting: dyld: Symbol not found: OBJC_CLASS$_OS_dispatch_queue_serial Expected in: /usr/lib/libSystem.B.dylib

I'm having the same issue. Did you find a solution?