#68933 closed defect (duplicate)

Failed upgrade llvm-17 on macOS 14.2

Reported by: shuxiao9058 (Aaron Ji) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: libunwind cmake llvm-17

Description

--->  Configuring llvm-17
Error: llvm-17 cannot be built while libunwind is active.
Error: Please forcibly deactivate libunwind, e.g. by running:
Error:
Error:     sudo port -f deactivate libunwind
Error:
Error: Then try again. You can reactivate libunwind again later.
Error: Failed to configure llvm-17: libunwind is active
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/llvm-17/main.log for details.
Error: rev-upgrade failed: Error rebuilding vte
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

But after deactive libunwind also failed.

error message

:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/llvm-17/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/opt/local/libexec/llvm-17" -DCMAKE_INSTALL_NAME_DIR="/opt/local/libexec/llvm-17/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local/libexec/llvm-17;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF -Wno-dev -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_ENABLE_FFI=ON -DFFI_INCLUDE_DIR=/opt/local/include -DFFI_LIBRARY_DIR=/opt/local/lib -DCOMPILER_RT_ENABLE_IOS=OFF -DPython3_EXECUTABLE=/opt/local/bin/python3.11 -DLLVM_ENABLE_PROJECTS="polly" -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="14.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/llvm-17/work/llvm-project-17.0.5.src/llvm 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/llvm-17/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/opt/local/libexec/llvm-17" -DCMAKE_INSTALL_NAME_DIR="/opt/local/libexec/llvm-17/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local/libexec/llvm-17;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF -Wno-dev -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_ENABLE_FFI=ON -DFFI_INCLUDE_DIR=/opt/local/include -DFFI_LIBRARY_DIR=/opt/local/lib -DCOMPILER_RT_ENABLE_IOS=OFF -DPython3_EXECUTABLE=/opt/local/bin/python3.11 -DLLVM_ENABLE_PROJECTS="polly" -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="14.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/llvm-17/work/llvm-project-17.0.5.src/llvm 
:info:configure dyld[60470]: Library not loaded: /opt/local/lib/libunwind.1.dylib
:info:configure   Referenced from: <E499065C-0A14-3428-96EC-F6EC4F5D56A5> /opt/local/bin/cmake
:info:configure   Reason: tried: '/opt/local/lib/libunwind.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libunwind.1.dylib' (no such file), '/opt/local/lib/libunwind.1.dylib' (no such file)
:info:configure sh: line 1: 60470 Abort trap: 6           /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/opt/local/libexec/llvm-17" -DCMAKE_INSTALL_NAME_DIR="/opt/local/libexec/llvm-17/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local/libexec/llvm-17;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF -Wno-dev -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_ENABLE_FFI=ON -DFFI_INCLUDE_DIR=/opt/local/include -DFFI_LIBRARY_DIR=/opt/local/lib -DCOMPILER_RT_ENABLE_IOS=OFF -DPython3_EXECUTABLE=/opt/local/bin/python3.11 -DLLVM_ENABLE_PROJECTS="polly" -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="14.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/llvm-17/work/llvm-project-17.0.5.src/llvm
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/llvm-17/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/opt/local/libexec/llvm-17" -DCMAKE_INSTALL_NAME_DIR="/opt/local/libexec/llvm-17/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local/libexec/llvm-17;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF -Wno-dev -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_ENABLE_FFI=ON -DFFI_INCLUDE_DIR=/opt/local/include -DFFI_LIBRARY_DIR=/opt/local/lib -DCOMPILER_RT_ENABLE_IOS=OFF -DPython3_EXECUTABLE=/opt/local/bin/python3.11 -DLLVM_ENABLE_PROJECTS="polly" -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="14.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-17/llvm-17/work/llvm-project-17.0.5.src/llvm 
:info:configure Exit code: 134
:error:configure Failed to configure llvm-17: configure failure: command execution failed
:debug:configure Error code: NONE

Attachments (1)

main.log (354.8 KB) - added by shuxiao9058 (Aaron Ji) 11 months ago.

Download all attachments as: .zip

Change History (4)

Changed 11 months ago by shuxiao9058 (Aaron Ji)

Attachment: main.log added

comment:1 Changed 11 months ago by jmroot (Joshua Root)

Port: libunwind cmake added

Apparently your cmake was built with libunwind active and now needs to be rebuilt to correctly link with the system libunwind. See #66250.

comment:2 Changed 11 months ago by shuxiao9058 (Aaron Ji)

Thanks a lot, the issue disappeared after recompiling cmake.

comment:3 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.