Skip to content

Compiler crash building swiftpm with Windows ARM toolchain #75809

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

Closed
dschaefer2 opened this issue Aug 9, 2024 · 7 comments
Closed

Compiler crash building swiftpm with Windows ARM toolchain #75809

dschaefer2 opened this issue Aug 9, 2024 · 7 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. SIL triage needed This issue needs more specific labels

Comments

@dschaefer2
Copy link
Member

Description

Compiler crash using the Aug 7 Windows ARM 6.0 toolchain, building swiftpm main.

build.txt

Reproduction

Building the main branch of swiftpm.

Expected behavior

No crash :).

Environment

Swift version 6.0-dev (LLVM 73a346c9caf32cc, Swift 3e21fc6)
Target: aarch64-unknown-windows-msvc

Additional information

No response

@dschaefer2 dschaefer2 added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Aug 9, 2024
@dschaefer2
Copy link
Member Author

The crash does not happen with the x86_64 Windows toolchain. Only ARM.

@compnerd compnerd added the SIL label Aug 9, 2024
@compnerd
Copy link
Member

compnerd commented Aug 9, 2024

Interesting! This should be a pretty generic thing, I think that we are silently failing the verifier on Darwin.

@hjyamauchi
Copy link
Contributor

hjyamauchi commented Aug 16, 2024

A slightly simpler reproduction:

git clone https://github.com/jpsim/Yams -b 5.0.6
cd Yams
swift build

This reproduces with the 2024-08-07 build but not with the 2024-07-02 build.

This doesn't reproduce with the Windows X64 build.

@hjyamauchi
Copy link
Contributor

hjyamauchi commented Aug 19, 2024

I was able to reproduce this error with a local Windows X64 build with SwiftCompilerSources disabled.

@eeckstein, is the SwiftCompilerSources-disabled compiler no longer CI-tested (or supported?) outside of Windows ARM64? CC @compnerd

@eeckstein
Copy link
Contributor

eeckstein commented Aug 20, 2024

@eeckstein, is the SwiftCompilerSources-disabled compiler no longer CI-tested (or supported?) outside of Windows ARM64?

Correct.
Unfortunately SwiftCompilerSources are disabled on Windows arm64 because of a miscompile which let the compiler crash immediately (#74866). I hope that someone with low-level debugging experience on Windows can take a look and fix this problem.

@hjyamauchi
Copy link
Contributor

Ok, will see what I can do :)

@atrick
Copy link
Contributor

atrick commented Sep 13, 2024

This looks like a duplicate of #74866
SwiftCompilerSources doesn't work on Windows ARM64

@atrick atrick closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. SIL triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

5 participants