Closed
Description
Question: How to Build LLVM (windows-arm64) with Native TableGen (windows-amd64) on AMD64 HOST?
Local Steps (PowerShell):
PS ...path...> git clone --branch llvm-msvc https://github.com/valord577/nativepkgs.git
PS ...path...> cd .\nativepkgs
# auto enter vs env (2019/2022) and print cmake command line
PS ...path...> & .\build_win-msvc_arm64.ps1 zlib-ng
PS ...path...> & .\build_win-msvc_arm64.ps1 llvm
...
# output to nativepkgs\out\
GH Action: https://github.com/valord577/nativepkgs/actions/runs/13099071169/job/36545026280
GH Action Key Logs:
Enter VS DevShell via PS1
Submodule 'deps/llvm' (https://github.com/llvm/llvm-project.git) registered for path 'deps/llvm'
Cloning into 'D:/a/nativepkgs/nativepkgs/deps/llvm'...
From https://github.com/llvm/llvm-project
* branch cd708029e0b2869e80abe31ddb175f7c35361f90 -> FETCH_HEAD
Submodule path 'deps/llvm': checked out 'cd708029e0b2869e80abe31ddb175f7c35361f90'
HEAD is now at cd708029e Fix print module manifest file for macos (#122370)
Checking patch .gitignore...
Checking patch lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp...
Checking patch llvm/cmake/modules/CrossCompile.cmake...
Applied patch .gitignore cleanly.
Applied patch lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp cleanly.
Applied patch llvm/cmake/modules/CrossCompile.cmake cleanly.
dl_filename='zlib-ng_win-msvc_arm64_cbb6ec1_static.zip'
cmake -G Ninja `
-S "D:\a\nativepkgs\nativepkgs\deps\llvm\llvm" -B "D:\a\nativepkgs\nativepkgs\tmp\llvm\win-msvc\arm64" `
-D CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON `
-D CMAKE_INSTALL_PREFIX="D:\a\nativepkgs\nativepkgs/llvm" `
-D CMAKE_INSTALL_LIBDIR:PATH=lib `
-D CMAKE_PREFIX_PATH="D:\a\nativepkgs\nativepkgs\lib\zlib-ng;" `
-D CMAKE_FIND_ROOT_PATH=";D:\a\nativepkgs\nativepkgs\lib\zlib-ng;" `
`
-D CMAKE_BUILD_TYPE=Release `
-D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -D LLVM_BUILD_LLVM_DYLIB:BOOL=0 -D CMAKE_C_COMPILER_LAUNCHER=ccache.exe -D CMAKE_CXX_COMPILER_LAUNCHER=ccache.exe `
-D LLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lldb" `
-D CLANG_PLUGIN_SUPPORT:BOOL=0 `
-D LLVM_APPEND_VC_REV:BOOL=0 `
-D LLVM_ENABLE_BINDINGS:BOOL=0 `
-D LLVM_INCLUDE_BENCHMARKS:BOOL=0 `
-D LLVM_INCLUDE_EXAMPLES:BOOL=0 `
-D LLVM_INCLUDE_TESTS:BOOL=0 `
-D LLVM_INCLUDE_DOCS:BOOL=0 `
-D LLVM_INCLUDE_UTILS:BOOL=0 `
-D LLVM_ENABLE_ZLIB="FORCE_ON" `
-D LLVM_ENABLE_ZSTD="OFF" `
-D LLDB_ENABLE_SWIG:BOOL=0 `
-D LLDB_ENABLE_LIBEDIT:BOOL=0 `
-D LLDB_ENABLE_CURSES:BOOL=0 `
-D LLDB_ENABLE_LUA:BOOL=0 `
-D LLDB_ENABLE_PYTHON:BOOL=0 `
-D LLDB_ENABLE_LIBXML2:BOOL=0 `
-D LLDB_ENABLE_FBSDVMCORE:BOOL=0 `
-D LLVM_TARGETS_TO_BUILD="AArch64;ARM;RISCV;WebAssembly;X86" `
-D LLDB_USE_SYSTEM_DEBUGSERVER:BOOL=1 `
-D LLVM_NATIVE_TOOL_DIR= `
-D LLVM_HOST_TRIPLE=x86_64-pc-windows-msvc -D LLVM_TARGET_ARCH=AArch64 `
-D CMAKE_CROSSCOMPILING:BOOL=TRUE -D CMAKE_SYSTEM_NAME=Windows `
-D CMAKE_C_HOST_COMPILER='C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.42.34433\bin\hostx64\x64\cl.exe' -D CMAKE_CXX_HOST_COMPILER='C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.42.34433\bin\hostx64\x64\cl.exe'
CMake Deprecation Warning at D:/a/nativepkgs/nativepkgs/deps/llvm/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
The OLD behavior for policy CMP0114 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
CMake Deprecation Warning at D:/a/nativepkgs/nativepkgs/deps/llvm/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
The OLD behavior for policy CMP0116 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
-- The C compiler identification is MSVC 19.42.34436.0
-- The CXX compiler identification is MSVC 19.42.34436.0
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/bin/Hostx64/arm64/cl.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/bin/Hostx64/arm64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/bin/Hostx64/arm64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is enabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- lld project is disabled
-- lldb project is enabled
-- mlir project is disabled
-- openmp project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- Found Python3: C:/hostedtoolcache/windows/Python/3.13.1/x64/python3.exe (found suitable version "3.13.1", minimum required is "3.0") found components: Interpreter
-- Looking for dlfcn.h
-- Looking for dlfcn.h - not found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for link.h
-- Looking for link.h - not found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - not found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - not found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - not found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - not found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sysexits.h
-- Looking for sysexits.h - not found
-- Looking for termios.h
-- Looking for termios.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Performing Test HAVE_BUILTIN_THREAD_POINTER
-- Performing Test HAVE_BUILTIN_THREAD_POINTER - Failed
-- Looking for mach/mach.h
-- Looking for mach/mach.h - not found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Looking for pfm_initialize in pfm
-- Looking for pfm_initialize in pfm - not found
-- Found ZLIB: D:/a/nativepkgs/nativepkgs/lib/zlib-ng/lib/zlibstatic.lib (found version "1.3.1")
-- Looking for compress2
-- Looking for compress2 - found
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for backtrace
-- Looking for backtrace - not found
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Looking for __register_frame
-- Looking for __register_frame - not found
-- Looking for __deregister_frame
-- Looking for __deregister_frame - not found
-- Looking for __unw_add_dynamic_fde
-- Looking for __unw_add_dynamic_fde - not found
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - not found
-- Looking for getpagesize
-- Looking for getpagesize - not found
-- Looking for sysconf
-- Looking for sysconf - not found
-- Looking for getrusage
-- Looking for getrusage - not found
-- Looking for setrlimit
-- Looking for setrlimit - not found
-- Looking for isatty
-- Looking for isatty - not found
-- Looking for futimens
-- Looking for futimens - not found
-- Looking for futimes
-- Looking for futimes - not found
-- Looking for sigaltstack
-- Looking for sigaltstack - not found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for mallinfo2
-- Looking for mallinfo2 - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - not found
-- Looking for getrlimit
-- Looking for getrlimit - not found
-- Looking for posix_spawn
-- Looking for posix_spawn - not found
-- Looking for pread
-- Looking for pread - not found
-- Looking for sbrk
-- Looking for sbrk - not found
-- Looking for strerror_r
-- Looking for strerror_r - not found
-- Looking for strerror_s
-- Looking for strerror_s - found
-- Looking for setenv
-- Looking for setenv - not found
-- Looking for _chsize_s
-- Looking for _chsize_s - found
-- Looking for _alloca
-- Looking for _alloca - not found
-- Looking for __alloca
-- Looking for __alloca - not found
-- Looking for __chkstk
-- Looking for __chkstk - found
-- Looking for __chkstk_ms
-- Looking for __chkstk_ms - not found
-- Looking for ___chkstk
-- Looking for ___chkstk - not found
-- Looking for ___chkstk_ms
-- Looking for ___chkstk_ms - not found
-- Looking for __ashldi3
-- Looking for __ashldi3 - not found
-- Looking for __ashrdi3
-- Looking for __ashrdi3 - not found
-- Looking for __divdi3
-- Looking for __divdi3 - not found
-- Looking for __fixdfdi
-- Looking for __fixdfdi - not found
-- Looking for __fixsfdi
-- Looking for __fixsfdi - not found
-- Looking for __floatdidf
-- Looking for __floatdidf - not found
-- Looking for __lshrdi3
-- Looking for __lshrdi3 - not found
-- Looking for __moddi3
-- Looking for __moddi3 - not found
-- Looking for __udivdi3
-- Looking for __udivdi3 - not found
-- Looking for __umoddi3
-- Looking for __umoddi3 - not found
-- Looking for __main
-- Looking for __main - not found
-- Looking for __cmpdi2
-- Looking for __cmpdi2 - not found
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Failed
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Looking for proc_pid_rusage
-- Looking for proc_pid_rusage - not found
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- LLVM host triple: x86_64-pc-windows-msvc
-- Native target architecture is AArch64
-- Threads enabled.
-- Doxygen disabled.
-- Ninja version: 1.12.0
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- LLVM default target triple: x86_64-pc-windows-msvc
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Setting native build dir to D:/a/nativepkgs/nativepkgs/tmp/llvm/win-msvc/arm64/NATIVE
-- Performing Test HAS_WERROR_GLOBAL_CTORS
-- Performing Test HAS_WERROR_GLOBAL_CTORS - Failed
-- Looking for _M_X64
-- Looking for _M_X64 - not found
-- Found Git: C:/Program Files/Git/bin/git.exe (found version "2.47.1.windows.2")
-- Looking for logf128
-- Looking for logf128 - not found
-- Targeting AArch64
-- Targeting ARM
-- Targeting RISCV
-- Targeting WebAssembly
-- Targeting X86
CMake Deprecation Warning at D:/a/nativepkgs/nativepkgs/deps/llvm/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
The OLD behavior for policy CMP0114 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
D:/a/nativepkgs/nativepkgs/deps/llvm/clang/CMakeLists.txt:7 (include)
CMake Deprecation Warning at D:/a/nativepkgs/nativepkgs/deps/llvm/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
The OLD behavior for policy CMP0116 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
D:/a/nativepkgs/nativepkgs/deps/llvm/clang/CMakeLists.txt:7 (include)
-- Looking for sys/resource.h
-- Looking for sys/resource.h - not found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - not found
-- Clang version: 19.1.7
-- Performing Test HAVE_LINKER_FLAG_LONG_PLT
-- Performing Test HAVE_LINKER_FLAG_LONG_PLT - Success
CMake Deprecation Warning at D:/a/nativepkgs/nativepkgs/deps/llvm/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
The OLD behavior for policy CMP0114 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
D:/a/nativepkgs/nativepkgs/deps/llvm/lldb/CMakeLists.txt:7 (include)
CMake Deprecation Warning at D:/a/nativepkgs/nativepkgs/deps/llvm/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
The OLD behavior for policy CMP0116 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
D:/a/nativepkgs/nativepkgs/deps/llvm/lldb/CMakeLists.txt:7 (include)
-- Enable SWIG to generate LLDB bindings: FALSE
-- Enable editline support in LLDB: FALSE
-- Enable curses support in LLDB: FALSE
-- Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_INCLUDE_DIR LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)
-- Enable LZMA compression support in LLDB: FALSE
-- Enable Lua scripting support in LLDB: FALSE
-- Enable Python scripting support in LLDB: FALSE
-- Enable Libxml 2 support in LLDB: FALSE
-- Enable libfbsdvmcore support in LLDB: FALSE
-- LLDB version: 19.1.7
-- Looking for ppoll
-- Looking for ppoll - not found
-- Looking for ptsname_r
-- Looking for ptsname_r - not found
-- Looking for accept4
-- Looking for accept4 - not found
-- Looking for include files sys/types.h, sys/event.h
-- Looking for include files sys/types.h, sys/event.h - not found
-- Looking for process_vm_readv
-- Looking for process_vm_readv - not found
-- Looking for __NR_process_vm_readv
-- Looking for __NR_process_vm_readv - not found
-- Looking for compression_encode_buffer in compression
-- Looking for compression_encode_buffer in compression - not found
-- Skipping FreeBSDKernel plugin due to missing libfbsdvmcore
-- Found Doxygen: C:/Strawberry/c/bin/doxygen.exe (found version "1.10.0") found components: doxygen missing components: dot
-- BugpointPasses ignored -- Loadable modules not supported on this platform.
-- Configuring done (26.0s)
-- Generating done (8.6s)
-- Build files have been written to: D:/a/nativepkgs/nativepkgs/tmp/llvm/win-msvc/arm64
[1/4882] Building CXX object lib\Demangle\CMakeFiles\LLVMDemangle.dir\Demangle.cpp.obj
[2/4882] Building CXX object lib\Demangle\CMakeFiles\LLVMDemangle.dir\MicrosoftDemangleNodes.cpp.obj
[3/4882] Building CXX object lib\Demangle\CMakeFiles\LLVMDemangle.dir\MicrosoftDemangle.cpp.obj
[4/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ABIBreak.cpp.obj
[5/4882] Building CXX object lib\Demangle\CMakeFiles\LLVMDemangle.dir\DLangDemangle.cpp.obj
[6/4882] Building CXX object lib\Demangle\CMakeFiles\LLVMDemangle.dir\RustDemangle.cpp.obj
[7/4882] Building CXX object lib\Demangle\CMakeFiles\LLVMDemangle.dir\ItaniumDemangle.cpp.obj
[8/4882] Linking CXX static library lib\LLVMDemangle.lib
[9/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\APFixedPoint.cpp.obj
[10/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\AMDGPUMetadata.cpp.obj
[11/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\APFloat.cpp.obj
[12/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\APSInt.cpp.obj
[13/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ARMBuildAttrs.cpp.obj
[14/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\APInt.cpp.obj
[15/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\AutoConvert.cpp.obj
[16/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ARMWinEH.cpp.obj
[17/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Allocator.cpp.obj
[18/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ARMAttributeParser.cpp.obj
[19/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Base64.cpp.obj
[20/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\BinaryStreamError.cpp.obj
[21/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\BinaryStreamReader.cpp.obj
[22/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\BinaryStreamRef.cpp.obj
[23/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\BalancedPartitioning.cpp.obj
[24/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\BuryPointer.cpp.obj
[25/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\BinaryStreamWriter.cpp.obj
[26/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\BlockFrequency.cpp.obj
[27/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\BranchProbability.cpp.obj
[28/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\circular_raw_ostream.cpp.obj
[29/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Chrono.cpp.obj
[30/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\CachePruning.cpp.obj
[31/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Caching.cpp.obj
[32/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\COM.cpp.obj
[33/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Compression.cpp.obj
[34/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\CRC.cpp.obj
[35/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\CodeGenCoverage.cpp.obj
[36/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ConvertUTF.cpp.obj
[37/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ConvertEBCDIC.cpp.obj
[38/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ConvertUTFWrapper.cpp.obj
[39/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\CommandLine.cpp.obj
[40/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\CSKYAttributes.cpp.obj
[41/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\CrashRecoveryContext.cpp.obj
[42/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\CSKYAttributeParser.cpp.obj
[43/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\DataExtractor.cpp.obj
[44/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Debug.cpp.obj
[45/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\DeltaAlgorithm.cpp.obj
[46/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\DivisionByConstantInfo.cpp.obj
[47/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\DebugCounter.cpp.obj
[48/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\DJB.cpp.obj
[49/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\DynamicAPInt.cpp.obj
[50/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\DAGDeltaAlgorithm.cpp.obj
[51/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ELFAttributes.cpp.obj
[52/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ELFAttributeParser.cpp.obj
[53/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ExtensibleRTTI.cpp.obj
[54/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Error.cpp.obj
[55/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ExponentialBackoff.cpp.obj
[56/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ErrorHandling.cpp.obj
[57/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\FileUtilities.cpp.obj
[58/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\FileCollector.cpp.obj
[59/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\FloatingPointMode.cpp.obj
[60/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\FileOutputBuffer.cpp.obj
[61/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\FormattedStream.cpp.obj
[62/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\FoldingSet.cpp.obj
[63/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\FormatVariadic.cpp.obj
[64/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\HexagonAttributeParser.cpp.obj
[65/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\GlobPattern.cpp.obj
[66/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\HexagonAttributes.cpp.obj
[67/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\GraphWriter.cpp.obj
[68/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\IntEqClasses.cpp.obj
[69/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\IntervalMap.cpp.obj
[70/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\InstructionCost.cpp.obj
[71/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\LEB128.cpp.obj
[72/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\InitLLVM.cpp.obj
[73/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\KnownBits.cpp.obj
[74/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\JSON.cpp.obj
[75/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\LineIterator.cpp.obj
[76/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Locale.cpp.obj
[77/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\MemAlloc.cpp.obj
[78/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\MathExtras.cpp.obj
[79/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ManagedStatic.cpp.obj
[80/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\MemoryBufferRef.cpp.obj
[81/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\MemoryBuffer.cpp.obj
[82/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\LockFileManager.cpp.obj
[83/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\MSP430Attributes.cpp.obj
[84/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\MD5.cpp.obj
[85/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\MSP430AttributeParser.cpp.obj
[86/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Optional.cpp.obj
[87/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\OptimizedStructLayout.cpp.obj
[88/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\NativeFormatting.cpp.obj
[89/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\PrettyStackTrace.cpp.obj
[90/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\PGOOptions.cpp.obj
[91/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\PluginLoader.cpp.obj
[92/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Parallel.cpp.obj
[93/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\RISCVAttributes.cpp.obj
[94/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Regex.cpp.obj
[95/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\RISCVAttributeParser.cpp.obj
[96/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\RISCVISAUtils.cpp.obj
[97/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ScaledNumber.cpp.obj
[98/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\RandomNumberGenerator.cpp.obj
[99/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Signposts.cpp.obj
[100/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SHA1.cpp.obj
[101/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ScopedPrinter.cpp.obj
[102/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SHA256.cpp.obj
[103/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SipHash.cpp.obj
[104/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SlowDynamicAPInt.cpp.obj
[105/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SmallPtrSet.cpp.obj
[106/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SmallVector.cpp.obj
[107/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SourceMgr.cpp.obj
[108/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\StringExtras.cpp.obj
[109/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Statistic.cpp.obj
[110/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SpecialCaseList.cpp.obj
[111/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SuffixTreeNode.cpp.obj
[112/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\StringMap.cpp.obj
[113/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\StringSaver.cpp.obj
[114/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\StringRef.cpp.obj
[115/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SystemUtils.cpp.obj
[116/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\SuffixTree.cpp.obj
[117/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\TarWriter.cpp.obj
[118/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ThreadPool.cpp.obj
[119/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\TimeProfiler.cpp.obj
[120/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\ToolOutputFile.cpp.obj
[121/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Timer.cpp.obj
[122/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Twine.cpp.obj
[123/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Unicode.cpp.obj
[124/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\TypeSize.cpp.obj
[125/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\UnicodeNameToCodepointGenerated.cpp.obj
[126/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\UnicodeCaseFold.cpp.obj
[127/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\VersionTuple.cpp.obj
[128/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\UnicodeNameToCodepoint.cpp.obj
[129/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\WithColor.cpp.obj
[130/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\raw_os_ostream.cpp.obj
[131/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\YAMLTraits.cpp.obj
[132/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\YAMLParser.cpp.obj
[133/4882] Building C object lib\Support\CMakeFiles\LLVMSupport.dir\regcomp.c.obj
[134/4882] Building C object lib\Support\CMakeFiles\LLVMSupport.dir\regerror.c.obj
[135/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\VirtualFileSystem.cpp.obj
[136/4882] Building C object lib\Support\CMakeFiles\LLVMSupport.dir\regfree.c.obj
[137/4882] Building C object lib\Support\CMakeFiles\LLVMSupport.dir\regexec.c.obj
[138/4882] Building C object lib\Support\CMakeFiles\LLVMSupport.dir\regstrlcpy.c.obj
[139/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\raw_ostream.cpp.obj
[140/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Z3Solver.cpp.obj
[141/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\xxhash.cpp.obj
[142/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\raw_socket_stream.cpp.obj
[143/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Errno.cpp.obj
[144/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Atomic.cpp.obj
[145/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\DynamicLibrary.cpp.obj
[146/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Memory.cpp.obj
[147/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\RWMutex.cpp.obj
[148/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Process.cpp.obj
[149/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Path.cpp.obj
[150/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Valgrind.cpp.obj
[151/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Watchdog.cpp.obj
[152/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Program.cpp.obj
[153/4882] Building C object lib\Support\BLAKE3\CMakeFiles\LLVMSupportBlake3.dir\blake3_dispatch.c.obj
[154/4882] Building C object lib\Support\BLAKE3\CMakeFiles\LLVMSupportBlake3.dir\blake3.c.obj
[155/4882] Building C object lib\Support\BLAKE3\CMakeFiles\LLVMSupportBlake3.dir\blake3_portable.c.obj
[156/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Threading.cpp.obj
[157/4882] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\Signals.cpp.obj
[158/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\Error.cpp.obj
[159/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\DetailedRecordsBackend.cpp.obj
[160/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\JSONBackend.cpp.obj
[161/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\Parser.cpp.obj
[162/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\Main.cpp.obj
[163/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\StringMatcher.cpp.obj
[164/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\SetTheory.cpp.obj
[165/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\Record.cpp.obj
[166/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\TableGenBackend.cpp.obj
[167/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\TableGenBackendSkeleton.cpp.obj
[168/4882] Building C object lib\Support\BLAKE3\CMakeFiles\LLVMSupportBlake3.dir\blake3_neon.c.obj
[169/4882] Creating D:/a/nativepkgs/nativepkgs/tmp/llvm/win-msvc/arm64/NATIVE...
[170/4882] Linking CXX static library lib\LLVMSupport.lib
[171/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\TGLexer.cpp.obj
[172/4882] Building CXX object utils\TableGen\CMakeFiles\llvm-min-tblgen.dir\TableGen.cpp.obj
[173/4882] Building CXX object utils\TableGen\CMakeFiles\llvm-min-tblgen.dir\Attributes.cpp.obj
[174/4882] Building CXX object lib\TableGen\CMakeFiles\LLVMTableGen.dir\TGParser.cpp.obj
[175/4882] Linking CXX static library lib\LLVMTableGen.lib
[176/4882] Building CXX object utils\TableGen\CMakeFiles\llvm-min-tblgen.dir\ARMTargetDefEmitter.cpp.obj
[177/4882] Building CXX object utils\TableGen\CMakeFiles\llvm-min-tblgen.dir\IntrinsicEmitter.cpp.obj
[178/4882] Building CXX object utils\TableGen\CMakeFiles\llvm-min-tblgen.dir\DirectiveEmitter.cpp.obj
[179/4882] Building RC object utils\TableGen\CMakeFiles\llvm-min-tblgen.dir\__\__\resources\windows_version_resource.rc.res
[180/4882] Building CXX object utils\TableGen\CMakeFiles\llvm-min-tblgen.dir\RISCVTargetDefEmitter.cpp.obj
[181/4882] Building CXX object utils\TableGen\CMakeFiles\llvm-min-tblgen.dir\VTEmitter.cpp.obj
[182/4882] Building CXX object utils\TableGen\Basic\CMakeFiles\obj.LLVMTableGenBasic.dir\SDNodeProperties.cpp.obj
[183/4882] Building CXX object utils\TableGen\Basic\CMakeFiles\obj.LLVMTableGenBasic.dir\CodeGenIntrinsics.cpp.obj
[184/4882] Building CXX object lib\Bitstream\Reader\CMakeFiles\LLVMBitstreamReader.dir\BitstreamReader.cpp.obj
[185/4882] Linking CXX static library lib\LLVMBitstreamReader.lib
[186/4882] Configuring NATIVE LLVM...
FAILED: NATIVE/CMakeCache.txt D:/a/nativepkgs/nativepkgs/tmp/llvm/win-msvc/arm64/NATIVE/CMakeCache.txt
C:\Windows\system32\cmd.exe /C "cd /D D:\a\nativepkgs\nativepkgs\tmp\llvm\win-msvc\arm64\NATIVE && "C:\Program Files\CMake\bin\cmake.exe" -G Ninja -DCMAKE_MAKE_PROGRAM="C:/Strawberry/c/bin/ninja.exe" -DCMAKE_C_COMPILER_LAUNCHER="ccache.exe" -DCMAKE_CXX_COMPILER_LAUNCHER="ccache.exe" "-DCMAKE_C_COMPILER=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.42.34433\bin\hostx64\x64\cl.exe" "-DCMAKE_CXX_COMPILER=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.42.34433\bin\hostx64\x64\cl.exe" D:/a/nativepkgs/nativepkgs/deps/llvm/llvm -DLLVM_TARGET_IS_CROSSCOMPILE_HOST=TRUE -DLLVM_TARGETS_TO_BUILD="AArch64;ARM;RISCV;WebAssembly;X86" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="" -DLLVM_DEFAULT_TARGET_TRIPLE="x86_64-pc-windows-msvc" -DLLVM_TARGET_ARCH="AArch64" -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lldb" -DLLVM_EXTERNAL_PROJECTS="" -DLLVM_ENABLE_RUNTIMES="" -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN="OFF" -DLLVM_INCLUDE_BENCHMARKS=OFF -DLLVM_INCLUDE_TESTS=OFF -DCMAKE_BUI
CMake Deprecation Warning at D:/a/nativepkgs/nativepkgs/deps/llvm/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
The OLD behavior for policy CMP0114 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
CMake Deprecation Warning at D:/a/nativepkgs/nativepkgs/deps/llvm/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
The OLD behavior for policy CMP0116 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
-- The C compiler identification is MSVC 19.42.34436.0
-- The CXX compiler identification is MSVC 19.42.34436.0
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/bin/hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/bin/hostx64/x64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/bin/hostx64/x64/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: 'D:/a/nativepkgs/nativepkgs/tmp/llvm/win-msvc/arm64/NATIVE/CMakeFiles/CMakeScratch/TryCompile-qfxwit'
Run Build Command(s): C:/Strawberry/c/bin/ninja.exe -v cmTC_7c4df
[1/2] C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1442~1.344\bin\hostx64\x64\cl.exe /nologo /utf-8 /DWIN32 /D_WINDOWS /Ob0 /Od /RTC1 -MDd -Zi /showIncludes /FoCMakeFiles\cmTC_7c4df.dir\testCCompiler.c.obj /FdCMakeFiles\cmTC_7c4df.dir\ /FS -c D:\a\nativepkgs\nativepkgs\tmp\llvm\win-msvc\arm64\NATIVE\CMakeFiles\CMakeScratch\TryCompile-qfxwit\testCCompiler.c
[2/2] C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --msvc-ver=1942 --intdir=CMakeFiles\cmTC_7c4df.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1442~1.344\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_7c4df.dir\testCCompiler.c.obj /out:cmTC_7c4df.exe /implib:cmTC_7c4df.lib /pdb:cmTC_7c4df.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
FAILED: cmTC_7c4df.exe
C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --msvc-ver=1942 --intdir=CMakeFiles\cmTC_7c4df.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1442~1.344\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_7c4df.dir\testCCompiler.c.obj /out:cmTC_7c4df.exe /implib:cmTC_7c4df.lib /pdb:cmTC_7c4df.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
LINK Pass 1: command "C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1442~1.344\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_7c4df.dir\testCCompiler.c.obj /out:cmTC_7c4df.exe /implib:cmTC_7c4df.lib /pdb:cmTC_7c4df.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\cmTC_7c4df.dir/intermediate.manifest CMakeFiles\cmTC_7c4df.dir/manifest.res" failed (exit code 1120) with the following output:
testCCompiler.c.obj : error LNK2001: unresolved external symbol _RTC_InitBase
testCCompiler.c.obj : error LNK2001: unresolved external symbol _RTC_Shutdown
LINK : error LNK2001: unresolved external symbol mainCRTStartup
C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\arm64\kernel32.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\arm64\user32.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\arm64\gdi32.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\arm64\winspool.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\arm64\shell32.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\arm64\ole32.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\arm64\oleaut32.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\arm64\uuid.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\arm64\comdlg32.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\arm64\advapi32.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.42.34433\lib\ARM64\MSVCRTD.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.42.34433\lib\ARM64\OLDNAMES.lib : warning LNK4272: library machine type 'ARM64' conflicts with target machine type 'x64'
cmTC_7c4df.exe : fatal error LNK1120: 3 unresolved externals
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:45 (project)
-- Configuring incomplete, errors occurred!
[187/4882] Linking CXX executable bin\llvm-min-tblgen.exe
[188/4882] Building CXX object lib\DebugInfo\CodeView\CMakeFiles\LLVMDebugInfoCodeView.dir\AppendingTypeTableBuilder.cpp.obj
[189/4882] Building CXX object lib\DebugInfo\CodeView\CMakeFiles\LLVMDebugInfoCodeView.dir\CodeViewError.cpp.obj
ninja: build stopped: subcommand failed.
Error: Process completed with exit code 1.