Skip to content

Internal compiler error - "failed to find block with tag 12" #6873

Closed

Description

@indirect

Hi there... I'm trying to figure out how to build my own crates and use them, and I ran into this compiler error while compiling a two-line rust file. I created a gist with the files needed to reproduce, and a script that will trigger the bug: https://gist.github.com/indirect/5689005. I'm running off of incoming, compiled yesterday. Here's the output from the compile attempt:

$ rustc test.rs -L .
rust: ~"failed to find block with tag 12"
rust: task failed at 'explicit failure', /private/tmp/rust-8w9r/src/libextra/ebml.rs:202
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /private/tmp/rust-8w9r/src/librustc/rustc.rc:400
rust: domain main @0x7fae5a808410 root task failed

Activity

  1. huonw commented on Jul 23, 2013

    @huonw
    Contributor

    Looks like the same bug as #6698, which has been fixed. Running the test case (correctly) gives:

    test-6873.rs:4:10: 4:33 error: unresolved name `FromBase64::from_base64`.
    test-6873.rs:4   println(FromBase64::from_base64(~"it works"));
                             ^~~~~~~~~~~~~~~~~~~~~~~
    error: aborting due to previous error
    

    Closing.

  2. eerden commented on Oct 18, 2013

    @eerden

    This gives the same error:

    fn main(){
        let output_dir = from_str("/tmp/delete_me").unwrap();
        std::os::make_dir(&output_dir, 0b111_111_111);
        ::std::rt::io::support::PathLike::path_as_str(output_dir);
    }
    
  3. added a commit that references this issue on Mar 11, 2021
  4. added a commit that references this issue on Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions