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

Failed to build Racer with rustc 1.32.0-nightly #1005

Closed
updogliu opened this issue Nov 27, 2018 · 2 comments
Closed

Failed to build Racer with rustc 1.32.0-nightly #1005

updogliu opened this issue Nov 27, 2018 · 2 comments

Comments

@updogliu
Copy link

updogliu commented Nov 27, 2018

uname -a:
Linux updogliu-System-Product-Name 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

cargo version:
cargo 1.32.0-nightly (b3d0b2e54 2018-11-15)

Error:

Compiling serde_json v1.0.32
!dbg attachment points at wrong subprogram for function
!762 = distinct !DISubprogram(name: "deserialize<serde_json::de::MapKey<serde_json::read::StrRead>>", linkageName: "ZN5serde2de5impls89$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$alloc..string..String$GT$11deserialize17h3d566ed4cf5b72d1E", scope: !764, file: !763, line: 418, type: !768, isLocal: true, isDefinition: true, scopeLine: 418, flags: DIFlagPrototyped, isOptimized: true, unit: !193, templateParams: !856, retainedNodes: !854)
void (%"core::result::Result<alloc::string::String, error::Error>", i64)* @"ZN5serde2de5impls89$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$alloc..string..String$GT$11deserialize17h3d566ed4cf5b72d1E"
call void @llvm.dbg.value(metadata [0 x i8]* %23, metadata !1005, metadata !DIExpression(DW_OP_LLVM_fragment, 0, 64)), !dbg !1013
!1013 = !DILocation(line: 1, scope: !1006)
!1006 = 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_str17ha5d67f8033459979E", scope: !764, file: !763, line: 322, type: !1007, isLocal: true, isDefinition: true, scopeLine: 322, flags: DIFlagPrototyped, isOptimized: true, unit: !193, templateParams: !1011, retainedNodes: !1009)
!1006 = 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_str17ha5d67f8033459979E", scope: !764, file: !763, line: 322, type: !1007, isLocal: true, isDefinition: true, scopeLine: 322, flags: DIFlagPrototyped, isOptimized: true, unit: !193, templateParams: !1011, retainedNodes: !1009)
!dbg attachment points at wrong subprogram for function
!762 = distinct !DISubprogram(name: "deserialize<serde_json::de::MapKey<serde_json::read::StrRead>>", linkageName: "ZN5serde2de5impls89$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$alloc..string..String$GT$11deserialize17h3d566ed4cf5b72d1E", scope: !764, file: !763, line: 418, type: !768, isLocal: true, isDefinition: true, scopeLine: 418, flags: DIFlagPrototyped, isOptimized: true, unit: !193, templateParams: !856, retainedNodes: !854)
void (%"core::result::Result<alloc::string::String, error::Error>", i64)* @"ZN5serde2de5impls89$LT$impl$u20$serde..de..Deserialize$LT$$u27$de$GT$$u20$for$u20$alloc..string..String$GT$11deserialize17h3d566ed4cf5b72d1E"
call void @llvm.dbg.value(metadata [0 x i8]* %23, metadata !1005, metadata !DIExpression(DW_OP_LLVM_fragment, 0, 64)), !dbg !1016
!1016 = !DILocation(line: 1889, column: 12, scope: !1006, inlinedAt: !1017)
!1055 = 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_str17ha5d67f8033459979E", scope: !764, file: !763, line: 322, type: !1056, isLocal: true, isDefinition: true, scopeLine: 322, flags: DIFlagPrototyped, isOptimized: true, unit: !193, templateParams: !1061, retainedNodes: !1058)
!1055 = 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_str17ha5d67f8033459979E", scope: !764, file: !763, line: 322, type: !1056, isLocal: true, isDefinition: true, scopeLine: 322, flags: DIFlagPrototyped, isOptimized: true, unit: !193, templateParams: !1061, retainedNodes: !1058)
error: Could not compile serde_json.

Caused by:
process didn't exit successfully: rustc --crate-name serde_json /home/updogliu/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.32/src/lib.rs --color never --crate-type lib --emit=dep-info,link -C opt-level=3 -C debuginfo=2 --cfg 'feature="default"' -C metadata=bc00b3fcb0c67f47 -C extra-filename=-bc00b3fcb0c67f47 --out-dir /home/updogliu/go/src/github.com/racer-rust/racer/target/release/deps -L dependency=/home/updogliu/go/src/github.com/racer-rust/racer/target/release/deps --extern itoa=/home/updogliu/go/src/github.com/racer-rust/racer/target/release/deps/libitoa-4519f71077082ec6.rlib --extern ryu=/home/updogliu/go/src/github.com/racer-rust/racer/target/release/deps/libryu-4898fb721ca7fe9d.rlib --extern serde=/home/updogliu/go/src/github.com/racer-rust/racer/target/release/deps/libserde-7aa14ec5d33269ef.rlib --cap-lints allow (signal: 11, SIGSEGV: invalid memory reference)
warning: build failed, waiting for other jobs to finish...
error: build failed

@kngwyu
Copy link
Collaborator

kngwyu commented Nov 27, 2018

Thanks for reporting!
So... should we publish a new version without debug=1 ? 🤔

@kngwyu
Copy link
Collaborator

kngwyu commented Nov 27, 2018

Just released with 2.1.14, without debug=true

@kngwyu kngwyu closed this as completed Nov 27, 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