Opened 4 months ago

Closed 4 months ago

Last modified 4 months ago

#70333 closed defect (fixed)

llvm-18 fails to build against SDK 11.3

Reported by: lukaso (Lukas Oberhuber) Owned by: Chris Jones <jonesc@…>
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: llvm-18

Description

It appears this change has broken llvm-18 building against the 11.3 SDK.

https://github.com/macports/macports-ports/commit/5153465354935f776add90ea8c8d342a953649d2

It was working a few days ago.

:info:configure CMake Error at tools/xcode-toolchain/CMakeLists.txt:52 (string):
:info:configure   string sub-command REGEX, mode MATCH needs at least 5 arguments total to
:info:configure   command.
:info:configure CMake Warning at tools/xcode-toolchain/CMakeLists.txt:60 (message):
:info:configure   Failed to detect the version of an installed copy of Xcode, falling back to
:info:configure   highest supported version.  Set XCODE_VERSION to override.
:info:configure CMake Error at tools/xcode-toolchain/CMakeLists.txt:80 (message):
:info:configure   Could not identify toolchain dir
:info:configure -- Configuring incomplete, errors occurred!
:info:configure Command failed:  cd "/Users/lukasoberhuber/macports-gimp3-arm64/var/macports/build/_Users_lukasoberhuber_macports-gimp3-arm64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-18/llvm-18/work/build" && /Users/lukasoberhuber/macports-gimp3-arm64/bin/cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/Users/lukasoberhuber/macports-gimp3-arm64/libexec/llvm-18" -DCMAKE_INSTALL_NAME_DIR="/Users/lukasoberhuber/macports-gimp3-arm64/libexec/llvm-18/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/Users/lukasoberhuber/macports-gimp3-arm64;/Users/lukasoberhuber/macports-gimp3-arm64/libexec/llvm-18;/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=ninja -DCMAKE_MODULE_PATH="/Users/lukasoberhuber/macports-gimp3-arm64/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/Users/lukasoberhuber/macports-gimp3-arm64/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=/Users/lukasoberhuber/macports-gimp3-arm64/include -DFFI_LIBRARY_DIR=/Users/lukasoberhuber/macports-gimp3-arm64/lib -DLLVM_CREATE_XCODE_TOOLCHAIN=ON -DCOMPILER_RT_ENABLE_IOS=OFF -DPython3_EXECUTABLE=/Users/lukasoberhuber/macports-gimp3-arm64/bin/python3.12 -DLLVM_ENABLE_PROJECTS="polly" -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk" -DCMAKE_STRIP:FILEPATH=/bin/echo /Users/lukasoberhuber/macports-gimp3-arm64/var/macports/build/_Users_lukasoberhuber_macports-gimp3-arm64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-18/llvm-18/work/llvm-project-18.1.8.src/llvm 

Attachments (1)

llvm-18.main.log (167.3 KB) - added by lukaso (Lukas Oberhuber) 4 months ago.

Download all attachments as: .zip

Change History (6)

Changed 4 months ago by lukaso (Lukas Oberhuber)

Attachment: llvm-18.main.log added

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

OK, this option needs more nuancing. Will remove for now.

comment:2 Changed 4 months ago by lukaso (Lukas Oberhuber)

Thanks!

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

Owner: set to Chris Jones <jonesc@…>
Resolution: fixed
Status: newclosed

In e71239c4dcced07e3196fcbc5cab241d25ca81d7/macports-ports (master):

LLVM 18: remove LLVM_CREATE_XCODE_TOOLCHAIN=ON

Closes: #70333

comment:4 Changed 4 months ago by jmroot (Joshua Root)

Summary: llvm-18 fails to build against SDL 11.3llvm-18 fails to build against SDK 11.3

comment:5 Changed 4 months ago by jmroot (Joshua Root)

Port: llvm-18 added
Note: See TracTickets for help on using tickets.