[MacPorts] #67164: gcc12 @12.2.0_2: gfortran does not find libSystem
MacPorts
noreply at macports.org
Fri Mar 31 01:06:35 UTC 2023
#67164: gcc12 @12.2.0_2: gfortran does not find libSystem
----------------------+--------------------
Reporter: jsalort | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: gcc12 |
----------------------+--------------------
Comment (by kencu):
so my buildbot-installed version is working fine, but it is not configured
right.
{{{
% gcc-mp-12 -v
Using built-in specs.
COLLECT_GCC=gcc-mp-12
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/arm64-apple-darwin22/12.2.0
/lto-wrapper
Target: arm64-apple-darwin22
Configured with:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc12/gcc12/work/gcc-12.2.0/configure
--prefix=/opt/local --build=arm64-apple-darwin22 --enable-
languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc12
--includedir=/opt/local/include/gcc12 --infodir=/opt/local/share/info
--mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-12
--with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-
suffix=-mp-12 --with-gxx-include-dir=/opt/local/include/gcc12/c++/ --with-
gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-
isl=/opt/local --with-zstd=/opt/local --enable-checking=release --disable-
multilib --enable-lto --enable-libstdcxx-time --with-build-config
=bootstrap-debug --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld
--with-ar=/opt/local/bin/ar --with-
bugurl=https://trac.macports.org/newticket --enable-host-shared --with-
darwin-extra-rpath=/opt/local/lib/libgcc --with-libiconv-prefix=/opt/local
--disable-tls --with-gxx-libcxx-include-
dir=/opt/local/libexec/gcc12/libc++/include/c++/v1 --with-
pkgversion='MacPorts gcc12 12.2.0_2+stdlib_flag' --with-
sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.0 (MacPorts gcc12 12.2.0_2+stdlib_flag)
}}}
as you can see, it's configured to look here for the SDK:
{{{
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
}}}
but it is supposed to be configured to look here:
{{{
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
}}}
anyway, mine works because I happen to have something at {{{--with-
sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk}}} that
looks like an SDK:
{{{
% ls -la /Library/Developer/CommandLineTools/SDKs
total 0
drwxr-xr-x 8 root wheel 256 9 Jan 22:50 .
drwxr-xr-x 5 root wheel 160 9 Jan 22:50 ..
lrwxr-xr-x 1 root wheel 14 9 Jan 22:50 MacOSX.sdk -> MacOSX13.1.sdk
drwxr-xr-x 7 root wheel 224 19 Nov 2021 MacOSX12.1.sdk
drwxr-xr-x 7 root wheel 224 9 Jan 22:50 MacOSX12.3.sdk
lrwxr-xr-x 1 root wheel 14 9 Jan 22:49 MacOSX12.sdk -> MacOSX12.3.sdk
drwxr-xr-x 7 root wheel 224 12 Nov 13:18 MacOSX13.1.sdk
lrwxr-xr-x 1 root wheel 14 9 Jan 22:49 MacOSX13.sdk -> MacOSX13.1.sdk
}}}
but that is probably just luck.
--
Ticket URL: <https://trac.macports.org/ticket/67164#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list