Skip to content
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

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

Closed
uzytkownik opened this issue Jan 1, 2014 · 1 comment
Closed

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

uzytkownik opened this issue Jan 1, 2014 · 1 comment

Comments

@uzytkownik
Copy link

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.

@alexcrichton
Copy link
Member

Closing as a dupe of #11162, there's a bit more information in that issue, but thanks for the report!

flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 31, 2023
[`unnecessary_find_map`]: look for then_some

Closes rust-lang#11260

changelog: [`unnecessary_find_map`]: lint `.then_some()` in closure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants