I have no idea really why, I am building it like this now and then it works. OK granted its not the standard repository, but i don't have any changes in the compiler runtime part and the other four architectures go through fine.
CC=clang \
CXX=clang++ \
LLVM_VERSION=21.1.8.1 \
LLVM_REPOSITORY=https://github.com/mulle-cc/mulle-clang-project.git \
LLVM_BUILD_TYPE=Release \
TOOLCHAIN_ARCHS="i686 x86_64 armv7 aarch64" \
./build-all.sh /opt/mulle-clang-project-windows/21.1.8.1
Otherwise the build stops with:
...
[413/413] Linking C static library lib/windows/libclang_rt.builtins-aarch64.a
-- Install configuration: "Release"
-- Installing: /opt/mulle-clang-project-windows/21.1.8.1/lib/clang/20/lib/windows/libclang_rt.builtins-aarch64.a
-- The C compiler identification is Clang 20.1.4
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /opt/mulle-clang-project-windows/21.1.8.1/bin/arm64ec-w64-mingw32-clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/mulle-clang-project-windows/21.1.8.1/bin/arm64ec-w64-mingw32-clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for unwind.h
-- Looking for unwind.h - found
-- Looking for rpc/xdr.h
-- Looking for rpc/xdr.h - not found
-- Could NOT find LLVM (missing: LLVM_DIR)
CMake Warning at /home/src/srcO/MulleFoundation/MulleObjCOSFoundation/research/llvm-mingw/llvm-project/compiler-rt/cmake/Modules/CompilerRTUtils.cmake:314 (message):
UNSUPPORTED COMPILER-RT CONFIGURATION DETECTED: LLVM cmake package not
found.
Reconfigure with -DLLVM_CMAKE_DIR=/path/to/llvm.
Call Stack (most recent call first):
CMakeLists.txt:29 (load_llvm_config)
-- LLVM_MAIN_SRC_DIR: "/home/src/srcO/MulleFoundation/MulleObjCOSFoundation/research/llvm-mingw/llvm-project/llvm"
-- Attempting to mock the changes made by LLVMConfig.cmake
-- LLVM_CMAKE_DIR: "/home/src/srcO/MulleFoundation/MulleObjCOSFoundation/research/llvm-mingw/llvm-project/llvm/cmake/modules"
-- Using CMAKE_C_COMPILER_TARGET (arm64ec-w64-windows-gnu) as LLVM_TARGET_TRIPLE
-- TARGET_TRIPLE: "arm64ec-w64-windows-gnu"
-- cmake c compiler target: arm64ec-w64-windows-gnu
-- Performing Test COMPILER_RT_HAS_FPIC_FLAG
-- Performing Test COMPILER_RT_HAS_FPIC_FLAG - Success
-- Performing Test COMPILER_RT_HAS_FPIE_FLAG
-- Performing Test COMPILER_RT_HAS_FPIE_FLAG - Success
-- Performing Test COMPILER_RT_HAS_FNO_BUILTIN_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_BUILTIN_FLAG - Success
-- Performing Test COMPILER_RT_HAS_STD_C11_FLAG
-- Performing Test COMPILER_RT_HAS_STD_C11_FLAG - Success
-- Performing Test COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG
-- Performing Test COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG - Success
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG - Success
-- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG
-- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG - Success
-- Performing Test COMPILER_RT_HAS_XRAY_COMPILER_FLAG
-- Performing Test COMPILER_RT_HAS_XRAY_COMPILER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG - Success
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_GENERATE_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_GENERATE_FLAG - Success
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_GENERATE_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_GENERATE_FLAG - Success
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_USE_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_USE_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WNO_PEDANTIC
-- Performing Test COMPILER_RT_HAS_WNO_PEDANTIC - Success
-- Performing Test COMPILER_RT_HAS_NOGPULIB_FLAG
-- Performing Test COMPILER_RT_HAS_NOGPULIB_FLAG - Success
-- Performing Test COMPILER_RT_HAS_FLTO_FLAG
-- Performing Test COMPILER_RT_HAS_FLTO_FLAG - Success
-- Performing Test COMPILER_RT_HAS_FCONVERGENT_FUNCTIONS_FLAG
-- Performing Test COMPILER_RT_HAS_FCONVERGENT_FUNCTIONS_FLAG - Success
-- Performing Test COMPILER_RT_HAS_CODE_OBJECT_VERSION_FLAG
-- Performing Test COMPILER_RT_HAS_CODE_OBJECT_VERSION_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WBUILTIN_DECLARATION_MISMATCH_FLAG
-- Performing Test COMPILER_RT_HAS_WBUILTIN_DECLARATION_MISMATCH_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_ZL_FLAG
-- Performing Test COMPILER_RT_HAS_ZL_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_ATOMIC_KEYWORD
-- Performing Test COMPILER_RT_HAS_ATOMIC_KEYWORD - Success
-- Performing Test COMPILER_RT_HAS_ASM_LSE
-- Performing Test COMPILER_RT_HAS_ASM_LSE - Success
-- Performing Test COMPILER_RT_HAS_AARCH64_SME
-- Performing Test COMPILER_RT_HAS_AARCH64_SME - Success
-- Looking for include file sys/auxv.h
-- Looking for include file sys/auxv.h - not found
-- Builtin supported architectures:
-- AArch64 SME ABI routines enabled
-- Configuring done (1.1s)
-- Generating done (0.0s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_COMPILER_WORKS
CMAKE_CXX_FLAGS_INIT
COMPILER_RT_BUILD_BUILTINS
COMPILER_RT_USE_BUILTINS_LIBRARY
SANITIZER_CXX_ABI
-- Build files have been written to: /home/src/srcO/MulleFoundation/MulleObjCOSFoundation/research/llvm-mingw/llvm-project/compiler-rt/build-arm64ec
ninja: no work to do.
build-arm64ec/lib/windows/libclang_rt.builtins-arm64ec.a: no such file or directory
I can live without arm64ec, just wanted to mention it.
I have no idea really why, I am building it like this now and then it works. OK granted its not the standard repository, but i don't have any changes in the compiler runtime part and the other four architectures go through fine.
CC=clang \ CXX=clang++ \ LLVM_VERSION=21.1.8.1 \ LLVM_REPOSITORY=https://github.com/mulle-cc/mulle-clang-project.git \ LLVM_BUILD_TYPE=Release \ TOOLCHAIN_ARCHS="i686 x86_64 armv7 aarch64" \ ./build-all.sh /opt/mulle-clang-project-windows/21.1.8.1Otherwise the build stops with:
I can live without arm64ec, just wanted to mention it.