Skip to content
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

ICE: serde_json triggers LLVM ERROR: Broken module found, compilation aborted! #56504

Closed
Boscop opened this issue Dec 4, 2018 · 1 comment
Closed

Comments

@Boscop
Copy link

Boscop commented Dec 4, 2018

cargo-features = ["profile-overrides"]

[profile.dev.overrides."*"]
opt-level = 3
!dbg attachment points at wrong subprogram for function
!819 = distinct !DISubprogram(name: "deserialize<serde_json::de::MapKey<serde_js
on::read::StrRead>>", linkageName: "_ZN5serde2de5impls89_$LT$impl$u20$serde..de.
.Deserialize$LT$$u27$de$GT$$u20$for$u20$alloc..string..String$GT$11deserialize17
h1d523c846d175462E", scope: !821, file: !820, line: 418, type: !823, isLocal: tr
ue, isDefinition: true, scopeLine: 418, flags: DIFlagPrototyped, isOptimized: tr
ue, unit: !212, templateParams: !955, retainedNodes: !953)
void (%"core::result::Result<alloc::string::String, error::Error>"*, i64*)* @"_Z
N5serde2de5impls89_$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u2
0$alloc..string..String$GT$11deserialize17h1d523c846d175462E"
  call void @llvm.dbg.value(metadata [0 x i8]* %24, metadata !1083, metadata !DI
Expression(DW_OP_LLVM_fragment, 0, 64)), !dbg !1091
!1091 = !DILocation(line: 1, scope: !1084)
!1084 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", link
ageName: "_ZN85_$LT$serde..de..impls..StringVisitor$u20$as$u20$serde..de..Visito
r$LT$$u27$de$GT$$GT$9visit_str17hf7794eda537869afE", scope: !821, file: !820, li
ne: 322, type: !1085, isLocal: true, isDefinition: true, scopeLine: 322, flags:
DIFlagPrototyped, isOptimized: true, unit: !212, templateParams: !1089, retained
Nodes: !1087)
!1084 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", link
ageName: "_ZN85_$LT$serde..de..impls..StringVisitor$u20$as$u20$serde..de..Visito
r$LT$$u27$de$GT$$GT$9visit_str17hf7794eda537869afE", scope: !821, file: !820, li
ne: 322, type: !1085, isLocal: true, isDefinition: true, scopeLine: 322, flags:
DIFlagPrototyped, isOptimized: true, unit: !212, templateParams: !1089, retained
Nodes: !1087)
!dbg attachment points at wrong subprogram for function
!819 = distinct !DISubprogram(name: "deserialize<serde_json::de::MapKey<serde_js
on::read::StrRead>>", linkageName: "_ZN5serde2de5impls89_$LT$impl$u20$serde..de.
.Deserialize$LT$$u27$de$GT$$u20$for$u20$alloc..string..String$GT$11deserialize17
h1d523c846d175462E", scope: !821, file: !820, line: 418, type: !823, isLocal: tr
ue, isDefinition: true, scopeLine: 418, flags: DIFlagPrototyped, isOptimized: tr
ue, unit: !212, templateParams: !955, retainedNodes: !953)
void (%"core::result::Result<alloc::string::String, error::Error>"*, i64*)* @"_Z
N5serde2de5impls89_$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u2
0$alloc..string..String$GT$11deserialize17h1d523c846d175462E"
  call void @llvm.dbg.value(metadata [0 x i8]* %27, metadata !1083, metadata !DI
Expression(DW_OP_LLVM_fragment, 0, 64)), !dbg !1094
!1094 = !DILocation(line: 1889, scope: !1084, inlinedAt: !1095)
!1133 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", link
ageName: "_ZN85_$LT$serde..de..impls..StringVisitor$u20$as$u20$serde..de..Visito
r$LT$$u27$de$GT$$GT$9visit_str17hf7794eda537869afE", scope: !821, file: !820, li
ne: 322, type: !1134, isLocal: true, isDefinition: true, scopeLine: 322, flags:
DIFlagPrototyped, isOptimized: true, unit: !212, templateParams: !1139, retained
Nodes: !1136)
!1133 = distinct !DISubprogram(name: "visit_str<serde_json::error::Error>", link
ageName: "_ZN85_$LT$serde..de..impls..StringVisitor$u20$as$u20$serde..de..Visito
r$LT$$u27$de$GT$$GT$9visit_str17hf7794eda537869afE", scope: !821, file: !820, li
ne: 322, type: !1134, isLocal: true, isDefinition: true, scopeLine: 322, flags:
DIFlagPrototyped, isOptimized: true, unit: !212, templateParams: !1139, retained
Nodes: !1136)
LLVM ERROR: Broken module found, compilation aborted!
error: Could not compile `serde_json`.
warning: build failed, waiting for other jobs to finish...
error: build failed

rustc 1.32.0-nightly (6bfb46e 2018-11-26)

Btw, it works without the profile override.

@nikic
Copy link
Contributor

nikic commented Dec 4, 2018

Duplicate of #56265, which has been fixed in the meantime. I see that you're using the nightly from 2018-11-26, which was still broken. Updating to a newer nightly should resolve this issue :)

@nikic nikic closed this as completed Dec 4, 2018
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