Skip to content

rust fails to bootstrap when llvm 3.3 is installed in system #11260

@uzytkownik

Description

@uzytkownik

Building from git:

error: ar s x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd-04ff901e-0.9-pre.rlib failed with: signal: 6
note: stdout ---

note: stderr ---
ar: /var/tmp/portage-ondisk/portage/sys-devel/llvm-3.3-r2/work/llvm-3.3.src/lib/IR/Attributes.cpp:948: llvm::AttrBuilder& llvm::AttrBuilder::addAttribute(llvm::Attribute::AttrKind): Assertion `(unsigned)Val < Attribute::EndAttrKinds && "Attribute out of range!"' failed.

error: aborting due to previous error

Additional messages while running by hand:

task 'rustc' failed at 'explicit failure', /home/rustbuild/src/rust-buildbot/slave/snap3-linux/build/src/libsyntax/diagnostic.rs:102
task '<main>' failed at 'explicit failure', /home/rustbuild/src/rust-buildbot/slave/snap3-linux/build/src/librustc/lib.rs:441

Uninstalling system llvm is a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions