Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 6.0: Windows arm64 toolchain fails to build #75385

Closed
shahmishal opened this issue Jul 20, 2024 · 3 comments
Closed

Swift 6.0: Windows arm64 toolchain fails to build #75385

shahmishal opened this issue Jul 20, 2024 · 3 comments
Labels
arm64 Architecture: arm64 (aarch64) — any 64-bit ARM build error Errors when building the toolchain, not regular Swift code cmake swift 6.0 toolchain unexpected error Bug: Unexpected error Windows Platform: Windows

Comments

@shahmishal
Copy link
Member

Description

CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeTestSwiftCompiler.cmake:40 (message):
  The Swift compiler

    "T:/1/bin/swiftc.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: 'T:/102/CMakeFiles/CMakeScratch/TryCompile-xwytmb'
    
    Run Build Command(s): C:/PROGRA~1/MICROS~2/2022/COMMUN~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe -v cmTC_9c8b2
    [1/2][ 50%][0.009s]T:\1\bin\swiftc.exe -target x86_64-unknown-windows-msvc -j 36 -num-threads 36 -c  -module-name cmTC_9c8b2 -resource-dir T:/101/lib/swift -L T:/101/lib/swift/windows -vfsoverlay T:/101/stdlib/windows-vfs-overlay.yaml -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules -gnone -Xlinker /INCREMENTAL:NO -Xlinker /OPT:REF -Xlinker /OPT:ICF  -incremental -output-file-map CMakeFiles\cmTC_9c8b2.dir\\output-file-map.json  T:\102\CMakeFiles\CMakeScratch\TryCompile-xwytmb\main.swift
    FAILED: CMakeFiles/cmTC_9c8b2.dir/main.swift.obj 
    T:\1\bin\swiftc.exe -target x86_64-unknown-windows-msvc -j 36 -num-threads 36 -c  -module-name cmTC_9c8b2 -resource-dir T:/101/lib/swift -L T:/101/lib/swift/windows -vfsoverlay T:/101/stdlib/windows-vfs-overlay.yaml -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules -gnone -Xlinker /INCREMENTAL:NO -Xlinker /OPT:REF -Xlinker /OPT:ICF  -incremental -output-file-map CMakeFiles\cmTC_9c8b2.dir\\output-file-map.json  T:\102\CMakeFiles\CMakeScratch\TryCompile-xwytmb\main.swift
    ninja: build stopped: subcommand failed.
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:168 (enable_language)


-- Configuring incomplete, errors occurred!
Error: Error: cmake.exe exited with code 1.

Reproduction

https://ci-external.swift.org/job/swift-6.0-windows-toolchain-arm64/137/console

Expected behavior

n/a

Environment

n/a

Additional information

No response

@shahmishal shahmishal added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels Windows Platform: Windows and removed bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Jul 20, 2024
@shahmishal
Copy link
Member Author

cc: @compnerd

@AnthonyLatsis AnthonyLatsis added toolchain unexpected error Bug: Unexpected error arm64 Architecture: arm64 (aarch64) — any 64-bit ARM build error Errors when building the toolchain, not regular Swift code cmake swift 6.0 labels Jul 23, 2024
@hjyamauchi
Copy link
Contributor

@shahmishal The CI is green now! https://ci-external.swift.org/job/swift-6.0-windows-toolchain-arm64/
Can we close this issue?
CC @compnerd

@shahmishal
Copy link
Member Author

Yes, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm64 Architecture: arm64 (aarch64) — any 64-bit ARM build error Errors when building the toolchain, not regular Swift code cmake swift 6.0 toolchain unexpected error Bug: Unexpected error Windows Platform: Windows
Projects
None yet
Development

No branches or pull requests

3 participants