DRAFT: Add an aarch64-msvc build running on ARM64 Windows by dpaoliello · Pull Request #140136 · rust-lang/rust (original) (raw)

Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload its PATH environment variable to include
Cargo's bin directory (%USERPROFILE%\.cargo\bin).
---
  PR_CI_JOB: 1
  RUST_CONFIGURE_ARGS: --build=aarch64-pc-windows-msvc
  SCRIPT: make ci-msvc-py
##[endgroup]
Attempting with retry: curl -f https://ci-mirrors.rust-lang.org/rustc/LLVM-20.1.3-woa64.exe -o LLVM-20.1.3-woa64.exe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 20  318M   20 65.2M    0     0  99.6M      0  0:00:03 --:--:--  0:00:03 99.7M
---
fpu  : yes
fpu_exception : yes
cpuid level : 12
wp  : yes
flags  : fpu tsc cx8 cmov clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid pni pclmuldq ssse3 cx16 sse4_1 sse4_2 popcnt aes lahf_lm 3dnowprefetch
bogomips : 6800.00
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management:
---
fpu  : yes
fpu_exception : yes
cpuid level : 12
wp  : yes
flags  : fpu tsc cx8 cmov clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid pni pclmuldq ssse3 cx16 sse4_1 sse4_2 popcnt aes lahf_lm 3dnowprefetch
bogomips : 6800.00
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management:
---
fpu  : yes
fpu_exception : yes
cpuid level : 12
wp  : yes
flags  : fpu tsc cx8 cmov clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid pni pclmuldq ssse3 cx16 sse4_1 sse4_2 popcnt aes lahf_lm 3dnowprefetch
bogomips : 6800.00
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management:
---
fpu  : yes
fpu_exception : yes
cpuid level : 12
wp  : yes
flags  : fpu tsc cx8 cmov clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid pni pclmuldq ssse3 cx16 sse4_1 sse4_2 popcnt aes lahf_lm 3dnowprefetch
bogomips : 6800.00
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management:
---
test [debuginfo-cdb] tests\debuginfo\thread-names.rs#win ... ok
test [debuginfo-cdb] tests\debuginfo\trait-pointers.rs ... ok
test [debuginfo-cdb] tests\debuginfo\thread.rs ... ok
test [debuginfo-cdb] tests\debuginfo\tuple-in-struct.rs ... ok
test [debuginfo-cdb] tests\debuginfo\type-names.rs ... ignored, ignored when the target is aarch64-pc-windows-msvc (Arm64 Windows cdb doesn't support JavaScript extensions.)
test [debuginfo-cdb] tests\debuginfo\tuple-in-tuple.rs ... ok
test [debuginfo-cdb] tests\debuginfo\tuple-struct.rs ... ok
test [debuginfo-cdb] tests\debuginfo\unit-type.rs ... ignored, ignored when the CDB version is lower than 10.0.26100.2161
test [debuginfo-cdb] tests\debuginfo\tuple-style-enum.rs ... ok
test [debuginfo-cdb] tests\debuginfo\union-smoke.rs ... ok
---
---- [run-make] tests\run-make\pointer-auth-link-with-c stdout ----

error: rmake recipe failed to complete
status: exit code: 1
command: "C:\\a\\rust\\rust\\build\\aarch64-pc-windows-msvc\\test\\run-make\\pointer-auth-link-with-c\\rmake.exe"
stdout: none
--- stderr -------------------------------
command failed at line 16
Command { cmd: "C:\\a\\rust\\rust\\build\\aarch64-pc-windows-msvc\\stage2\\bin\\rustc.exe" "-L" "C:\\a\\rust\\rust\\build\\aarch64-pc-windows-msvc\\test\\run-make\\pointer-auth-link-with-c\\rmake_out" "-Zbranch-protection=bti,pac-ret,leaf" "test.rs", stdin_buf: None, stdin: None, stdout: None, stderr: None, drop_bomb: DropBomb { command: "C:\\a\\rust\\rust\\build\\aarch64-pc-windows-msvc\\stage2\\bin\\rustc.exe", defused: true, armed_location: Location { file: "C:\\a\\rust\\rust\\tests\\run-make\\pointer-auth-link-with-c\\rmake.rs", line: 16, col: 5 } }, already_executed: true }
output status: `exit code: 1`
=== STDOUT ===


=== STDERR ===
error: linking with `link.exe` failed: exit code: 1120
  |
  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.43.34808\\bin\\HostARM64\\arm64\\link.exe" "/NOLOGO" "/arm64hazardfree" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustcU1s6UK\\symbols.o" "<2 object files omitted>" "C:\\a\\rust\\rust\\build\\aarch64-pc-windows-msvc\\test\\run-make\\pointer-auth-link-with-c\\rmake_out\\test.lib" "<sysroot>\\lib\\rustlib\\aarch64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/LIBPATH:C:\\a\\rust\\rust\\build\\aarch64-pc-windows-msvc\\test\\run-make\\pointer-auth-link-with-c\\rmake_out" "/OUT:test.exe" "/OPT:REF,NOICF" "/DEBUG" "/PDBALTPATH:%_PDB%" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\libstd.natvis"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: test.test.c2ff8074aa24f33c-cgu.0.rcgu.o : error LNK2019: unresolved external symbol __imp_foo referenced in function _ZN4test4main17h5b157377be037a02E␍
          test.exe : fatal error LNK1120: 1 unresolved externals␍
          

error: aborting due to 1 previous error
------------------------------------------
---
test result: FAILED. 287 passed; 1 failed; 106 ignored; 0 measured; 6 filtered out; finished in 146.92s

Some tests failed in compiletest suite=run-make mode=run-make host=aarch64-pc-windows-msvc target=aarch64-pc-windows-msvc
Build completed unsuccessfully in 2:30:14
make: *** [Makefile:113: ci-msvc-py] Error 1
  local time: Mon May  5 20:27:43 CUT 2025
  network time: Mon, 05 May 2025 20:27:43 GMT
##[error]Process completed with exit code 2.
Post job cleanup.
[command]"C:\Program Files\Git\bin\git.exe" version