Skip to content

cannot build rustc with -g #29923

Closed
Closed
@nikomatsakis

Description

@nikomatsakis

When I try to bootstrap the compiler with RUSTFLAGS=-g, I get the following result:

!dbg attachment points at wrong subprogram for function
!157160 = !DISubprogram(name: "fnfn", linkageName: "fnfn", scope: !157144, file: !157144, line: 38, type: !46087, isLocal: true, isDefinition: true, scopeLine: 38, flags: DIFlagPrototyped, isOptimized: t\
rue, function: i64 (%closure.1177*, %"ast::Expr"*)* @_ZN3ext6expand11expand_expr13closure.70644E, templateParams: !1064, variables: !157161)
i64 (%closure.1177*, %"ast::Expr"*)* @_ZN3ext6expand11expand_expr13closure.70644E
  tail call void @llvm.dbg.value(metadata %"ext::expand::IdentRenamer"* %rename_fld.i.857, i64 0, metadata !157531, metadata !191193), !dbg !784008
!784008 = !DILocation(line: 113, scope: !157525, inlinedAt: !784009)
!784010 = distinct !DILexicalBlock(scope: !784011, file: !157144, line: 129, column: 56)
!160778 = !DISubprogram(name: "fnfn", linkageName: "fnfn", scope: !157144, file: !157144, line: 129, type: !160779, isLocal: true, isDefinition: true, scopeLine: 129, flags: DIFlagPrototyped, isOptimized\
: true, templateParams: !1064, variables: !160781)
LLVM ERROR: Broken function found, compilation aborted!
m

cc @rust-lang/compiler @michaelwoerister

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions