Re: [MacPorts] #70866: gcc14 doesn’t build for x86_64 on macOS 15 (Xcode 16): “Undefined symbols for architecture x86_64” while linking libgcc_s.1.dylib
MacPorts
noreply at macports.org
Wed Sep 25 14:00:05 UTC 2024
#70866: gcc14 doesn’t build for x86_64 on macOS 15 (Xcode 16): “Undefined symbols
for architecture x86_64” while linking libgcc_s.1.dylib
---------------------------+-----------------------------------
Reporter: markmentovai | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sonoma sequoia x86_64
Port: gcc14 |
---------------------------+-----------------------------------
Comment (by dbl001):
I also tried building from branch:
https://github.com/iains/gcc-14-branch/releases/tag/gcc-14.2-darwin-r1 on
an Intel 2021 iMac 27" running macOS Sequoia.
There are there patch files ... they didn't apply cleanly so I manually
added to libgcc/config.host
{{{
x86_64-*-darwin2[0-2]*)
tmake_file="t-darwin-min-11 t-darwin-libgccs1 $tmake_file"
;;
}}}
Then,
{{{
$ mkdir build
$ cd build
$ ../configure --with-
sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
$ make -j4
}}}
Finally,
{{{
...
rm libgcc_s.1.1.dylib_T*
MLIBS=`/Users/davidlaxer/Downloads/gcc-14-branch-
gcc-14.2-darwin-r1/build/./gcc/xgcc -B/Users/davidlaxer/Downloads/gcc-14
-branch-gcc-14.2-darwin-r1/build/./gcc/ -B/usr/local/x86_64-apple-
darwin24.0.0/bin/ -B/usr/local/x86_64-apple-darwin24.0.0/lib/ -isystem
/usr/local/x86_64-apple-darwin24.0.0/include -isystem /usr/local/x86_64
-apple-darwin24.0.0/sys-include -fno-checking --print-multi-lib | sed -e
's/;.*$//'` ; \
for mlib in $MLIBS ; do \
cp ../${mlib}/libgcc/${mlib}/libgcc_s.dylib \
./libgcc_s.1.1.dylib_T_${mlib} || exit 1 ; \
arch=`lipo -info libgcc_s.1.1.dylib_T_${mlib} | sed -e 's/.*:\
//'` ; \
/Users/davidlaxer/Downloads/gcc-14-branch-
gcc-14.2-darwin-r1/build/./gcc/xgcc -B/Users/davidlaxer/Downloads/gcc-14
-branch-gcc-14.2-darwin-r1/build/./gcc/ -B/usr/local/x86_64-apple-
darwin24.0.0/bin/ -B/usr/local/x86_64-apple-darwin24.0.0/lib/ -isystem
/usr/local/x86_64-apple-darwin24.0.0/include -isystem /usr/local/x86_64
-apple-darwin24.0.0/sys-include -fno-checking -arch ${arch}
-nodefaultlibs -dynamiclib -nodefaultrpaths \
-o libgcc_s.1.dylib_T_${mlib} \
-Wl,-reexport_library,libgcc_s.1.1.dylib_T_${mlib} \
-lSystem \
-Wl,-reexported_symbols_list,../../../libgcc/config/darwin-
unwind.ver \
-install_name @rpath/libgcc_s.1.dylib \
-compatibility_version 1 -current_version 1.1 ; \
done
Undefined symbols for architecture x86_64:
"___deregister_frame_info", referenced from:
<initial-undefines>
"___deregister_frame_info_bases", referenced from:
<initial-undefines>
"___register_frame_info", referenced from:
<initial-undefines>
"___register_frame_info_bases", referenced from:
<initial-undefines>
"___register_frame_info_table", referenced from:
<initial-undefines>
"___register_frame_info_table_bases", referenced from:
<initial-undefines>
"___register_frame_table", referenced from:
<initial-undefines>
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[3]: *** [libgcc_s.1.dylib] Error 1
make[2]: *** [all-stage1-target-libgcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70866#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list