Skip to content

LLVM assertion error with self-by-value #6068

Closed
@emberian

Description

@emberian

with https://github.com/cmr/rust/tree/methodize/char I consistently get

[17:50:25]~/hacking/rust/build> make check
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu
cfg: disabling rustc optimization (CFG_DISABLE_OPTIMIZE)
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: disabling C++ optimization (CFG_DISABLE_OPTIMIZE_CXX)
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
cfg: including dist rules
cfg: including test rules
check: formatting
/home/cmr/hacking/rust/src/libsyntax/parse/common.rs:143: NOTE: this could be done statically....

/home/cmr/hacking/rust/src/libcore/reflect.rs:423: NOTE remove after next snapshot

/home/cmr/hacking/rust/src/libcore/reflect.rs:456: NOTE remove after next snapshot

/home/cmr/hacking/rust/src/libcore/rt/io/flate.rs:13: NOTE: These ultimately belong somewhere else

compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore.so
rustc: /home/rustbuild/src/rust-buildbot/slave/snap3-linux/build/src/llvm/lib/VMCore/Instructions.cpp:2383: static llvm::CastInst* llvm::CastInst::CreatePointerCast(llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion `S->getType()->isPointerTy() && "Invalid cast"' failed.
/bin/sh: line 1: 15788 Aborted                 (core dumped) x86_64-unknown-linux-gnu/stage0/bin/rustc --cfg stage0 --target=x86_64-unknown-linux-gnu -o x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore.so /home/cmr/hacking/rust/src/libcore/core.rc
make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore.so] Error 134

Runs fine before the char commit. I don't know how to strip it down, because I have no idea what could be failing

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