Skip to content

Compiling rust on OSX fails with Assertion failed: ((unsigned)Val < Attribute::EndAttrKinds && "Attribute out of range!") #10907

@xasmx

Description

@xasmx

Trying to compile latest rust (fresh clone from git) from master (487e58c) on OS X 10.8.5.

$ ./configure
...
$ make
...
compile_and_link: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/bin/rustc
cp: x86_64-apple-darwin/stage1/lib/librustrt.a
cp: x86_64-apple-darwin/stage1/lib/libstd.dylib
cp: x86_64-apple-darwin/stage1/lib/libextra.dylib
cp: x86_64-apple-darwin/stage1/lib/librustuv.dylib
cp: x86_64-apple-darwin/stage1/lib/libsyntax.dylib
cp: x86_64-apple-darwin/stage1/lib/librustc.dylib
cp: x86_64-apple-darwin/stage1/bin/rustc
compile: x86_64-apple-darwin/rt/stage1/rust_cxx_glue.o
compile: x86_64-apple-darwin/rt/stage1/rust_builtin.o
compile: x86_64-apple-darwin/rt/stage1/rust_upcall.o
compile: x86_64-apple-darwin/rt/stage1/miniz.o
compile: x86_64-apple-darwin/rt/stage1/rust_android_dummy.o
compile: x86_64-apple-darwin/rt/stage1/rust_test_helpers.o
compile: x86_64-apple-darwin/rt/stage1/arch/x86_64/_context.o
compile: x86_64-apple-darwin/rt/stage1/arch/x86_64/record_sp.o
link: x86_64-apple-darwin/rt/stage1/librustrt.a
/opt/local/bin/ranlib: file: x86_64-apple-darwin/rt/stage1/librustrt.a(rust_android_dummy.o) has no symbols
/opt/local/bin/ranlib: file: x86_64-apple-darwin/rt/stage1/librustrt.a(record_sp.o) has no symbols
cp: x86_64-apple-darwin/stage1/lib/rustc/x86_64-apple-darwin/lib/librustrt.a
compile: x86_64-apple-darwin/rt/stage1/arch/x86_64/morestack.o
link: x86_64-apple-darwin/rt/stage1/arch/x86_64/libmorestack.a
cp: x86_64-apple-darwin/stage1/lib/rustc/x86_64-apple-darwin/lib/libmorestack.a
compile_and_link: x86_64-apple-darwin/stage1/lib/rustc/x86_64-apple-darwin/lib/libstd.dylib
error: ar r x86_64-apple-darwin/stage1/lib/rustc/x86_64-apple-darwin/lib/libstd-6425b930ca146ae9-0.9-pre.rlib x86_64-apple-darwin/stage1/lib/rustc/x86_64-apple-darwin/lib/std.bc failed with: exit code: 1
note: stdout ---

note: stderr ---
Assertion failed: ((unsigned)Val < Attribute::EndAttrKinds && "Attribute out of range!"), function addAttribute, file Attributes.cpp, line 948.
ar: fatal error in /opt/local/bin/ranlib

error: aborting due to previous error
task 'rustc' failed at 'explicit failure', /Users/sami/dev/rust/src/libsyntax/diagnostic.rs:102
task '

' failed at 'explicit failure', /Users/sami/dev/rust/src/librustc/lib.rs:394
make: *** [x86_64-apple-darwin/stage1/lib/rustc/x86_64-apple-darwin/lib/libstd.dylib] Error 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-macosOperating system: macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions