https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111438
Bug ID: 111438 Summary: Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c) Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gamal.akabani at gmail dot com Target Milestone: --- Hi, First of all, I am no expert, and I am posting a bug for the first time. Please bear with me if my narrative is incomplete. I am running the code "talys" for nuclear reactions. The code runs fine on my old Mac Intel, but the code sometimes crashes in my new Mac Studio M2 Pro. I made contact with the Mac developer team, and I got nowhere, as they claim that the dynamic libraries are now loaded differently. Please see the following link and narrative https://developer.apple.com/forums/thread/722360?login=true ___________________________________________________________ GCC: 13.2.0, GCC, gfortran was installed using homebrew ___________________________________________________________ System: Mac OS 13.5.2 VENTURA XCODE: Version 14.3.1 (14E300c) Command line tools were installed using: xcode-select --install __________________________________________________________ The options given when GCC was configured/built; A script was used with the following commands ${compiler} -c *.f ${compiler} *.o -o talys The executable "talys" was generated without any problems. ___________________________________________________________ The complete command line that triggers the bug; The code runs and executes normally in some cases, while in other cases, it crashes with the following ___________________________________________________________ the compiler output (error messages, warnings, etc.); and the preprocessed file (*.i*) that triggers the bug, generated by adding -save-temps to the complete compilation command, or, in the case of a bug report for the GNAT front end, a complete set of source files (see below). (base) gamalakabani@Gamals-Mac-Studio samples % ./verify *** Running sample case ./a-Ho165-omp1/new dyld[9171]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed dyld[9171]: 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: 9171 Abort trap: 6 $talys < talys.inp > talys.out ___________________________________________________________ The library libSystem.B.dylib is not loading in some instances. ___________________________________________________________ I can further provide more information if you let me know what steps to take. Thank you GA