Opened 13 months ago
Closed 12 months ago
#68609 closed defect (duplicate)
libunwind: Causes other ports to fail to build
Reported by: | barracuda156 | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | sonoma, arm64 | Cc: | |
Port: | libunwind |
Description
: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@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@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@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'
Attachments (1)
Change History (5)
Changed 13 months ago by barracuda156
Attachment: | clang-17.log.txt added |
---|
comment:1 follow-up: 2 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 13 months ago by barracuda156
Replying to ryandesign:
Having libunwind active causes problems for many ports. Try deactivating it.
Ok, rerunning now. If it helps, we should add a conflict.
comment:3 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to jeremyhu |
---|---|
Port: | libunwind added; clang-17 removed |
Status: | new → assigned |
Summary: | 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' → libunwind: Causes other ports to fail to build |
Many ports probably conflict with libunwind being active so we would have to add the conflict to many ports. It would be better, as has been suggested many times over the years, for libunwind to be moved so that it is not installed in /opt/local/lib but instead somewhere under /opt/local/libexec and the currently four ports that say they depend on it can be modified to find it there, if indeed they truly require it and the dependency wasn't just added due to a misunderstanding.
comment:4 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Duplicate of #66250.
Having libunwind active causes problems for many ports. Try deactivating it.