Skip to content

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

Closed
@ehsanul

Description

@ehsanul

I'm having trouble building rust on master lately. Here's the entire error:

compile_and_link: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/libsyntax.dylib
cp: x86_64-apple-darwin/stage1/lib/libextra.dylib
compile_and_link: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustc.dylib
cp: x86_64-apple-darwin/stage1/lib/libsyntax.dylib
error: ar s x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustc-5b94a16f-0.9-pre.rlib failed with: exit code: 1
note: stdout ---

note: stderr ---
Assertion failed: (isValidElementType(ElementType) && "Elements of a VectorType must be a primitive type"), function get, file Type.cpp, line 708.
ar: fatal error in /opt/local/bin/ranlib

error: aborting due to previous error
task 'rustc' failed at 'explicit failure', /Users/rustbuild/src/rust-buildbot/slave/snap3-mac/build/src/libsyntax/diagnostic.rs:102
task '<main>' failed at 'explicit failure', /Users/rustbuild/src/rust-buildbot/slave/snap3-mac/build/src/librustc/lib.rs:442

I tracked it down to this pull request: #10918

Commenting out the #[inline] attribute makes rust compile successfully for me.

I am on OSX 10.8.4, x86_64

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