public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/111438] New: Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c)
@ 2023-09-17  3:16 gamal.akabani at gmail dot com
  2023-09-17  3:30 ` [Bug target/111438] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gamal.akabani at gmail dot com @ 2023-09-17  3:16 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/111438] Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c)
  2023-09-17  3:16 [Bug fortran/111438] New: Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c) gamal.akabani at gmail dot com
@ 2023-09-17  3:30 ` pinskia at gcc dot gnu.org
  2023-09-17  3:51 ` gamal.akabani at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-17  3:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111438

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|fortran                     |target
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>GCC: 13.2.0, GCC, gfortran was installed using homebrew
> but the code sometimes crashes in my new Mac Studio M2 Pro.

GCC upstream does not have support for aarch64-darwin yet.
So you will need to report this first to homebrew.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/111438] Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c)
  2023-09-17  3:16 [Bug fortran/111438] New: Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c) gamal.akabani at gmail dot com
  2023-09-17  3:30 ` [Bug target/111438] " pinskia at gcc dot gnu.org
@ 2023-09-17  3:51 ` gamal.akabani at gmail dot com
  2023-09-17  3:58 ` pinskia at gcc dot gnu.org
  2023-09-17  4:00 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: gamal.akabani at gmail dot com @ 2023-09-17  3:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111438

--- Comment #2 from Gamal Akabani <gamal.akabani at gmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> >GCC: 13.2.0, GCC, gfortran was installed using homebrew
> > but the code sometimes crashes in my new Mac Studio M2 Pro.
> 
> GCC upstream does not have support for aarch64-darwin yet.
> So you will need to report this first to homebrew.

Dear Andrew,

Thank you for your prompt response. I am a bit confused.
So the gfortran compiler offered for Apple Silicon machines using the link
below is incompatible? 
Do I also need to report this bug to Git Hub, gfortran-for-macOS?

https://github.com/fxcoudert/gfortran-for-macOS/releases

If you could elaborate, I would be very appreciative. 

Thank you

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/111438] Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c)
  2023-09-17  3:16 [Bug fortran/111438] New: Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c) gamal.akabani at gmail dot com
  2023-09-17  3:30 ` [Bug target/111438] " pinskia at gcc dot gnu.org
  2023-09-17  3:51 ` gamal.akabani at gmail dot com
@ 2023-09-17  3:58 ` pinskia at gcc dot gnu.org
  2023-09-17  4:00 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-17  3:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111438

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Gamal Akabani from comment #2)
> (In reply to Andrew Pinski from comment #1)
> > >GCC: 13.2.0, GCC, gfortran was installed using homebrew
> > > but the code sometimes crashes in my new Mac Studio M2 Pro.
> > 
> > GCC upstream does not have support for aarch64-darwin yet.
> > So you will need to report this first to homebrew.
> 
> Dear Andrew,
> 
> Thank you for your prompt response. I am a bit confused.
> So the gfortran compiler offered for Apple Silicon machines using the link
> below is incompatible? 
> Do I also need to report this bug to Git Hub, gfortran-for-macOS?
>  
> https://github.com/fxcoudert/gfortran-for-macOS/releases
> 
> If you could elaborate, I would be very appreciative. 

Yes you should report it to that github or to homebrew. The support for Mac OS
ARM64 is not supported in the sources in gcc.gnu.org version.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/111438] Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c)
  2023-09-17  3:16 [Bug fortran/111438] New: Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c) gamal.akabani at gmail dot com
                   ` (2 preceding siblings ...)
  2023-09-17  3:58 ` pinskia at gcc dot gnu.org
@ 2023-09-17  4:00 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-17  4:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111438

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Also see
https://github.com/containerd/containerd/discussions/5525#discussioncomment-2685649

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-17  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-17  3:16 [Bug fortran/111438] New: Missing libSystem.B.dylib during execution - Mac OS 13.5.2 (22G91), XCODE: Version 14.3.1 (14E300c) gamal.akabani at gmail dot com
2023-09-17  3:30 ` [Bug target/111438] " pinskia at gcc dot gnu.org
2023-09-17  3:51 ` gamal.akabani at gmail dot com
2023-09-17  3:58 ` pinskia at gcc dot gnu.org
2023-09-17  4:00 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).