Skip to content

Building cargo_metadata fails on Windows #56320

Closed
@RalfJung

Description

@RalfJung

We are seeing the following failure only on our Windows CI:

!dbg attachment points at wrong subprogram for function
!6700 = distinct !DISubprogram(name: "deserialize_string<serde_json::read::StrRead,serde::de::impls::StringVisitor>", linkageName: "_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_string17hcce605131e43c7c6E", scope: !242, file: !241, line: 1226, type: !6701, isLocal: true, isDefinition: true, scopeLine: 1226, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !6707, retainedNodes: !6704)
void (%"core::result::Result<alloc::string::String, serde_json::error::Error>"*, %"serde_json::de::Deserializer<serde_json::read::StrRead>"*)* @"_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_string17hcce605131e43c7c6E"
  call void @llvm.dbg.value(metadata [0 x i8]* %55, metadata !6799, metadata !DIExpression(DW_OP_LLVM_fragment, 0, 64)), !dbg !6806
!6806 = !DILocation(line: 1, scope: !6800)
!6800 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN85_$LT$serde..de..impls..StringVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17h0bec0b0194cb7ea5E", scope: !1235, file: !1234, line: 322, type: !6801, isLocal: true, isDefinition: true, scopeLine: 322, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !6805, retainedNodes: !6803)
!6800 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN85_$LT$serde..de..impls..StringVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17h0bec0b0194cb7ea5E", scope: !1235, file: !1234, line: 322, type: !6801, isLocal: true, isDefinition: true, scopeLine: 322, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !6805, retainedNodes: !6803)
!dbg attachment points at wrong subprogram for function
!10326 = distinct !DISubprogram(name: "deserialize_struct<serde_json::read::StrRead,cargo_metadata::_IMPL_DESERIALIZE_FOR_Resolve::{{impl}}::deserialize::__Visitor>", linkageName: "_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_struct17h21b5155ed4594543E", scope: !242, file: !241, line: 1511, type: !10327, isLocal: true, isDefinition: true, scopeLine: 1511, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !10377, retainedNodes: !10346)
void (%"core::result::Result<Resolve, serde_json::error::Error>"*, %"serde_json::de::Deserializer<serde_json::read::StrRead>"*, [0 x i8]*, i64, [0 x { [0 x i8]*, i64 }]*, i64)* @"_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_struct17h21b5155ed4594543E"
  call void @llvm.dbg.value(metadata { [0 x i8]*, i64 }* undef, metadata !11012, metadata !DIExpression(DW_OP_deref)), !dbg !11020
!11020 = !DILocation(line: 1, scope: !11013)
!11013 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN220_$LT$cargo_metadata.._IMPL_DESERIALIZE_FOR_Resolve..$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$cargo_metadata..Resolve$GT$..deserialize..__FieldVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17hd07c068626818757E", scope: !10434, file: !53, line: 131, type: !11014, isLocal: true, isDefinition: true, scopeLine: 131, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !11018, retainedNodes: !11016)
!11013 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN220_$LT$cargo_metadata.._IMPL_DESERIALIZE_FOR_Resolve..$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$cargo_metadata..Resolve$GT$..deserialize..__FieldVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17hd07c068626818757E", scope: !10434, file: !53, line: 131, type: !11014, isLocal: true, isDefinition: true, scopeLine: 131, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !11018, retainedNodes: !11016)
conflicting debug info for argument
  call void @llvm.dbg.value(metadata { [0 x i8]*, i64 }* undef, metadata !11012, metadata !DIExpression(DW_OP_deref)), !dbg !11020
!10348 = !DILocalVariable(name: "_name", arg: 2, scope: !10326, file: !466, line: 1, type: !5)
!11012 = !DILocalVariable(name: "__value", arg: 2, scope: !11013, file: !53, line: 1, type: !5)
!dbg attachment points at wrong subprogram for function
!11789 = distinct !DISubprogram(name: "deserialize_struct<serde_json::read::StrRead,cargo_metadata::_IMPL_DESERIALIZE_FOR_Node::{{impl}}::deserialize::__Visitor>", linkageName: "_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_struct17h502d33d321991abcE", scope: !242, file: !241, line: 1511, type: !11790, isLocal: true, isDefinition: true, scopeLine: 1511, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !11827, retainedNodes: !11796)
void (%"core::result::Result<Node, serde_json::error::Error>"*, %"serde_json::de::Deserializer<serde_json::read::StrRead>"*, [0 x i8]*, i64, [0 x { [0 x i8]*, i64 }]*, i64)* @"_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_struct17h502d33d321991abcE"
  call void @llvm.dbg.value(metadata { [0 x i8]*, i64 }* undef, metadata !12257, metadata !DIExpression(DW_OP_deref)), !dbg !12263
!12263 = !DILocation(line: 1, scope: !12258)
!12258 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN214_$LT$cargo_metadata.._IMPL_DESERIALIZE_FOR_Node..$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$cargo_metadata..Node$GT$..deserialize..__FieldVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17hd1ce0cffad1eb3ccE", scope: !11890, file: !53, line: 141, type: !12259, isLocal: true, isDefinition: true, scopeLine: 141, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !11018, retainedNodes: !12261)
!12258 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN214_$LT$cargo_metadata.._IMPL_DESERIALIZE_FOR_Node..$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$cargo_metadata..Node$GT$..deserialize..__FieldVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17hd1ce0cffad1eb3ccE", scope: !11890, file: !53, line: 141, type: !12259, isLocal: true, isDefinition: true, scopeLine: 141, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !11018, retainedNodes: !12261)
conflicting debug info for argument
  call void @llvm.dbg.value(metadata { [0 x i8]*, i64 }* undef, metadata !12257, metadata !DIExpression(DW_OP_deref)), !dbg !12263
!11798 = !DILocalVariable(name: "_name", arg: 2, scope: !11789, file: !466, line: 1, type: !5)
!12257 = !DILocalVariable(name: "__value", arg: 2, scope: !12258, file: !53, line: 1, type: !5)
!dbg attachment points at wrong subprogram for function
!6692 = distinct !DISubprogram(name: "deserialize_string<serde_json::read::StrRead,serde::de::impls::StringVisitor>", linkageName: "_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_string17hcce605131e43c7c6E", scope: !242, file: !241, line: 1226, type: !6693, isLocal: true, isDefinition: true, scopeLine: 1226, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !6699, retainedNodes: !6696)
void (%"core::result::Result<alloc::string::String, serde_json::error::Error>"*, %"serde_json::de::Deserializer<serde_json::read::StrRead>"*)* @"_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_string17hcce605131e43c7c6E"
  call void @llvm.dbg.value(metadata [0 x i8]* %67, metadata !6791, metadata !DIExpression(DW_OP_LLVM_fragment, 0, 64)), !dbg !6801
!6801 = !DILocation(line: 1889, scope: !6792, inlinedAt: !6802)
!6840 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN85_$LT$serde..de..impls..StringVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17h0bec0b0194cb7ea5E", scope: !1235, file: !1234, line: 322, type: !6841, isLocal: true, isDefinition: true, scopeLine: 322, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !6846, retainedNodes: !6843)
!6840 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN85_$LT$serde..de..impls..StringVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17h0bec0b0194cb7ea5E", scope: !1235, file: !1234, line: 322, type: !6841, isLocal: true, isDefinition: true, scopeLine: 322, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !6846, retainedNodes: !6843)
!dbg attachment points at wrong subprogram for function
!10318 = distinct !DISubprogram(name: "deserialize_struct<serde_json::read::StrRead,cargo_metadata::_IMPL_DESERIALIZE_FOR_Resolve::{{impl}}::deserialize::__Visitor>", linkageName: "_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_struct17h21b5155ed4594543E", scope: !242, file: !241, line: 1511, type: !10319, isLocal: true, isDefinition: true, scopeLine: 1511, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !10369, retainedNodes: !10338)
void (%"core::result::Result<Resolve, serde_json::error::Error>"*, %"serde_json::de::Deserializer<serde_json::read::StrRead>"*, [0 x i8]*, i64, [0 x { [0 x i8]*, i64 }]*, i64)* @"_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_struct17h21b5155ed4594543E"
  call void @llvm.dbg.value(metadata [0 x i8]* %429, metadata !11032, metadata !DIExpression(DW_OP_LLVM_fragment, 0, 64)) #14, !dbg !11037
