[MacPorts] #67164: gcc12 gfortran does not find libSystem

MacPorts noreply at macports.org
Wed Mar 29 20:00:34 UTC 2023

#67164: gcc12 gfortran does not find libSystem
 Reporter:  jsalort   |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.8.1
 Keywords:  gfortran  |       Port:  gcc12
 I get a linker error while trying to use gfortran-mp-12 on arm Ventura:

 $ port version
 Version: 2.8.1
 $ port installed gcc12
 The following ports are currently installed:
   gcc12 @12.2.0_2+stdlib_flag (active)
 $ cat hello.f90
 program hello
     print*, 'Hello, World!'
 end program hello
 $ gfortran-mp-12 hello.f90 -o hello
 ld: library not found for -lSystem
 collect2: error: ld returned 1 exit status

Ticket URL: <https://trac.macports.org/ticket/67164>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list