Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#65463 closed defect (fixed)

clang-devel @20220701-afd9f422: failed to configure

Reported by: mopihopi Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), cjones051073 (Chris Jones)
Port: clang-devel

Description

clang-devel @20220701-afd9f422 fails to configure.

macOS 12.4 21F79, Xcode 13.4.1 13F100

% sudo port install clang-devel
--->  Computing dependencies for clang-devel
--->  Fetching archive for clang-devel
--->  Attempting to fetch clang-devel-20220701-afd9f422_0+analyzer+libstdcxx.darwin_21.x86_64.tbz2 from https://packages.macports.org/clang-devel
--->  Attempting to fetch clang-devel-20220701-afd9f422_0+analyzer+libstdcxx.darwin_21.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/clang-devel
--->  Attempting to fetch clang-devel-20220701-afd9f422_0+analyzer+libstdcxx.darwin_21.x86_64.tbz2 from https://ema.uk.packages.macports.org/clang-devel
--->  Fetching distfiles for clang-devel
--->  Verifying checksums for clang-devel
--->  Extracting clang-devel
--->  Applying patches to clang-devel
--->  Configuring clang-devel
Error: Failed to configure clang-devel: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/work/build/CMakeFiles/CMakeError.log
Error: Failed to configure clang-devel: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port clang-devel failed

Attachments (2)

main.log (195.7 KB) - added by mopihopi 22 months ago.
CMakeError.log (143.8 KB) - added by mopihopi 22 months ago.

Download all attachments as: .zip

Change History (6)

Changed 22 months ago by mopihopi

Attachment: main.log added

Changed 22 months ago by mopihopi

Attachment: CMakeError.log added

comment:1 Changed 22 months ago by cjones051073 (Chris Jones)

primary issue appears to be with handling the SDK

-- Checking DARWIN_iphonesimulator_SYSROOT - ''
-- Checking DARWIN_iphoneos_SYSROOT - ''
-- Checking DARWIN_watchsimulator_SYSROOT - ''
-- Checking DARWIN_watchos_SYSROOT - ''
-- Checking DARWIN_appletvsimulator_SYSROOT - ''
-- Checking DARWIN_appletvos_SYSROOT - ''
-- Found arm64 support in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/SDKSettings.plist
-- Found arm64e support in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/SDKSettings.plist
CMake Error at /opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_lang_llvm-devel/clang-devel/work/llvm-project-afd9f422e459fffc98b4d36927b92be7c06f54c4/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake:73 (message):
  Failed to determine SDK version for "iphonesimulator" SDK
Call Stack (most recent call first):
  /opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_lang_llvm-devel/clang-devel/work/llvm-project-afd9f422e459fffc98b4d36927b92be7c06f54c4/compiler-rt/cmake/builtin-config-ix.cmake:120 (find_darwin_sdk_version)
  /opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_lang_llvm-devel/clang-devel/work/llvm-project-afd9f422e459fffc98b4d36927b92be7c06f54c4/compiler-rt/lib/builtins/CMakeLists.txt:51 (include)

it be worth checking if its just when the CLT is used or not...

comment:2 Changed 22 months ago by cjones051073 (Chris Jones)

Adding

use_xcode  yes

to the port seems to fix the issue here

-- Checking DARWIN_macosx_SYSROOT - '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk'
-- Checking DARWIN_iphonesimulator_SYSROOT - '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk'
-- Checking DARWIN_iphoneos_SYSROOT - '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk'
-- Checking DARWIN_watchsimulator_SYSROOT - '/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator8.5.sdk'
-- Checking DARWIN_watchos_SYSROOT - '/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS8.5.sdk'
-- Checking DARWIN_appletvsimulator_SYSROOT - '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator15.4.sdk'
-- Checking DARWIN_appletvos_SYSROOT - '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS15.4.sdk'

port still does not configure though, but for a different reason....

comment:3 Changed 22 months ago by Chris Jones <jonesc@…>

Resolution: fixed
Status: assignedclosed

In 15d5e6a4fc49fbe0a7ca4b00acf5975520537062/macports-ports (master):

llvm-devel: Force use of Xcode SDK
Closes: #65463

comment:4 Changed 22 months ago by mopihopi

The new failure includes the following in main.log:

:info:configure CMake Error at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/work/llvm-project-4334cbd49b69ea036e7c9551c6177cd29b02c312/compiler-rt/cmake/Modules/AddCompilerRT.cmake:69 (add_library):
:info:configure   Cannot find source file:
:info:configure     c_api.h
:info:configure   Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
:info:configure   .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
:info:configure Call Stack (most recent call first):
:info:configure   /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/work/llvm-project-4334cbd49b69ea036e7c9551c6177cd29b02c312/compiler-rt/lib/orc/CMakeLists.txt:72 (add_compiler_rt_object_libraries)
:info:configure CMake Error at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/work/llvm-project-4334cbd49b69ea036e7c9551c6177cd29b02c312/compiler-rt/cmake/Modules/AddCompilerRT.cmake:69 (add_library):
:info:configure   No SOURCES given to target: RTOrc.osx
:info:configure Call Stack (most recent call first):
:info:configure   /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/work/llvm-project-4334cbd49b69ea036e7c9551c6177cd29b02c312/compiler-rt/lib/orc/CMakeLists.txt:72 (add_compiler_rt_object_libraries)
:info:configure CMake Error at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/work/llvm-project-4334cbd49b69ea036e7c9551c6177cd29b02c312/compiler-rt/cmake/Modules/AddCompilerRT.cmake:362 (add_library):
:info:configure   No SOURCES given to target: clang_rt.orc_osx
:info:configure Call Stack (most recent call first):
:info:configure   /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/work/llvm-project-4334cbd49b69ea036e7c9551c6177cd29b02c312/compiler-rt/lib/orc/CMakeLists.txt:80 (add_compiler_rt_runtime)
:info:configure CMake Generate step failed.  Build files cannot be regenerated correctly.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/opt/local/libexec/llvm-devel" -DCMAKE_INSTALL_NAME_DIR="/opt/local/libexec/llvm-devel/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local/libexec/llvm-devel;/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 -DPython3_EXECUTABLE=/opt/local/bin/python3.10 -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;compiler-rt;libcxx;libcxxabi;lld" -DLIBCXX_ENABLE_SHARED=ON -DLIBCXX_INSTALL_LIBRARY=ON -DCMAKE_LINKER=/opt/local/bin/ld -DCLANG_INCLUDE_TESTS=OFF -DCLANG_ENABLE_STATIC_ANALYZER=ON -DCLANG_ENABLE_ARCMT=ON -DDARWIN_PREFER_PUBLIC_SDK=ON -DLLVM_BUILD_RUNTIME=ON -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="12.0" -DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/work/llvm-project-4334cbd49b69ea036e7c9551c6177cd29b02c312/llvm
:info:configure Exit code: 1
:error:configure Failed to configure clang-devel: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-devel/clang-devel/work/build/CMakeFiles/CMakeError.log
:error:configure Failed to configure clang-devel: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"

All of the buildbot builds at https://ports.macports.org/port/clang-devel/builds/ failed as well.

Note: See TracTickets for help on using tickets.