Skip to content

extra-debug-info with debug! causes error: internal compiler error: #5848

Closed

Description

@danluu

rustc -Z extra-debug-info debug.rs
error: internal compiler error: node_id_to_type: no type for node arg (id=756)

fn main() {
    debug!("foo")
}

Activity

  1. yichoi commented on Jun 10, 2013

    @yichoi
    Contributor

    error message changed

    rustc: /home/yichoi/rust_latest/src/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1367: void llvm::DwarfDebug::beginFunction(const llvm::MachineFunction*): Assertion `TheCU && "Unable to find compile unit!"' failed.
    Stack dump:
    0.      Running pass 'Function Pass Manager' on module 'debug.rc'.
    1.      Running pass 'X86 Assembly / Object Emitter' on function '@_ZN4main17_2b23311f69177dc03_00E'
    Aborted (core dumped)
    
  2. added a commit that references this issue on Jun 17, 2013
  3. msullivan commented on Aug 23, 2013

    @msullivan
    Contributor

    This was fixed.

  4. added 2 commits that reference this issue on Aug 11, 2020
  5. added 2 commits that reference this issue on Aug 21, 2026
    adb3c56
    bf1043c
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

    A-debuginfo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions