Skip to content

Latest nightly compiler panics when compiling gcc-rs #18

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

Closed
mystor opened this issue Dec 22, 2014 · 1 comment
Closed

Latest nightly compiler panics when compiling gcc-rs #18

mystor opened this issue Dec 22, 2014 · 1 comment

Comments

@mystor
Copy link
Contributor

mystor commented Dec 22, 2014

If you download the latest compiler, and attempt to compile gcc-rs (cargo build), you'll get an error like the following:

% cargo build
   Compiling gcc v0.1.2 (file://path/to/gcc-rs)
/path/to/gcc-rs/src/lib.rs:77:9: 77:18 error: internal compiler error: create_for_loop_var_metadata() - Referenced variable location is not an alloca!
/path/to/gcc-rs/src/lib.rs:77     for directory in config.include_directories.iter() {
                                      ^~~~~~~~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/diagnostic.rs:123


Could not compile `gcc`.

To learn more, run the command again with --verbose.

As the compiler output states, this is a bug with rustc, but it also could be manifest due to a bug in gcc-rs. So I thought I'd report it here.

(rust version: rustc 0.13.0-nightly (34d680009 2014-12-22 00:12:47 +0000))
(cargo version: cargo 0.0.1-pre-nightly (e11c317 2014-12-21 20:43:45 +0000))

@alexcrichton
Copy link
Member

Dupe of rust-lang/rust#20127, but thanks!

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