[MacPorts] #65055: Broken symbolic link libgcc_ext.10.5.dylib and libgcc_ext.10.4.dylib
MacPorts
noreply at macports.org
Sun Apr 24 14:31:27 UTC 2022
#65055: Broken symbolic link libgcc_ext.10.5.dylib and libgcc_ext.10.4.dylib
--------------------------+--------------------
Reporter: Serge3leo | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords:
Port: gcc9, gcc10 |
--------------------------+--------------------
Comment (by Serge3leo):
Replying to [comment:4 kencu]:
> could you undo your workarounds and try this, so we can see what is
happening here exactly?
>
> Thanks!
>
> {{{
> gfortran-mp-9 -v -Wl,-v ref-hello_world.f
> }}}
{{{
$ gfortran-mp-9 -v -Wl,-v ref-hello_world.f
Driving: gfortran-mp-9 -v -Wl,-v ref-hello_world.f -mmacosx-version-
min=10.15.0 -asm_macosx_version_min=10.15 -l gfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran-mp-9
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin19/9.4.0
/lto-wrapper
Target: x86_64-apple-darwin19
Configured with:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc9/gcc9/work/gcc-9.4.0/configure
--prefix=/opt/local --build=x86_64-apple-darwin19 --enable-
languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc9
--includedir=/opt/local/include/gcc9 --infodir=/opt/local/share/info
--mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-9 --with-
local-prefix=/opt/local --with-system-zlib --disable-nls --program-
suffix=-mp-9 --with-gxx-include-dir=/opt/local/include/gcc9/c++/ --with-
gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-
isl=/opt/local --enable-stage1-checking --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 --disable-tls --with-pkgversion='MacPorts gcc9
9.4.0_1' --with-
sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
Thread model: posix
gcc version 9.4.0 (MacPorts gcc9 9.4.0_1)
COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.15.0'
'-asm_macosx_version_min=10.15' '-shared-libgcc' '-mtune=core2'
/opt/local/libexec/gcc/x86_64-apple-darwin19/9.4.0/f951 ref-hello_world.f
-ffixed-form -fPIC -quiet -dumpbase ref-hello_world.f -mmacosx-version-
min=10.15.0 -mtune=core2 -auxbase ref-hello_world -version -fintrinsic-
modules-path /opt/local/lib/gcc9/gcc/x86_64-apple-darwin19/9.4.0/finclude
-o /var/folders/wy/z0gbkfgs7mv24ryqkdm90rm40009rh/T//cccr8vn7.s
GNU Fortran (MacPorts gcc9 9.4.0_1) version 9.4.0 (x86_64-apple-darwin19)
compiled by GNU C version 9.4.0, GMP version 6.2.1, MPFR version
4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran2008 (MacPorts gcc9 9.4.0_1) version 9.4.0 (x86_64-apple-
darwin19)
compiled by GNU C version 9.4.0, GMP version 6.2.1, MPFR version
4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.15.0' '-shared-libgcc'
'-mtune=core2'
/opt/local/bin/as -arch x86_64 -v -force_cpusubtype_ALL -mmacosx-version-
min=10.15 -o /var/folders/wy/z0gbkfgs7mv24ryqkdm90rm40009rh/T//ccG5NBYg.o
/var/folders/wy/z0gbkfgs7mv24ryqkdm90rm40009rh/T//cccr8vn7.s
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
-cc1as -triple x86_64-apple-macosx10.15.0 -filetype obj -main-file-name
cccr8vn7.s -target-cpu penryn -fdebug-compilation-dir
/Users/leo/soft/fortran/ratfor -dwarf-debug-producer "Apple clang version
12.0.0 (clang-1200.0.32.29)" -dwarf-version=4 -mrelocation-model pic -o
/var/folders/wy/z0gbkfgs7mv24ryqkdm90rm40009rh/T//ccG5NBYg.o
/var/folders/wy/z0gbkfgs7mv24ryqkdm90rm40009rh/T//cccr8vn7.s
Reading specs from /opt/local/lib/gcc9/gcc/x86_64-apple-
darwin19/9.4.0/../../../libgfortran.spec
rename spec lib to liborig
COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.15.0' '-shared-libgcc'
'-mtune=core2'
COMPILER_PATH=/opt/local/libexec/gcc/x86_64-apple-
darwin19/9.4.0/:/opt/local/libexec/gcc/x86_64-apple-
darwin19/9.4.0/:/opt/local/libexec/gcc/x86_64-apple-
darwin19/:/opt/local/lib/gcc9/gcc/x86_64-apple-
darwin19/9.4.0/:/opt/local/lib/gcc9/gcc/x86_64-apple-darwin19/
LIBRARY_PATH=/opt/local/lib/gcc9/gcc/x86_64-apple-
darwin19/9.4.0/:/opt/local/lib/gcc9/gcc/x86_64-apple-
darwin19/9.4.0/../../../
COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.15.0' '-shared-libgcc'
'-mtune=core2'
/opt/local/libexec/gcc/x86_64-apple-darwin19/9.4.0/collect2 -syslibroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/
-dynamic -arch x86_64 -macosx_version_min 10.15.0
-weak_reference_mismatches non-weak -o a.out
-L/opt/local/lib/gcc9/gcc/x86_64-apple-darwin19/9.4.0
-L/opt/local/lib/gcc9/gcc/x86_64-apple-darwin19/9.4.0/../../.. -v
/var/folders/wy/z0gbkfgs7mv24ryqkdm90rm40009rh/T//ccG5NBYg.o -lgfortran
-lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm -lgcc_ext.10.5 -lgcc -lSystem
-no_compact_unwind -v
collect2 version 9.4.0
/opt/local/bin/ld -syslibroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/
-dynamic -arch x86_64 -macosx_version_min 10.15.0
-weak_reference_mismatches non-weak -o a.out
-L/opt/local/lib/gcc9/gcc/x86_64-apple-darwin19/9.4.0
-L/opt/local/lib/gcc9/gcc/x86_64-apple-darwin19/9.4.0/../../.. -v
/var/folders/wy/z0gbkfgs7mv24ryqkdm90rm40009rh/T//ccG5NBYg.o -lgfortran
-lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm -lgcc_ext.10.5 -lgcc -lSystem
-no_compact_unwind -v
@(#)PROGRAM:ld PROJECT:ld64-609.8
BUILD 15:07:46 Dec 18 2020
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386
x86_64 x86_64h armv6m armv7k armv7m armv7em
@(#)PROGRAM:ld PROJECT:ld64-609.8
BUILD 15:07:46 Dec 18 2020
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386
x86_64 x86_64h armv6m armv7k armv7m armv7em
Library search paths:
/opt/local/lib/gcc9/gcc/x86_64-apple-darwin19/9.4.0
/opt/local/lib/gcc9
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib
Framework search paths:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/
ld: library not found for -lgcc_ext.10.5
collect2: error: ld returned 1 exit status
}}}
> ...we can see what is happening here exactly?
As I understand it, the old versions port "libgcc" provided files
"/opt/local/lib/libgcc/libgcc_s.10.[45].dylib", and port "gcc9" contained
symbolic links to them.
But, when switching to gcс11, something has changed.
--
Ticket URL: <https://trac.macports.org/ticket/65055#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list