!11037 = !DILocation(line: 1, scope: !11033, inlinedAt: !11038)
!11098 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN220_$LT$cargo_metadata.._IMPL_DESERIALIZE_FOR_Resolve..$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$cargo_metadata..Resolve$GT$..deserialize..__FieldVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17hd07c068626818757E", scope: !10420, file: !53, line: 131, type: !11099, isLocal: true, isDefinition: true, scopeLine: 131, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !11104, retainedNodes: !11101)
!11098 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN220_$LT$cargo_metadata.._IMPL_DESERIALIZE_FOR_Resolve..$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$cargo_metadata..Resolve$GT$..deserialize..__FieldVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17hd07c068626818757E", scope: !10420, file: !53, line: 131, type: !11099, isLocal: true, isDefinition: true, scopeLine: 131, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !11104, retainedNodes: !11101)
conflicting debug info for argument
  call void @llvm.dbg.value(metadata { [0 x i8]*, i64 }* undef, metadata !11103, metadata !DIExpression(DW_OP_deref)), !dbg !11130
!10340 = !DILocalVariable(name: "_name", arg: 2, scope: !10318, file: !466, line: 1, type: !5)
!11103 = !DILocalVariable(name: "__value", arg: 2, scope: !11098, file: !53, line: 1, type: !5)
!dbg attachment points at wrong subprogram for function
!11778 = distinct !DISubprogram(name: "deserialize_struct<serde_json::read::StrRead,cargo_metadata::_IMPL_DESERIALIZE_FOR_Node::{{impl}}::deserialize::__Visitor>", linkageName: "_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_struct17h502d33d321991abcE", scope: !242, file: !241, line: 1511, type: !11779, isLocal: true, isDefinition: true, scopeLine: 1511, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !11816, retainedNodes: !11785)
void (%"core::result::Result<Node, serde_json::error::Error>"*, %"serde_json::de::Deserializer<serde_json::read::StrRead>"*, [0 x i8]*, i64, [0 x { [0 x i8]*, i64 }]*, i64)* @"_ZN119_$LT$$RF$$u27$a$u20$mut$u20$serde_json..de..Deserializer$LT$R$GT$$u20$as$u20$serde..de..Deserializer$LT$$u27$de$GT$$GT$18deserialize_struct17h502d33d321991abcE"
  call void @llvm.dbg.value(metadata [0 x i8]* %390, metadata !11032, metadata !DIExpression(DW_OP_LLVM_fragment, 0, 64)) #14, !dbg !12270
!12270 = !DILocation(line: 1, scope: !11033, inlinedAt: !12271)
!12277 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN214_$LT$cargo_metadata.._IMPL_DESERIALIZE_FOR_Node..$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$cargo_metadata..Node$GT$..deserialize..__FieldVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17hd1ce0cffad1eb3ccE", scope: !11854, file: !53, line: 141, type: !12278, isLocal: true, isDefinition: true, scopeLine: 141, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !11104, retainedNodes: !12280)
!12277 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", linkageName: "_ZN214_$LT$cargo_metadata.._IMPL_DESERIALIZE_FOR_Node..$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$cargo_metadata..Node$GT$..deserialize..__FieldVisitor$u20$as$u20$serde..de..Visitor$LT$$u27$de$GT$$GT$9visit_str17hd1ce0cffad1eb3ccE", scope: !11854, file: !53, line: 141, type: !12278, isLocal: true, isDefinition: true, scopeLine: 141, flags: DIFlagPrototyped, isOptimized: true, unit: !52, templateParams: !11104, retainedNodes: !12280)
conflicting debug info for argument
  call void @llvm.dbg.value(metadata { [0 x i8]*, i64 }* undef, metadata !12282, metadata !DIExpression(DW_OP_deref)), !dbg !12317
!11787 = !DILocalVariable(name: "_name", arg: 2, scope: !11778, file: !466, line: 1, type: !5)
!12282 = !DILocalVariable(name: "__value", arg: 2, scope: !12277, file: !53, line: 1, type: !5)
LLVM ERROR: Broken module found, compilation aborted!
error: Could not compile `cargo_metadata`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions