Skip to content

LLVM 15.0.0-rc2: compiler_rt does not build out of the box on older macOS: Failed to determine SDK version for "iphonesimulator" SDK #57037

@debohman

Description

@debohman
CMake Error at /tera/tera/debo/Projects/llvm/llvmorg-15.0.0-rc2/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake:73 (message):
  Failed to determine SDK version for "iphonesimulator" SDK
Call Stack (most recent call first):
  /tera/tera/debo/Projects/llvm/llvmorg-15.0.0-rc2/compiler-rt/cmake/builtin-config-ix.cmake:120 (find_darwin_sdk_version)
  CMakeLists.txt:51 (include)


-- Configuring incomplete, errors occurred!
See also "/tera/tera/debo/Projects/llvm/llvmorg-15.0.0-rc2-build/runtimes/builtins-bins/CMakeFiles/CMakeOutput.log".
See also "/tera/tera/debo/Projects/llvm/llvmorg-15.0.0-rc2-build/runtimes/builtins-bins/CMakeFiles/CMakeError.log".
FAILED: runtimes/builtins-stamps/builtins-configure /tera/tera/debo/Projects/llvm/llvmorg-15.0.0-rc2-build/runtimes/builtins-stamps/builtins-configure

Configuration:

cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_EXE_LINKER_FLAGS=-L/usr/local/lib -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind;compiler-rt" ../llvmorg-15.0.0-rc2/llvm

I was able to build it by changing the configuration in build/runtimes/builtins-bins/CMakeCache.txt:

COMPILER_RT_ENABLE_IOS:BOOL=OFF

macOS 10.12.6
cmake version 3.24.0

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions