Skip to content

Fail to build compiler-builtins for target x86_64-pc-windows-gnu #41630

Closed
@malbarbo

Description

@malbarbo
> git clone https://github.com/rust-lang-nursery/compiler-builtins
> compiler-builtins

Works with nightly-2017-04-25 (llvm 3.9)

> rustup toolchain install nightly-2017-04-25
> rustup target add --toolchain nightly-2017-04-25 x86_64-pc-windows-gnu
> rustc +nightly-2017-04-25 -v --version
rustc 1.18.0-nightly (63c77214c 2017-04-24)
binary: rustc
commit-hash: 63c77214c1d38789652b465694b254205d1886e0
commit-date: 2017-04-24
host: x86_64-unknown-linux-gnu
release: 1.18.0-nightly
LLVM version: 3.9
> cargo +nightly-2017-04-25 build --target x86_64-pc-windows-gnu
   Compiling compiler_builtins v0.1.0 (file:///tmp/compiler-builtins)
    Finished dev [unoptimized + debuginfo] target(s) in 2.11 secs

Fails with nightly-2017-04-26 (llvm 4.0)

> rustup toolchain install nightly-2017-04-26
> rustup target add --toolchain nightly-2017-04-26 x86_64-pc-windows-gnu
> rustc +nightly-2017-04-26 -v --version
rustc 1.18.0-nightly (2b4c91158 2017-04-25)
binary: rustc
commit-hash: 2b4c911581099e247a68b3a8adc782d778f5190b
commit-date: 2017-04-25
host: x86_64-unknown-linux-gnu
release: 1.18.0-nightly
LLVM version: 4.0
> cargo +nightly-2017-04-26 build --target x86_64-pc-windows-gnu
   Compiling compiler_builtins v0.1.0 (file:///tmp/compiler-builtins)
rustc: /checkout/src/llvm/include/llvm/CodeGen/MachineFunction.h:452: bool llvm::MachineFunction::hasWinCFI() const: Assertion `HasWinCFI.hasValue() && "HasWinCFI not set yet!"' failed.
error: Could not compile `compiler_builtins`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions