Skip to content

Nix doesn't compile anymore on rust nightly-2016-03-30 due to an LLVM error #339

Closed
@JohanLorenzo

Description

@JohanLorenzo

Thanks for this library!

When you compile nix on nightly-2016-03-30, you get the failure on the way to be fixed by #337.
Once this small nit is fixed, you get a more serious error:

rustc: /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::Function; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::Function*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
error: Could not compile `nix`.

I got this failure locally, and I also noticed it appears in #337, see this line.

I believe this is a bug in the rust compiler. But I'd prefer starting to document the failure here, it case it remains in the compiler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions