-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
internal compiler error: 'index out of bounds' #17289
Comments
This might be a problem in link-config. |
I am also seeing this problem. rust-lang/cargo@5ff469f and "make" says it's using rustc 0.12.0-pre. |
Are you both seeing this problem on macs or linux? I have the same crash when testing a small macro (copied from the rust repo). https://gist.github.com/nerdrew/b460bd73f8b63d632d15 Edit: I'm on a mac |
@nerdrew I'm on mac. |
The Here's the code to print them:
here's the output:
|
(@nerdrew's example above doesn't fail for me on linux.) This may be thread local storage getting junked up? (Or some other reason that causes the interner of the syntax extension to be disconnected from the interner of the main compiler, since 56 is exactly the number of default interned strings we have, and @nerdrew's list is exactly those strings.) Maybe @alexcrichton could deduce more (you enjoy playing with TLS, right? 😝 ). |
@nerdrew Yup, OSX. |
Any movement on this? I can't compile the postgres library, which makes me sad :( |
still happening in 3be6a2f with rust-lang/cargo@ee02b9a. |
Hmmmm. @alexcrichton any updates on this? I want to experiment with rust and the postgres library, but I can't build it :( I'm willing to look at the code and see, but some guidance would help a lot. |
@nerdrew @fyhuang just a shot in the dark but recently another bug I've posted was uncovered and it was related to usage of Homebrew. As we're all having this issue on OS X, are you guys checking out Rust through brew --HEAD? |
I've been installing the rust-nightly with my own homebrew tap: https://github.com/nerdrew/homebrew-tap/blob/master/rust-nightly.rb I'll investigate |
@oblitum Yes! I was indeed installing rust through |
Bam! Setting
Woooohoooo! |
not a shot in the dark at all it seems =D |
I think this is a dupe of #16029, but I'm not 100% sure. Note, however, @jgallagher wrote up an excellent explanation of that issue with some workarounds: #16029 (comment) |
The workaround from #16029 (comment) fixed it for me. I can't speak to the cause, but the solution indicates it's a dupe. |
The DYLD trick did not work for me - I am on OSX 10.9.5 $ export DYLD_LIBRARY_PATH=/usr/local/lib/rustlib/x86_64-apple-darwin/lib
touch target/snapshot/bin/cargo
"/usr/local/bin/rustc" -v
rustc 0.12.0-dev
target/snapshot/bin/cargo build --target x86_64-apple-darwin
Compiling toml v0.1.0 (https://github.com/alexcrichton/toml-rs#05c1eb42)
Compiling semver v0.1.0 (https://github.com/rust-lang/semver#5dee9181)
Compiling openssl-static-sys v0.0.1 (https://github.com/alexcrichton/openssl-static-sys#b0180139)
Compiling curl-sys v0.0.1 (https://github.com/alexcrichton/curl-rust?ref=bundle#1d43e08f)
Compiling flate2 v0.0.1 (https://github.com/alexcrichton/flate2-rs#68971ae7)
Compiling encoding v0.1.0 (https://github.com/lifthrasiir/rust-encoding#ff55916f)
Compiling glob v0.0.1 (https://github.com/rust-lang/glob#27338cbd)
Compiling link-config v0.0.1 (https://github.com/alexcrichton/link-config#0afbf50b)
Compiling tar v0.0.1 (https://github.com/alexcrichton/tar-rs#943d7c01)
Compiling libssh2-static-sys v0.0.1 (https://github.com/alexcrichton/libssh2-static-sys#80e71a30)
Compiling docopt v0.6.4 (https://github.com/docopt/docopt.rs#21ce1190)
Compiling url v0.1.0 (https://github.com/servo/rust-url#55b18b79)
Compiling curl v0.0.1 (https://github.com/alexcrichton/curl-rust?ref=bundle#1d43e08f)
Compiling docopt_macros v0.6.4 (https://github.com/docopt/docopt.rs#21ce1190)
Compiling libgit2 v0.0.1 (https://github.com/alexcrichton/git2-rs#c01b0b27)
Could not compile `libgit2`.
--- stderr
/Users/amitava/.cargo/git/checkouts/git2-rs-cf258e7bcbaee34d/master/libgit2/src/lib.rs:79:9: 79:14 error: no rules expected the token `const`
/Users/amitava/.cargo/git/checkouts/git2-rs-cf258e7bcbaee34d/master/libgit2/src/lib.rs:79 const GIT_REVPARSE_SINGLE = 1 << 0,
|
I think |
I am on rust-0.12-dev (installed via homebrew) extracting cargo-nightly-x86_64-apple-darwin/bin/cargo
touch target/snapshot/bin/cargo
"/usr/local/bin/rustc" -v
rustc 0.12.0-dev |
@ashee
which uses this homebrew tap to download the nightly build for Mac. You have to reinstall it to update, but it lets you track the latest and greatest, which a lot of active rust projects are doing. |
@jgallagher I was thinking of changing how my Thoughts? |
@nerdrew Personally I would like that. I didn't realize it was possible (but know very little about Homebrew so no surprise there). |
I'll try to push that up tonight. I hope it doesn't break your |
Thanks @jgallagher - I built rust from source and built cargo against it. Reminder - do not forget to set DYLD_LIBRARY_PATH if you used a custom --prefix during configure export DYLD_LIBRARY_PATH=$RUST_PREFIX/lib |
Is this good to close? |
I think so. I had to unset |
I do too. If anyone has something new, please just open a new issue, thanks! |
#16029 should be included in this analysis of issue closing. |
Building rust-lang/cargo@31c4baf on 63eaba2 but got this:
The text was updated successfully, but these errors were encountered: