Closed
Description
I tried this command:
rustup install nightly --profile complete && cargo install nu
with this ~/.cargo/config.toml:
[unstable]
codegen-backend = true
[unstable.gitoxide]
fetch = true
shallow_index = true
shallow_deps = true
checkout = true
internal_use_git2 = false
#[profile.dev]
#codegen-backend = "cranelift"
[profile.dev]
incremental = true
[profile.release]
opt-level = "z"
lto = "thin"
strip = true
incremental = true
[build]
rustc-wrapper = "ccache"
[target.x86_64-unknown-linux-gnu]
linker = "clang"
I expected a successful install of nushell.
Instead, this happened:
error: rustc interrupted by SIGSEGV, printing backtrace
/home/theo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-67e992fc9ebdf5ae.so(+0x359af13) [0x7f44e959af13]
/lib/x86_64-linux-gnu/libc.so.6(+0x3f5d0) [0x7f44e5e545d0]
/home/theo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM.so.19.1-rust-1.83.0-nightly(_ZN4llvm16FunctionImporter15importFunctionsERNS_6ModuleERKNS_8DenseMapINS_9StringRefESt13unordered_mapImNS_18GlobalValueSummary10ImportKindESt4hashImESt8equal_toImESaISt4pairIKmS7_EEENS_12DenseMapInfoIS4_vEENS_6detail12DenseMapPairIS4_SG_EEEE+0x6e2) [0x7f44e43b6ae4]
/home/theo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-67e992fc9ebdf5ae.so(LLVMRustPrepareThinLTOImport+0xce) [0x7f44eb8b85ce]
/home/theo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-67e992fc9ebdf5ae.so(_RNvXs1_Cs87LJ2YypnxP_18rustc_codegen_llvmNtB5_18LlvmCodegenBackendNtNtNtCsdhNFoV3RweI_17rustc_codegen_ssa6traits5write19WriteBackendMethods13optimize_thin+0x5b3) [0x7f44eb8b7b09]
/home/theo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-67e992fc9ebdf5ae.so(+0x5a41d93) [0x7f44eba41d93]
/home/theo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-67e992fc9ebdf5ae.so(+0x5a411a1) [0x7f44eba411a1]
/home/theo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-67e992fc9ebdf5ae.so(+0x5a406ab) [0x7f44eba406ab]
/lib/x86_64-linux-gnu/libc.so.6(+0x8c732) [0x7f44e5ea1732]
/lib/x86_64-linux-gnu/libc.so.6(+0x1072b8) [0x7f44e5f1c2b8]
note: we would appreciate a report at https://github.com/rust-lang/rust
help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216
error: could not compile `nu` (bin "nu")
It seems to have random timing but it seems to be happening every time I run cargo install nu
again.
Meta
rustc --version --verbose
:
rustc 1.83.0-nightly (0609062a9 2024-09-13)
binary: rustc
commit-hash: 0609062a91c8f445c3e9a0de57e402f9b1b8b0a7
commit-date: 2024-09-13
host: x86_64-unknown-linux-gnu
release: 1.83.0-nightly
LLVM version: 19.1.0
I assume I'd have to build rustc and llvm in order to get more backtrace information...