[MacPorts] #68609: clang-17 @17.0.4 does some nonsense on Sonoma: ld: warning: ignoring file '/opt/local/lib/libunwind.1.dylib': found architecture 'arm64', required architecture 'x86_64'
MacPorts
noreply at macports.org
Wed Nov 1 11:55:54 UTC 2023
#68609: clang-17 @17.0.4 does some nonsense on Sonoma: ld: warning: ignoring file
'/opt/local/lib/libunwind.1.dylib': found architecture 'arm64', required
architecture 'x86_64'
---------------------------+----------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: sonoma, arm64 | Port: clang-17
---------------------------+----------------------
{{{
:info:build [ 29%] Building ASM object projects/compiler-
rt/lib/builtins/CMakeFiles/clang_rt.builtins_arm64e_osx.dir/outline_atomic_helpers.dir/outline_atomic_cas8_1.S.o
:info:build cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/clang-17/work/build/projects
/compiler-rt/lib/builtins &&
/Library/Developer/CommandLineTools/usr/bin/clang -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DL_cas -DMODEL=1 -DSIZE=8
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/clang-17/work
/llvm-project-17.0.4.src/compiler-rt/lib/builtins
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/clang-17/work/build/projects
/compiler-rt/lib/builtins
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/clang-17/work
/llvm-project-17.0.4.src/compiler-rt/lib/builtins
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/clang-17/work/build/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/clang-17/work
/llvm-project-17.0.4.src/llvm/include -O3 -DNDEBUG -arch arm64e -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-
min=10.7 -fPIC -O3 -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-
frame-pointer -DHAS_ASM_LSE -Werror=format-nonliteral
-DDONT_DEFINE_EPRINTF -arch arm64e -target arm64e-apple-macos10.7 -darwin-
target-variant arm64e-apple-ios13.1-macabi -o
CMakeFiles/clang_rt.builtins_arm64e_osx.dir/outline_atomic_helpers.dir/outline_atomic_cas8_1.S.o
-c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/clang-17/work/build/projects
/compiler-
rt/lib/builtins/outline_atomic_helpers.dir/outline_atomic_cas8_1.S
:info:build ld: warning: ignoring file '/opt/local/lib/libunwind.1.dylib':
found architecture 'arm64', required architecture 'x86_64'
:info:build ld: Undefined symbols:
:info:build __Unwind_RaiseException, referenced from:
:info:build _wrap__Unwind_RaiseException in asan_interceptors.cpp.o
:info:build substitution__Unwind_RaiseException in
asan_interceptors.cpp.o
:info:build clang: error: linker command failed with exit code 1 (use -v
to see invocation)
}}}
Where is this `x86_64` coming from?
I was simply upgrading what I have. 17.0.3 built with no issues:
{{{
svacchanda at 43-19 ~ % port -v installed libunwind
The following ports are currently installed:
libunwind @5.0.1_0 (active) requested_variants='' platform='darwin 23'
archs='arm64' date='2023-10-23T10:31:41+0800'
svacchanda at 43-19 ~ % port -v installed clang-17
The following ports are currently installed:
clang-17 @17.0.1_0+analyzer requested_variants='' platform='darwin 23'
archs='arm64' date='2023-10-13T21:56:43+0800'
clang-17 @17.0.3_0+analyzer (active) requested_variants=''
platform='darwin 23' archs='arm64' date='2023-10-18T04:50:53+0800'
svacchanda at 43-19 ~ % port -v installed llvm-17
The following ports are currently installed:
llvm-17 @17.0.1_0 requested_variants='' platform='darwin 23'
archs='arm64' date='2023-10-13T19:13:55+0800'
llvm-17 @17.0.3_0 requested_variants='' platform='darwin 23'
archs='arm64' date='2023-10-17T22:39:17+0800'
llvm-17 @17.0.4_0 (active) requested_variants='' platform='darwin 23'
archs='arm64' date='2023-11-01T19:47:36+0800'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/68609>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list