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

some tier 2 rustc 1.81 hosts cannot bootstrap stable 1.82 #129268

Open
alitariq4589 opened this issue Aug 19, 2024 · 26 comments
Open

some tier 2 rustc 1.81 hosts cannot bootstrap stable 1.82 #129268

alitariq4589 opened this issue Aug 19, 2024 · 26 comments
Labels
C-bug Category: This is a bug. I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-riscv Target: RISC-V architecture T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@alitariq4589
Copy link

I am trying to build rust compiler from source using default method provided in the documentation for Banana Pi F3 which is RISC-V 64-bit SBC. Operating system is Bianbu 1.0.9 (it is debian based distribution)

I tried this code:
Compiling the rust from the source for riscv64

git clone --branch master --single-branch --depth=1 https://github.com/rust-lang/rust.git
./configure --set install.prefix=$PATH_TO_INSTALL
export RUST_MIN_STACK=1000000000
cd rust || exit
./x.py build && ./x.py install

I expected to see this happen: Install successfully on the desired machine

Instead, this happened: Getting help: you can increase rustc's stack size by setting RUST_MIN_STACK=2000000000 error: rustc interrupted by SIGSEGV, printing backtrace

Meta

rustc --version --verbose:

master branch commit: 45fbf41deb24581471e3e56824d9318d3d415cb8
Backtrace (adding full CI pipeline log; also available at [this link](https://dash.cloud-v.co/view/Cloud-V%20Builds/job/cloud-v-builds-folder/job/rust-riscv-build/20/console))

Started by user [cloud-v-admin](https://dash.cloud-v.co/user/cloud-v-admin)
Checking out git https://github.com/alitariq4589/cloud-v-builds into /home/jenkins_user/.jenkins/workspace/cloud-v-builds-folder/rust-riscv-build@script/38df899f100d5dacd0d1397cf2a667bf679162c48c27ba004e48cc05ac0676b5 to read rust
The recommended git tool is: NONE
No credentials specified
 > git rev-parse --resolve-git-dir /home/jenkins_user/.jenkins/workspace/cloud-v-builds-folder/rust-riscv-build@script/38df899f100d5dacd0d1397cf2a667bf679162c48c27ba004e48cc05ac0676b5/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/alitariq4589/cloud-v-builds # timeout=10
Fetching upstream changes from https://github.com/alitariq4589/cloud-v-builds
 > git --version # timeout=10
 > git --version # 'git version 2.34.1'
 > git fetch --tags --force --progress -- https://github.com/alitariq4589/cloud-v-builds +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse origin/main^{commit} # timeout=10
Checking out Revision ad0ce79faadb91afc6af36727d9e9f291931b5ba (origin/main)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f ad0ce79faadb91afc6af36727d9e9f291931b5ba # timeout=10
Commit message: "Increased stack size"
 > git rev-list --no-walk 29ae58dae77a5d5152abbf95e4226857247b5e22 # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] node
Running on [J-BPF3-1-admin](https://dash.cloud-v.co/computer/J%2DBPF3%2D1%2Dadmin/) in /home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Clean Workspace)
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Installing Dependencies)
[Pipeline] sh
Hit:1 http://archive.spacemit.com/bianbu-ports mantic/snapshots/v1.0.9 InRelease
Hit:2 http://archive.spacemit.com/bianbu-ports mantic-security/snapshots/v1.0.9 InRelease
Hit:3 http://archive.spacemit.com/bianbu-ports mantic-spacemit/snapshots/v1.0.9 InRelease
Hit:4 http://archive.spacemit.com/bianbu-ports mantic-porting/snapshots/v1.0.9 InRelease
Hit:5 http://archive.spacemit.com/bianbu-ports mantic-customization/snapshots/v1.0.9 InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.40.1-1ubuntu1).
curl is already the newest version (8.2.1-1ubuntu3.1).
pkg-config is already the newest version (1.8.1-2).
g++ is already the newest version (4:13.2.0-1ubuntu1).
libssl-dev is already the newest version (3.0.10-1ubuntu2.3-bb1).
ninja-build is already the newest version (1.11.1-2).
make is already the newest version (4.3-4.1build1).
cmake is already the newest version (3.27.4-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Setting Directories and clone)
[Pipeline] sh
Cloning into 'rust'...
Updating files:  99% (48834/49153)
Updating files: 100% (49153/49153)
Updating files: 100% (49153/49153), done.
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Run system_info)
[Pipeline] sh
=============================================================
                       CPU INFO START                        
=============================================================
processor	: 0
hart		: 0
model name	: Spacemit(R) X60
isa		: rv64imafdcv_sscofpmf_sstc_svpbmt_zicbom_zicboz_zicbop_zihintpause
mmu		: sv39
mvendorid	: 0x710
marchid		: 0x8000000058000001
mimpid		: 0x1000000049772200

processor	: 1
hart		: 1
model name	: Spacemit(R) X60
isa		: rv64imafdcv_sscofpmf_sstc_svpbmt_zicbom_zicboz_zicbop_zihintpause
mmu		: sv39
mvendorid	: 0x710
marchid		: 0x8000000058000001
mimpid		: 0x1000000049772200

processor	: 2
hart		: 2
model name	: Spacemit(R) X60
isa		: rv64imafdcv_sscofpmf_sstc_svpbmt_zicbom_zicboz_zicbop_zihintpause
mmu		: sv39
mvendorid	: 0x710
marchid		: 0x8000000058000001
mimpid		: 0x1000000049772200

processor	: 3
hart		: 3
model name	: Spacemit(R) X60
isa		: rv64imafdcv_sscofpmf_sstc_svpbmt_zicbom_zicboz_zicbop_zihintpause
mmu		: sv39
mvendorid	: 0x710
marchid		: 0x8000000058000001
mimpid		: 0x1000000049772200

processor	: 4
hart		: 4
model name	: Spacemit(R) X60
isa		: rv64imafdcv_sscofpmf_sstc_svpbmt_zicbom_zicboz_zicbop_zihintpause
mmu		: sv39
mvendorid	: 0x710
marchid		: 0x8000000058000001
mimpid		: 0x1000000049772200

processor	: 5
hart		: 5
model name	: Spacemit(R) X60
isa		: rv64imafdcv_sscofpmf_sstc_svpbmt_zicbom_zicboz_zicbop_zihintpause
mmu		: sv39
mvendorid	: 0x710
marchid		: 0x8000000058000001
mimpid		: 0x1000000049772200

processor	: 6
hart		: 6
model name	: Spacemit(R) X60
isa		: rv64imafdcv_sscofpmf_sstc_svpbmt_zicbom_zicboz_zicbop_zihintpause
mmu		: sv39
mvendorid	: 0x710
marchid		: 0x8000000058000001
mimpid		: 0x1000000049772200

processor	: 7
hart		: 7
model name	: Spacemit(R) X60
isa		: rv64imafdcv_sscofpmf_sstc_svpbmt_zicbom_zicboz_zicbop_zihintpause
mmu		: sv39
mvendorid	: 0x710
marchid		: 0x8000000058000001
mimpid		: 0x1000000049772200

=============================================================
                       CPU INFO END                          
=============================================================
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Run configure)
[Pipeline] sh
configure: processing command line
configure: 
configure: build.configure-args := ['--set', 'install.prefix=/home/riscv-builds/r ...
configure: install.prefix       := /home/riscv-builds/runner_dir/workspace/cloud- ...
configure: profile              := dist
configure: 
configure: writing `config.toml` in current directory
configure: 
configure: run `python /home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/x.py --help`
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (make)
[Pipeline] sh
downloading https://static.rust-lang.org/dist/2024-07-26/rust-std-beta-riscv64gc-unknown-linux-gnu.tar.xz
###########################################################               83.2%
######################################################################## 100.0%
downloading https://static.rust-lang.org/dist/2024-07-26/rustc-beta-riscv64gc-unknown-linux-gnu.tar.xz
##################################################################        91.9%
####################################################################      95.4%
#####################################################################     96.0%
######################################################################## 100.0%
downloading https://static.rust-lang.org/dist/2024-07-26/cargo-beta-riscv64gc-unknown-linux-gnu.tar.xz
########                                                                  12.1%
######################################################################## 100.0%
extracting /home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/cache/2024-07-26/rust-std-beta-riscv64gc-unknown-linux-gnu.tar.xz
extracting /home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/cache/2024-07-26/rustc-beta-riscv64gc-unknown-linux-gnu.tar.xz
extracting /home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/cache/2024-07-26/cargo-beta-riscv64gc-unknown-linux-gnu.tar.xz
Building bootstrap
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.12
   Compiling memchr v2.7.4
   Compiling typenum v1.17.0
   Compiling version_check v0.9.5
   Compiling libc v0.2.157
   Compiling cc v1.0.97
   Compiling serde v1.0.208
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f88a5f7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f9088c800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f87c3528a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f87d76aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3f8d9fe1fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f8d9ff456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f8d9fecea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f8d9ff142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f8d9fee2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f87d7d83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f87bea956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f87c3c010]

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=2000000000
   Compiling crossbeam-utils v0.8.20
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f90c117f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f98a3e800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f8fde728a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f8ff28aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3f95bb01fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f95bb1456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f95bb0cea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f95bb1142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f95bb0e2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f8ff2f83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f8fd9c956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f8fdee010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f8f2b97f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f970e6800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f8e48f28a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f8e5d0aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3f942581fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f94259456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f94258cea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f94259142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f94258e2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f8e5d783a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f8e444956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f8e496010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f7b0b97f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f82ee6800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f7a28f28a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f7a3d0aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3f800581fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f80059456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f80058cea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f80059142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f80058e2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f7a3d783a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f7a244956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f7a296010]

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=2000000000
   Compiling rustix v0.38.34
   Compiling regex-syntax v0.8.4
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3fa20b37f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fa9ee0800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3fa128928a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3fa13caaac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3fa70521fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3fa7053456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3fa7052cea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3fa7053142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3fa7052e2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3fa13d183a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3fa123e956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3fa1290010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f9be7e7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fa3cab800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f9b05428a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f9b195aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3fa0e1d1fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3fa0e1e456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3fa0e1dcea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3fa0e1e142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3fa0e1de2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f9b19c83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f9b009956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f9b05b010]

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=2000000000
   Compiling generic-array v0.14.7
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f9e7b97f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fa65e6800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f9d98f28a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f9dad0aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3fa37581fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3fa3759456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3fa3758cea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3fa3759142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3fa3758e2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f9dad783a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f9d944956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f9d996010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f7c2dd7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f8410a800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f7b4b328a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f7b5f4aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3f8127c1fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f8127d456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f8127ccea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f8127d142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f8127ce2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f7b5fb83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f7b468956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f7b4ba010]

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=2000000000
   Compiling cfg-if v1.0.0
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3fa83d77f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fb0204800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3fa75ad28a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3fa76eeaac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3fad3761fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3fad377456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3fad376cea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3fad377142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3fad376e2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3fa76f583a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3fa7562956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3fa75b4010]

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=2000000000
   Compiling aho-corasick v1.1.3
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f8186e7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f8969b800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f80a4428a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f80b85aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3f8680d1fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f8680e456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f8680dcea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f8680e142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f8680de2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f80b8c83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f809f9956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f80a4b010]

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=2000000000
   Compiling linux-raw-sys v0.4.14
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f8a9fc7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f92829800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f89bd228a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f89d13aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3f8f99b1fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f8f99c456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f8f99bcea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f8f99c142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f8f99be2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f89d1a83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f89b87956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f89bd9010]

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=2000000000
   Compiling pkg-config v0.3.30
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f7ac817f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f82aae800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f79e5728a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f79f98aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3f7fc201fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f7fc21456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f7fc20cea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f7fc21142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f7fc20e2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f79f9f83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f79e0c956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f79e5e010]

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=2000000000
   Compiling quote v1.0.36
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3fa602f7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fade5c800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3fa520528a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3fa5346aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3faafce1fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3faafcf456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3faafcecea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3faafcf142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3faafcee2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3fa534d83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3fa51ba956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3fa520c010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3fa3ede7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fabd0b800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3fa30b428a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3fa31f5aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3fa8e7d1fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3fa8e7e456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3fa8e7dcea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3fa8e7e142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3fa8e7de2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3fa31fc83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3fa3069956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3fa30bb010]

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=2000000000
error: could not compile `typenum` (lib)

Caused by:
  process didn't exit successfully: `/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/rustc --crate-name typenum --edition=2018 /home/riscv-builds/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typenum-1.17.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("const-generics", "force_unix_path_separator", "i128", "no_std", "scale-info", "scale_info", "strict"))' -C metadata=932679a5a8e9f33d -C extra-filename=-932679a5a8e9f33d --out-dir /home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/bootstrap/debug/deps -C strip=debuginfo -L dependency=/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/bootstrap/debug/deps --cap-lints allow -Zallow-features= -Wrust_2018_idioms -Wunused_lifetimes -Dwarnings` (signal: 11, SIGSEGV: invalid memory reference)
warning: build failed, waiting for other jobs to finish...
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f7a1fe7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f8202b800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f793d428a]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys3pal4unix2fs4File4read17h65bbd351998954fcE+0x20)[0x3f79515aac]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1fc)[0x3f7f19d1fc]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f7f19e456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f7f19dcea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f7f19e142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f7f19de2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f7951c83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f79389956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f793db010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f8538c7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f8d1b9800]
/lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3f845677c2]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17habace9b224f278c5E+0x6e)[0x3f846ae388]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1a4)[0x3f8a32b1a4]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f8a32c456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f8a32bcea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f8a32c142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f8a32be2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f846aa83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f84517956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f84569010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f8b98d7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f937ba800]
/lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3f8ab687c2]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17habace9b224f278c5E+0x6e)[0x3f8acaf388]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1a4)[0x3f9092c1a4]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f9092d456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f9092ccea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f9092d142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f9092ce2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f8acab83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f8ab18956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f8ab6a010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f94ffb7f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f9ce28800]
/lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3f941d67c2]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys4sync5mutex5futex5Mutex14lock_contended17hf4ec6a194184e2edE+0x98)[0x3f942d961c]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17habace9b224f278c5E+0xaa)[0x3f9431d3c4]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1a4)[0x3f99f9a1a4]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f99f9b456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f99f9acea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f99f9b142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f99f9ae2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f9431983a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f94186956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f941d8010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f7c6617f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f8448e800]
/lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3f7b83c7c2]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17habace9b224f278c5E+0x6e)[0x3f7b983388]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1a4)[0x3f816001a4]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f81601456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f81600cea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f81601142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f81600e2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f7b97f83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f7b7ec956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f7b83e010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3f916017f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f9942e800]
/lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3f907dc7c2]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys4sync5mutex5futex5Mutex14lock_contended17hf4ec6a194184e2edE+0x98)[0x3f908df61c]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17habace9b224f278c5E+0xaa)[0x3f909233c4]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1a4)[0x3f965a01a4]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3f965a1456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3f965a0cea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3f965a1142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3f965a0e2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3f9091f83a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f9078c956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f907de010]

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=2000000000
error: rustc interrupted by SIGSEGV, printing backtrace

/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0xc4b7f2)[0x3faa6a77f2]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fb24d4800]
/lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3fa98827c2]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys4sync5mutex5futex5Mutex14lock_contended17hf4ec6a194184e2edE+0x98)[0x3fa998561c]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17habace9b224f278c5E+0xaa)[0x3fa99c93c4]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5bea1a4)[0x3faf6461a4]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb456)[0x3faf647456]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beacea)[0x3faf646cea]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beb142)[0x3faf647142]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/librustc_driver-8b140680c8414886.so(+0x5beae2e)[0x3faf646e2e]
/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/../lib/libstd-6fe59118e7b2d661.so(rust_metadata_std_c0ba54d71f59c23d+0x8683a)[0x3fa99c583a]
/lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3fa9832956]
/lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3fa9884010]

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=2000000000
failed to run: /home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/build/riscv64gc-unknown-linux-gnu/stage0/bin/cargo build --manifest-path /home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/src/bootstrap/Cargo.toml
Build completed unsuccessfully in 0:02:52
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE

@alitariq4589 alitariq4589 added the C-bug Category: This is a bug. label Aug 19, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Aug 19, 2024
@saethlin
Copy link
Member

This looks like a duplicate of #117022 which concluded this is a kernel bug.

@saethlin saethlin added I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-riscv Target: RISC-V architecture C-discussion Category: Discussion or questions that doesn't represent real issues. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. C-bug Category: This is a bug. labels Aug 19, 2024
@alitariq4589
Copy link
Author

Is there a list of kernel versions where rust can be successfully compiled?

@saethlin
Copy link
Member

No. Why do you ask?

@alitariq4589
Copy link
Author

No. Why do you ask?

Because you said it is a kernel bug. There should be a list of kernels where this bug does not exist (or maybe a kernel version after which the bug started appearing).

In my first post, I tried building it on Banana Pi-F3 RISC-V SBC where it gave the error. The output of uname -a on that SBC is:

Linux k1 6.1.15 #1.0.9 SMP PREEMPT Fri Jul 19 08:49:17 UTC 2024 riscv64 riscv64 riscv64 GNU/Linux

Now I changed the computing machine to visionfive 2 which is running debian. The output of uname -a on that SBC is:

Linux sf2-6 6.1.31-starfive #1 SMP Mon Mar  4 21:31:49 CST 2024 riscv64 GNU/Linux

This time (while building on visionfive 2) I received the following error:

Building stage0 library artifacts (riscv64gc-unknown-linux-gnu)
   Compiling cc v1.0.99
   Compiling core v0.0.0 (/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/library/core)
   Compiling libc v0.2.158
   Compiling memchr v2.5.0
   Compiling std v0.0.0 (/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/library/std)
   Compiling compiler_builtins v0.1.120
   Compiling rustc-std-workspace-core v1.99.0 (/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/library/rustc-std-workspace-core)
error: internal compiler error: compiler/rustc_codegen_llvm/src/abi.rs:126:22: unsupported float: Reg { kind: Float, size: Size(2 bytes) }

thread 'rustc' panicked at compiler/rustc_codegen_llvm/src/abi.rs:126:22:
Box<dyn Any>
stack backtrace:
   0:       0x3fb27b9c58 - std::backtrace_rs::backtrace::libunwind::trace::h3610234d057f9107
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:       0x3fb27b9c58 - std::backtrace_rs::backtrace::trace_unsynchronized::h9c75e9141b188df7
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:       0x3fb27b9c58 - std::sys::backtrace::_print_fmt::hcca7e86924269d75
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/std/src/sys/backtrace.rs:65:5
   3:       0x3fb27b9c58 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hd64ac596b8cbace5
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/std/src/sys/backtrace.rs:40:26
   4:       0x3fb27ff9ac - core::fmt::rt::Argument::fmt::h4f520b1856c2125e
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/core/src/fmt/rt.rs:173:76
   5:       0x3fb27ff9ac - core::fmt::write::h6215fe458f8e8585
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/core/src/fmt/mod.rs:1182:21
   6:       0x3fb27af874 - std::io::Write::write_fmt::h9584992fa2fb67f0
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/std/src/io/mod.rs:1827:15
   7:       0x3fb27bbf1e - std::sys::backtrace::BacktraceLock::print::h2c0c72a07c3ac1d3
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/std/src/sys/backtrace.rs:43:9
   8:       0x3fb27bbf1e - std::panicking::default_hook::{{closure}}::h0b5a4d197d152c99
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/std/src/panicking.rs:269:22
   9:       0x3fb27bbb8a - std::panicking::default_hook::h09235e239952be22
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/std/src/panicking.rs:296:9
  10:       0x3fb34c18d8 - <alloc[660488e453659534]::boxed::Box<rustc_driver_impl[2076cbadfe07fc6e]::install_ice_hook::{closure#0}> as core[2fe8797a529ef4aa]::ops::function::Fn<(&dyn for<'a, 'b> core[2fe8797a529ef4aa]::ops::function::Fn<(&'a std[c0ba54d71f59c23d]::panic::PanicHookInfo<'b>,), Output = ()> + core[2fe8797a529ef4aa]::marker::Sync + core[2fe8797a529ef4aa]::marker::Send, &std[c0ba54d71f59c23d]::panic::PanicHookInfo)>>::call
  11:       0x3fb27bcd8e - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h87b6de2342e51ae1
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/alloc/src/boxed.rs:2084:9
  12:       0x3fb27bcd8e - std::panicking::rust_panic_with_hook::h447ecdf7bc0c3d14
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/std/src/panicking.rs:808:13
  13:       0x3fb8120c38 - std[c0ba54d71f59c23d]::panicking::begin_panic::<rustc_errors[77361dac36e73121]::ExplicitBug>::{closure#0}
  14:       0x3fb8120bfc - std[c0ba54d71f59c23d]::sys::backtrace::__rust_end_short_backtrace::<std[c0ba54d71f59c23d]::panicking::begin_panic<rustc_errors[77361dac36e73121]::ExplicitBug>::{closure#0}, !>
  15:       0x3fb33ad1e8 - std[c0ba54d71f59c23d]::panicking::begin_panic::<rustc_errors[77361dac36e73121]::ExplicitBug>
  16:       0x3fb8108a36 - <rustc_errors[77361dac36e73121]::diagnostic::BugAbort as rustc_errors[77361dac36e73121]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  17:       0x3fb7f91e22 - rustc_middle[c99c7cae21af1769]::util::bug::opt_span_bug_fmt::<rustc_span[97807058d5de261a]::span_encoding::Span>::{closure#0}
  18:       0x3fb7f8dc2e - rustc_middle[c99c7cae21af1769]::ty::context::tls::with_opt::<rustc_middle[c99c7cae21af1769]::util::bug::opt_span_bug_fmt<rustc_span[97807058d5de261a]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  19:       0x3fb7f8dbf4 - rustc_middle[c99c7cae21af1769]::ty::context::tls::with_context_opt::<rustc_middle[c99c7cae21af1769]::ty::context::tls::with_opt<rustc_middle[c99c7cae21af1769]::util::bug::opt_span_bug_fmt<rustc_span[97807058d5de261a]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  20:       0x3fb33929da - rustc_middle[c99c7cae21af1769]::util::bug::bug_fmt
  21:       0x3fb380411a - <rustc_target[c1b952af68aa911c]::abi::call::Reg as rustc_codegen_llvm[90b1cf4d6fa9428]::abi::LlvmType>::llvm_type
  22:       0x3fb3804138 - <rustc_target[c1b952af68aa911c]::abi::call::CastTarget as rustc_codegen_llvm[90b1cf4d6fa9428]::abi::LlvmType>::llvm_type
  23:       0x3fb3804af4 - <rustc_target[c1b952af68aa911c]::abi::call::FnAbi<rustc_middle[c99c7cae21af1769]::ty::Ty> as rustc_codegen_llvm[90b1cf4d6fa9428]::abi::FnAbiLlvmExt>::llvm_type
  24:       0x3fb37c9d94 - <rustc_codegen_llvm[90b1cf4d6fa9428]::context::CodegenCx>::declare_fn
  25:       0x3fb37cada6 - <rustc_codegen_llvm[90b1cf4d6fa9428]::context::CodegenCx as rustc_codegen_ssa[262b9506bcbe985f]::traits::declare::PreDefineMethods>::predefine_fn
  26:       0x3fb37b2554 - rustc_codegen_llvm[90b1cf4d6fa9428]::base::compile_codegen_unit::module_codegen
  27:       0x3fb37b18aa - rustc_codegen_llvm[90b1cf4d6fa9428]::base::compile_codegen_unit
  28:       0x3fb382ff58 - rustc_codegen_ssa[262b9506bcbe985f]::base::codegen_crate::<rustc_codegen_llvm[90b1cf4d6fa9428]::LlvmCodegenBackend>
  29:       0x3fb37f69d6 - <rustc_codegen_llvm[90b1cf4d6fa9428]::LlvmCodegenBackend as rustc_codegen_ssa[262b9506bcbe985f]::traits::backend::CodegenBackend>::codegen_crate
  30:       0x3fb372c580 - rustc_interface[d5f0e016c6d7f9ff]::passes::start_codegen
  31:       0x3fb36c9c8c - <rustc_interface[d5f0e016c6d7f9ff]::queries::Linker>::codegen_and_build_linker
  32:       0x3fb34f2f74 - <rustc_middle[c99c7cae21af1769]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[2076cbadfe07fc6e]::run_compiler::{closure#0}::{closure#1}::{closure#6}, core[2fe8797a529ef4aa]::result::Result<core[2fe8797a529ef4aa]::option::Option<rustc_interface[d5f0e016c6d7f9ff]::queries::Linker>, rustc_span[97807058d5de261a]::ErrorGuaranteed>>
  33:       0x3fb34e6f10 - <rustc_interface[d5f0e016c6d7f9ff]::queries::QueryResult<&rustc_middle[c99c7cae21af1769]::ty::context::GlobalCtxt>>::enter::<core[2fe8797a529ef4aa]::result::Result<core[2fe8797a529ef4aa]::option::Option<rustc_interface[d5f0e016c6d7f9ff]::queries::Linker>, rustc_span[97807058d5de261a]::ErrorGuaranteed>, rustc_driver_impl[2076cbadfe07fc6e]::run_compiler::{closure#0}::{closure#1}::{closure#6}>
  34:       0x3fb34d30c2 - <rustc_interface[d5f0e016c6d7f9ff]::interface::Compiler>::enter::<rustc_driver_impl[2076cbadfe07fc6e]::run_compiler::{closure#0}::{closure#1}, core[2fe8797a529ef4aa]::result::Result<core[2fe8797a529ef4aa]::option::Option<rustc_interface[d5f0e016c6d7f9ff]::queries::Linker>, rustc_span[97807058d5de261a]::ErrorGuaranteed>>
  35:       0x3fb34b7ca6 - <scoped_tls[721ab162e8a7d2a]::ScopedKey<rustc_span[97807058d5de261a]::SessionGlobals>>::set::<rustc_interface[d5f0e016c6d7f9ff]::util::run_in_thread_with_globals<rustc_interface[d5f0e016c6d7f9ff]::interface::run_compiler<core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>, rustc_driver_impl[2076cbadfe07fc6e]::run_compiler::{closure#0}>::{closure#1}, core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>>
  36:       0x3fb34d2908 - rustc_span[97807058d5de261a]::create_session_globals_then::<core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>, rustc_interface[d5f0e016c6d7f9ff]::util::run_in_thread_with_globals<rustc_interface[d5f0e016c6d7f9ff]::interface::run_compiler<core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>, rustc_driver_impl[2076cbadfe07fc6e]::run_compiler::{closure#0}>::{closure#1}, core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
  37:       0x3fb34eb6a2 - std[c0ba54d71f59c23d]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[d5f0e016c6d7f9ff]::util::run_in_thread_with_globals<rustc_interface[d5f0e016c6d7f9ff]::interface::run_compiler<core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>, rustc_driver_impl[2076cbadfe07fc6e]::run_compiler::{closure#0}>::{closure#1}, core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>>
  38:       0x3fb34bf60a - std[c0ba54d71f59c23d]::panicking::try::do_call::<core[2fe8797a529ef4aa]::panic::unwind_safe::AssertUnwindSafe<<std[c0ba54d71f59c23d]::thread::Builder>::spawn_unchecked_<rustc_interface[d5f0e016c6d7f9ff]::util::run_in_thread_with_globals<rustc_interface[d5f0e016c6d7f9ff]::interface::run_compiler<core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>, rustc_driver_impl[2076cbadfe07fc6e]::run_compiler::{closure#0}>::{closure#1}, core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>>
  39:       0x3fb34c25ca - __rust_try.llvm.9497760453613245902
  40:       0x3fb34bfbf8 - <<std[c0ba54d71f59c23d]::thread::Builder>::spawn_unchecked_<rustc_interface[d5f0e016c6d7f9ff]::util::run_in_thread_with_globals<rustc_interface[d5f0e016c6d7f9ff]::interface::run_compiler<core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>, rustc_driver_impl[2076cbadfe07fc6e]::run_compiler::{closure#0}>::{closure#1}, core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[2fe8797a529ef4aa]::result::Result<(), rustc_span[97807058d5de261a]::ErrorGuaranteed>>::{closure#1} as core[2fe8797a529ef4aa]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  41:       0x3fb27c583a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5f2812c91f112932
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/alloc/src/boxed.rs:2070:9
  42:       0x3fb27c583a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h26696b5ccdb303a0
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/alloc/src/boxed.rs:2070:9
  43:       0x3fb27c583a - std::sys::pal::unix::thread::Thread::new::thread_start::h7b8eaaf59fb6c581
                               at /rustc/08328a323ecd80b443a8fcc72c6b1071f48e233f/library/std/src/sys/pal/unix/thread.rs:108:17
  44:       0x3fb266251c - start_thread
                               at ./nptl/pthread_create.c:442:8

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

note: please attach the file at `/home/riscv-builds/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.120/rustc-ice-2024-08-24T10_56_02-1296787.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=10000 -C strip=debuginfo -C symbol-mangling-version=legacy -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -C prefer-dynamic -Z inline-mir -Z inline-mir-preserve-debug -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C force-unwind-tables=yes -C force-frame-pointers=yes -Z crate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/") -Z binary-dep-depinfo -Z force-unstable-if-unmarked

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
   Compiling alloc v0.0.0 (/home/riscv-builds/runner_dir/workspace/cloud-v-builds-folder/rust-riscv-build/rust/library/alloc)
   Compiling cfg-if v1.0.0
error: could not compile `compiler_builtins` (lib)
warning: build failed, waiting for other jobs to finish...
Build completed unsuccessfully in 0:13:44

Basically, the context is that I own a RISC-V cloud computing platform with various RISC-V machines of multiple vendors and I am trying to set up fortnight CI builds of rustc (along with other programs) which would periodically build the master branch and archive the binary in cloud storage which is publicly accessible.

The last build where I got the error (console output) is: https://dash.cloud-v.co/job/cloud-v-builds-folder/job/rust-riscv-build/24/console

The builds are accessible here: https://dash.cloud-v.co/job/cloud-v-builds-folder/job/rust-riscv-build/

@alitariq4589
Copy link
Author

This looks more like a llvm error than a kernel error. While reading the documentation for building from the source at this, it says we either require clang++ or g++. Is there a way to force the build process to use gnu compilers instead of llvm compilers?

@saethlin
Copy link
Member

There should be a list of kernels where this bug does not exist (or maybe a kernel version after which the bug started appearing).

If you read through the issue that I linked there is quite a bit of discussion including a comment which links to a Linux bug report and mentions a kernel version that should contain the fix. But of course you are on a distro, which may have backported the fix to any version. So even if we maintained a list of Linux bugs encountered by Rust users (which would be an unreasonable maintenance burden for the Rust project) it wouldn't necessarily be what you want.

This looks more like a llvm error than a kernel error.

Indeed, the new backtrace you have posted is completely different. Actually this looks like just a Rust compiler issue; it seems like the beta compiler is trying to compile some f16 code, and it shouldn't be.

I cannot reproduce this error on x86_64, so I wonder if this is somehow riscv-specific for example because our cfgs are somehow wrong on riscv. Pinging the documented target maintainers @kito-cheng @michaelmaitland @robin-randhawa-sifive @topperc have you seen this ICE before:

error: internal compiler error: compiler/rustc_codegen_llvm/src/abi.rs:126:22: unsupported float: Reg { kind: Float, size: Size(2 bytes) }

thread 'rustc' panicked at compiler/rustc_codegen_llvm/src/abi.rs:126:22:

@alitariq4589
Copy link
Author

@saethlin Thanks for considering it.

BTW, I can give access to the RISC-V 64 instance to you or set up a RISC-V 64 CI in Jenkins for this repository if you want.

@workingjubilee workingjubilee added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. and removed C-discussion Category: Discussion or questions that doesn't represent real issues. labels Oct 1, 2024
@workingjubilee
Copy link
Member

Based on #129268 (comment) it's not clear to me that there is no bug here.

Also however it seems the target maintainers are not responding? Trying again:

@kito-cheng
@michaelmaitland
@robin-randhawa-sifive
@topperc

I suppose I can send them an email...

@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Oct 1, 2024
@topperc
Copy link

topperc commented Oct 1, 2024

Based on #129268 (comment) it's not clear to me that there is no bug here.

Also however it seems the target maintainers are not responding? Trying again:

@kito-cheng @michaelmaitland @robin-randhawa-sifive @topperc

I suppose I can send them an email...

I'm maintainer for the LLVM RISC-V backend, but I've never done anything with Rust.

@topperc
Copy link

topperc commented Oct 1, 2024

There was a change to that part of abi.rs 5 months ago to add f16. 99e6a28

@workingjubilee
Copy link
Member

@topperc Ah, sorry to bother you! It's useful to know the relevant LLVM contact, but we should really specify that poking you is for LLVM problems specifically.

Hmmm, yes, but it's odd that would fail while building the nightly... I suppose we are cross-building this target, though, so maybe it's just not surprising if someone can't bootstrap the compiler on RISCV...

re: f16 @nicholasbishop and @tgross35 did you encounter any bootstrap-related problems?

@tgross35
Copy link
Contributor

tgross35 commented Oct 2, 2024

re: f16 @nicholasbishop and @tgross35 did you encounter any bootstrap-related problems?

Not in a long time - the basic f16 support has been in for a few versions, and it looks like some simple f16 code for RISC-V successfully compiles all the way back to 1.79 https://rust.godbolt.org/z/bcoz6d7v8 (RUSTC_BOOTSTRAP hack). I haven't touched RISC-V specifically, but most of the known crashes or bugs are in

rust/library/std/build.rs

Lines 96 to 117 in 5384697

let has_reliable_f16 = match (target_arch.as_str(), target_os.as_str()) {
// We can always enable these in Miri as that is not affected by codegen bugs.
_ if is_miri => true,
// Selection failure <https://github.com/llvm/llvm-project/issues/50374>
("s390x", _) => false,
// Unsupported <https://github.com/llvm/llvm-project/issues/94434>
("arm64ec", _) => false,
// MinGW ABI bugs <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115054>
("x86_64", "windows") if target_env == "gnu" => false,
// Infinite recursion <https://github.com/llvm/llvm-project/issues/97981>
("csky", _) => false,
("hexagon", _) => false,
("loongarch64", _) => false,
("mips" | "mips64" | "mips32r6" | "mips64r6", _) => false,
("powerpc" | "powerpc64", _) => false,
("sparc" | "sparc64", _) => false,
("wasm32" | "wasm64", _) => false,
// `f16` support only requires that symbols converting to and from `f32` are available. We
// provide these in `compiler-builtins`, so `f16` should be available on all platforms that
// do not have other ABI issues or LLVM crashes.
_ => true,
};
(and all of those are in the LLVM backend, nothing known in rustc).

f16 on RISC-V should be enabled in library tests since #129385, but I have no clue if this target gets run in CI (assuming not).

@tgross35
Copy link
Contributor

tgross35 commented Oct 2, 2024

I was thinking maybe it was assembly-related, but even that has been around long enough to make it to stable #126530. (cc @beetrees)

Is it possible that an old version is being used for bootstrap? Something like config.toml setting an override.

@beetrees
Copy link
Contributor

@alitariq4589 Does the issue described in #129268 (comment) still occur? I think it should have been fixed by the stage0 bump to 1.82 in #129941.

@jamesgraves
Copy link

@alitariq4589 Does the issue described in #129268 (comment) still occur? I think it should have been fixed by the stage0 bump to 1.82 in #129941.

I had also seen this issue previously, where FP16 type wasn't supported on riscv64. However, I have retried compiling the Rust compiler again on a VisionFive2 and on a Milk-V Jupiter board, and now there is no issue with the FP16 type.

Note that I did have to patch the Linux kernel (Ubuntu 23.10, kernel version 6.1.15) on the Milk-V Jupiter board to fix the issue with #117022.

kxxt added a commit to kxxt/archriscv-packages that referenced this issue Oct 20, 2024
Musl Patch
==========

riscv64gc-unknown-linux-musl gets promoted to tier 2 and `crt_static_default`
is updated to false in rust-lang/rust#122049,
which triggers rust-lang/rust#82521 (comment)
when building stage2 library artifacts
(riscv64gc-unknown-linux-gnu -> riscv64gc-unknown-linux-musl).

I patched it to re-enable `crt_static_default` for `riscv64gc-unknown-linux-musl`
to fix the build and align with the behavior on x86 Arch Linux, where `rust-musl`
defaults to statically link musl.

Wasm compiler_builtins bug
==========================

Wasm compiler_builtins rlib from built `rust-wasm` package includes objects for
host architecture(riscv64 in our case, and x86_64 for x86 Arch Linux).
This is not reproducible for toolchains installed via rustup so I have reported it
to Arch Linux:
https://gitlab.archlinux.org/archlinux/packaging/packages/rust/-/issues/3

Complications when building 1.82.0
==================================

rust-lang/rust#125016 landed in 1.82.0, which breaks
building rust 1.82.0 using our packaged rust 1.81.0.
Compiling the new compiler_builtins component requires a rustc compiler that
includes
rust-lang/rust@99e6a28
but unfortunately 1.81.0 does not, leading to the following ICE:
https://archriscv.felixc.at/.status/log.htm?url=logs/rust/rust-1:1.82.0-1.log

    internal compiler error: compiler/rustc_codegen_llvm/src/abi.rs:126:22: unsupported float: Reg { kind: Float, size: Size(2 bytes) }

This is mitigated upstream by bumping stage0 to 1.82:
rust-lang/rust#129268 (comment)

So we need to first build 1.82.0 rustc once without the f16/f128 handling part
in compiler_builtins, to get a compiler that is capable of handling f16/f128.
And then we can use this compiler to compile compiler_builtins with f16/f128 handling.
It's not easy to do so in one patch. The most easy way is to build and package
rust 1.82.0 twice. This PR covers the first part and disable-f16-f128.diff will
be removed in the second part.
kxxt added a commit to kxxt/archriscv-packages that referenced this issue Oct 20, 2024
Musl Patch
==========

riscv64gc-unknown-linux-musl gets promoted to tier 2 and `crt_static_default`
is updated to false in rust-lang/rust#122049,
which triggers rust-lang/rust#82521 (comment)
when building stage2 library artifacts
(riscv64gc-unknown-linux-gnu -> riscv64gc-unknown-linux-musl).

I patched it to re-enable `crt_static_default` for `riscv64gc-unknown-linux-musl`
to fix the build and align with the behavior on x86 Arch Linux, where `rust-musl`
defaults to statically link musl.

Wasm compiler_builtins bug
==========================

Wasm compiler_builtins rlib from built `rust-wasm` package includes objects for
host architecture(riscv64 in our case, and x86_64 for x86 Arch Linux).
This is not reproducible for toolchains installed via rustup so I have reported it
to Arch Linux:
https://gitlab.archlinux.org/archlinux/packaging/packages/rust/-/issues/3

Complications when building 1.82.0
==================================

rust-lang/rust#125016 landed in 1.82.0, which breaks
building rust 1.82.0 using our packaged rust 1.81.0.
Compiling the new compiler_builtins component requires a rustc compiler that
includes
rust-lang/rust@99e6a28
but unfortunately 1.81.0 does not, leading to the following ICE:
https://archriscv.felixc.at/.status/log.htm?url=logs/rust/rust-1:1.82.0-1.log

    internal compiler error: compiler/rustc_codegen_llvm/src/abi.rs:126:22: unsupported float: Reg { kind: Float, size: Size(2 bytes) }

This is mitigated upstream by bumping stage0 to 1.82:
rust-lang/rust#129268 (comment)

So we need to first build 1.82.0 rustc once without the f16/f128 handling part
in compiler_builtins, to get a compiler that is capable of handling f16/f128.
And then we can use this compiler to compile compiler_builtins with f16/f128 handling.
It's not easy to do so in one patch. The most easy way is to build and package
rust 1.82.0 twice. This PR covers the first part and disable-f16-f128.diff will
be removed in the second part.
felixonmars pushed a commit to felixonmars/archriscv-packages that referenced this issue Oct 20, 2024
Musl Patch
==========

riscv64gc-unknown-linux-musl gets promoted to tier 2 and `crt_static_default`
is updated to false in rust-lang/rust#122049,
which triggers rust-lang/rust#82521 (comment)
when building stage2 library artifacts
(riscv64gc-unknown-linux-gnu -> riscv64gc-unknown-linux-musl).

I patched it to re-enable `crt_static_default` for `riscv64gc-unknown-linux-musl`
to fix the build and align with the behavior on x86 Arch Linux, where `rust-musl`
defaults to statically link musl.

Wasm compiler_builtins bug
==========================

Wasm compiler_builtins rlib from built `rust-wasm` package includes objects for
host architecture(riscv64 in our case, and x86_64 for x86 Arch Linux).
This is not reproducible for toolchains installed via rustup so I have reported it
to Arch Linux:
https://gitlab.archlinux.org/archlinux/packaging/packages/rust/-/issues/3

Complications when building 1.82.0
==================================

rust-lang/rust#125016 landed in 1.82.0, which breaks
building rust 1.82.0 using our packaged rust 1.81.0.
Compiling the new compiler_builtins component requires a rustc compiler that
includes
rust-lang/rust@99e6a28
but unfortunately 1.81.0 does not, leading to the following ICE:
https://archriscv.felixc.at/.status/log.htm?url=logs/rust/rust-1:1.82.0-1.log

    internal compiler error: compiler/rustc_codegen_llvm/src/abi.rs:126:22: unsupported float: Reg { kind: Float, size: Size(2 bytes) }

This is mitigated upstream by bumping stage0 to 1.82:
rust-lang/rust#129268 (comment)

So we need to first build 1.82.0 rustc once without the f16/f128 handling part
in compiler_builtins, to get a compiler that is capable of handling f16/f128.
And then we can use this compiler to compile compiler_builtins with f16/f128 handling.
It's not easy to do so in one patch. The most easy way is to build and package
rust 1.82.0 twice. This PR covers the first part and disable-f16-f128.diff will
be removed in the second part.
@Fabian-Gruenbichler
Copy link
Contributor

it seems we are now running into this issue in Debian when building 1.82 with 1.81 on riscv64:

https://buildd.debian.org/status/fetch.php?pkg=rustc&arch=riscv64&ver=1.82.0%2Bdfsg1-1%7Eexp1&stamp=1729622933&raw=0

this is with a previously built 1.81 that is using LLVM 18, with the 1.82 build using LLVM 19 (both LLVM versions as packaged in Debian, not using the bundled LLVM from upstream)

any pointers on how to avoid it (other than possibly re-bootstrapping using a pre-compiled 1.82 stage0)?

@tgross35
Copy link
Contributor

tgross35 commented Oct 22, 2024

@Fabian-Gruenbichler is it possible to cherry pick 99e6a28 to 1.81 and rebuild that version?


For the others: I am pretty sure that the issue in #129268 (comment) has to be caused by bootstrapping with something that does not include the above commit, i.e. < 1.82. The issue in the top post is different though, @alitariq4589 does that still reproduce for you!

@tgross35
Copy link
Contributor

Another solution might be to enable compiler-builtins no-f16-f128 feature on the target, which is available in the crate itself or via std's compiler-builtins-no-f16-f128 feature.

Since version 0.1.115, compiler-builtins reads this feature via CARGO_FEATURE_NO_F16_F128 so you could try setting that env for a quick test.

@workingjubilee
Copy link
Member

Our distributed host toolchain for riscv64 is cross-built from an x86_64 host.

@workingjubilee workingjubilee changed the title interrupted by SIGSEGV on riscv64 rustc stable 1.81 riscv64gc-unknown-linux-gnu hosts cannot bootstrap stable 1.82 Oct 22, 2024
@workingjubilee
Copy link
Member

It seems if you wish to bootstrap using only riscv64, you will have to either backport the fix or go through the nightly releases.

@kxxt
Copy link
Contributor

kxxt commented Oct 22, 2024

any pointers on how to avoid it (other than possibly re-bootstrapping using a pre-compiled 1.82 stage0)?

@Fabian-Gruenbichler This could be done by first building 1.82 with no-f16-f128 feature on compiler_builtins and then building it normally.

I am doing it this way for Arch Linux RISC-V:
felixonmars/archriscv-packages#4243

@Fabian-Gruenbichler
Copy link
Contributor

thanks for the pointers!

@12101111
Copy link
Contributor

Got this error on loongarch64 too.

thread 'rustc' panicked at compiler/rustc_codegen_llvm/src/abi.rs:126:22:
Box<dyn Any>
stack backtrace:
   0:     0x7fffec9257bc - <unknown>
   1:     0x7fffec9256e0 - std::backtrace::Backtrace::force_capture::hb2f2269820f247ce
   2:     0x7fffedfbda54 - <unknown>
   3:     0x7fffec94758c - std::panicking::rust_panic_with_hook::he4e0d38dd763f5c7
   4:     0x7fffee038dec - <unknown>
   5:     0x7fffee0253d0 - <unknown>
   6:     0x7fffed11ebb0 - <unknown>
   7:     0x7fffee0503e4 - <rustc_errors[f99b1f7e1168ce3e]::diagnostic::BugAbort as rustc_errors[f99b1f7e1168ce3e]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
   8:     0x7fffeee70a18 - <unknown>
   9:     0x7fffeee21038 - <unknown>
  10:     0x7fffeee20a48 - <unknown>
  11:     0x7fffed2036ec - rustc_middle[603a092a05ccd006]::util::bug::bug_fmt
  12:     0x7fffedc71c38 - <rustc_target[4ef2dc64db28ef42]::abi::call::Reg as rustc_codegen_llvm[74329a534f365209]::abi::LlvmType>::llvm_type
  13:     0x7fffedc71c88 - <rustc_target[4ef2dc64db28ef42]::abi::call::CastTarget as rustc_codegen_llvm[74329a534f365209]::abi::LlvmType>::llvm_type
  14:     0x7fffedc72d34 - <rustc_target[4ef2dc64db28ef42]::abi::call::FnAbi<rustc_middle[603a092a05ccd006]::ty::Ty> as rustc_codegen_llvm[74329a534f365209]::abi::FnAbiLlvmExt>::llvm_type
  15:     0x7fffedcb3e58 - <unknown>
  16:     0x7fffedcc8784 - <rustc_codegen_llvm[74329a534f365209]::context::CodegenCx as rustc_codegen_ssa[74dd6b8ef45e1e9]::traits::declare::PreDefineMethods>::predefine_fn
  17:     0x7fffedc7f748 - <unknown>
  18:     0x7fffedccf240 - <rustc_codegen_llvm[74329a534f365209]::LlvmCodegenBackend as rustc_codegen_ssa[74dd6b8ef45e1e9]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
  19:     0x7fffedcd59cc - <rustc_codegen_llvm[74329a534f365209]::LlvmCodegenBackend as rustc_codegen_ssa[74dd6b8ef45e1e9]::traits::backend::CodegenBackend>::codegen_crate
  20:     0x7fffeea5ae44 - <rustc_interface[17551e5d4fa5e933]::queries::Linker>::codegen_and_build_linker
  21:     0x7fffedf5f178 - <unknown>
  22:     0x7fffedfbbad8 - <unknown>
  23:     0x7fffedfa8f94 - <unknown>
  24:     0x7fffedfb289c - <unknown>
  25:     0x7fffedffc464 - <unknown>
  26:     0x7fffedfc4854 - <unknown>
  27:     0x7fffec9538c8 - <unknown>
  28:     0x7fffec76cd20 - <unknown>
  29:     0x7fffec7f65dc - <unknown>
  30:                0x0 - <unknown>


rustc version: 1.81.0 (eeb90cda1 2024-09-04) (gentoo)
platform: loongarch64-unknown-linux-gnu

query stack during panic:
end of query stack

@workingjubilee workingjubilee changed the title rustc stable 1.81 riscv64gc-unknown-linux-gnu hosts cannot bootstrap stable 1.82 some tier 2 rustc 1.81 hosts cannot bootstrap stable 1.82 Oct 23, 2024
skeuchel added a commit to skeuchel/nixpkgs that referenced this issue Oct 26, 2024
Change the bootstrap on all platforms to use a version of the upstream binary
that is equal to the version that is being built, instead of a binary of one
version prior. This is necessary for the 1.82.0 release because on some
platforms (rust-lang/rust#129268) the 1.81.0 binary
can not build the 1.82.0 source. Furthermore, upstream reported that their
development process (now) usually involves building a release compiler with
itself and that "the Rust compiler must be able to build itself".
@alitariq4589
Copy link
Author

Update!

I am using rustc 1.83.0-nightly (c87004a1f 2024-09-30)

I tried installing transformers from pip on RISC-V Milk-V Jupiter running Ubuntu 23.10 and kernel version 6.1.15. I got the following Rust error. The error comes in the pip subprocess but is identical to my original problem regarding Rust compilation. This Rust binary was built on StarFive VisionFive 2.

$ ./pip3 install transformers
Collecting transformers
  Using cached transformers-4.30.2-py3-none-any.whl.metadata (113 kB)
Requirement already satisfied: filelock in /home/cloudv/Downloads/python3.7/python3.7_installed/lib/python3.7/site-packages (from transformers) (3.12.2)
Collecting huggingface-hub<1.0,>=0.14.1 (from transformers)
  Using cached huggingface_hub-0.16.4-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: numpy>=1.17 in /home/cloudv/Downloads/python3.7/python3.7_installed/lib/python3.7/site-packages (from transformers) (1.21.6)
Requirement already satisfied: packaging>=20.0 in /home/cloudv/Downloads/python3.7/python3.7_installed/lib/python3.7/site-packages (from transformers) (24.0)
Requirement already satisfied: pyyaml>=5.1 in /home/cloudv/Downloads/python3.7/python3.7_installed/lib/python3.7/site-packages (from transformers) (6.0.1)
Collecting regex!=2019.12.17 (from transformers)
  Using cached regex-2024.4.16.tar.gz (394 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: requests in /home/cloudv/Downloads/python3.7/python3.7_installed/lib/python3.7/site-packages (from transformers) (2.31.0)
Collecting tokenizers!=0.11.3,<0.14,>=0.11.1 (from transformers)
  Using cached tokenizers-0.13.3.tar.gz (314 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting safetensors>=0.3.1 (from transformers)
  Using cached safetensors-0.4.5.tar.gz (65 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [192 lines of output]
      Collecting maturin<2.0,>=1.0
        Using cached maturin-1.7.4.tar.gz (191 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Collecting tomli>=1.1.0 (from maturin<2.0,>=1.0)
        Using cached tomli-2.0.1-py3-none-any.whl.metadata (8.9 kB)
      Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
      Building wheels for collected packages: maturin
        Building wheel for maturin (pyproject.toml): started
        Building wheel for maturin (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Building wheel for maturin (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [167 lines of output]
            running bdist_wheel
            running build
            running build_py
            creating build
            creating build/lib.linux-riscv64-cpython-37
            creating build/lib.linux-riscv64-cpython-37/maturin
            copying maturin/__init__.py -> build/lib.linux-riscv64-cpython-37/maturin
            copying maturin/__main__.py -> build/lib.linux-riscv64-cpython-37/maturin
            running egg_info
            writing maturin.egg-info/PKG-INFO
            writing dependency_links to maturin.egg-info/dependency_links.txt
            writing requirements to maturin.egg-info/requires.txt
            writing top-level names to maturin.egg-info/top_level.txt
            reading manifest file 'maturin.egg-info/SOURCES.txt'
            reading manifest template 'MANIFEST.in'
            /tmp/pip-build-env-7l8_6p5s/overlay/lib/python3.7/site-packages/setuptools/config/pyprojecttoml.py:66: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
              config = read_configuration(filepath, True, ignore_option_errors, dist)
            warning: no files found matching '*.json' under directory 'src/python_interpreter'
            writing manifest file 'maturin.egg-info/SOURCES.txt'
            running build_ext
            running build_rust
               Compiling proc-macro2 v1.0.85
               Compiling unicode-ident v1.0.12
               Compiling cfg-if v1.0.0
               Compiling serde v1.0.210
               Compiling version_check v0.9.4
               Compiling once_cell v1.19.0
               Compiling shlex v1.3.0
               Compiling memchr v2.7.2
                 Running `rustc --crate-name unicode_ident --edition=2018 /home/cloudv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-ident-1.0.12/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=3634342203469153 -C extra-filename=-3634342203469153 --out-dir /tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps --cap-lints allow`
                 Running `rustc --crate-name cfg_if --edition=2018 /home/cloudv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cfg-if-1.0.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("compiler_builtins", "core", "rustc-dep-of-std"))' -C metadata=48735a90a3b88bb9 -C extra-filename=-48735a90a3b88bb9 --out-dir /tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps --cap-lints allow`
                 Running `rustc --crate-name version_check --edition=2015 /home/cloudv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/version_check-0.9.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=2e9effe4decabc60 -C extra-filename=-2e9effe4decabc60 --out-dir /tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps --cap-lints allow`
                 Running `rustc --crate-name once_cell --edition=2021 /home/cloudv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="race"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("alloc", "atomic-polyfill", "critical-section", "default", "parking_lot", "portable-atomic", "race", "std", "unstable"))' -C metadata=512d4405d2f65c19 -C extra-filename=-512d4405d2f65c19 --out-dir /tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps --cap-lints allow`
                 Running `rustc --crate-name build_script_build --edition=2018 /home/cloudv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.210/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("alloc", "default", "derive", "rc", "serde_derive", "std", "unstable"))' -C metadata=998b7adc6854e8e0 -C extra-filename=-998b7adc6854e8e0 --out-dir /tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/build/serde-998b7adc6854e8e0 -C strip=debuginfo -L dependency=/tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps --cap-lints allow`
                 Running `rustc --crate-name shlex --edition=2015 /home/cloudv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/shlex-1.3.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "std"))' -C metadata=ef9724e5dd394a4b -C extra-filename=-ef9724e5dd394a4b --out-dir /tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps --cap-lints allow`
                 Running `rustc --crate-name memchr --edition=2021 /home/cloudv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.7.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("alloc", "compiler_builtins", "core", "default", "libc", "logging", "rustc-dep-of-std", "std", "use_std"))' -C metadata=bd86ac38a1163ac2 -C extra-filename=-bd86ac38a1163ac2 --out-dir /tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps --cap-lints allow`
                 Running `rustc --crate-name build_script_build --edition=2021 /home/cloudv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.85/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="proc-macro"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "nightly", "proc-macro", "span-locations"))' -C metadata=be5845ee8ad6a8ef -C extra-filename=-be5845ee8ad6a8ef --out-dir /tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/build/proc-macro2-be5845ee8ad6a8ef -C strip=debuginfo -L dependency=/tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps --cap-lints allow`
               Compiling libc v0.2.158
                 Running `rustc --crate-name build_script_build --edition=2015 /home/cloudv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.158/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("align", "const-extern-fn", "default", "extra_traits", "rustc-dep-of-std", "rustc-std-workspace-core", "std", "use_std"))' -C metadata=ea92fec044a51cb5 -C extra-filename=-ea92fec044a51cb5 --out-dir /tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/build/libc-ea92fec044a51cb5 -C strip=debuginfo -L dependency=/tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps --cap-lints allow`
            error: rustc interrupted by SIGSEGV, printing backtrace
      
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0xc9f35e)[0x3f93aca35e]
            linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f9c473800]
            /lib/riscv64-linux-gnu/libc.so.6(read+0x44)[0x3f92d6b28a]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(_ZN3std3sys3pal4unix2fs4File4read17h362c23d3c8c30ef2E+0x20)[0x3f99242bb8]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bb6ec)[0x3f991e66ec]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bd46e)[0x3f991e846e]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bda36)[0x3f991e8a36]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bf014)[0x3f991ea014]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x6436cdc)[0x3f99261cdc]
            /lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f92d20956]
            /lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f92d72010]
      
            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 `unicode-ident` (lib)
      
            Caused by:
              process didn't exit successfully: `rustc --crate-name unicode_ident --edition=2018 /home/cloudv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-ident-1.0.12/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=3634342203469153 -C extra-filename=-3634342203469153 --out-dir /tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-up85nvug/maturin_0aaea8cf4190490bb2214d156007f0c8/target/release/deps --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)
            warning: build failed, waiting for other jobs to finish...
            error: rustc interrupted by SIGSEGV, printing backtrace
      
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0xc9f35e)[0x3fa1e3835e]
            linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3faa7e1800]
            /lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3fa10de7c2]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17h6890663d35bc7308E+0x6c)[0x3fa75aa43c]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bd444)[0x3fa7556444]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bda36)[0x3fa7556a36]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bf014)[0x3fa7558014]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x6436cdc)[0x3fa75cfcdc]
            /lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3fa108e956]
            /lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3fa10e0010]
      
            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: rustc interrupted by SIGSEGV, printing backtrace
      
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0xc9f35e)[0x3fa824b35e]
            linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fb0bf4800]
            /lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3fa74f17c2]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17h6890663d35bc7308E+0x6c)[0x3fad9bd43c]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bd444)[0x3fad969444]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bda36)[0x3fad969a36]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bf014)[0x3fad96b014]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x6436cdc)[0x3fad9e2cdc]
            /lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3fa74a1956]
            /lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3fa74f3010]
      
            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: rustc interrupted by SIGSEGV, printing backtrace
      
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0xc9f35e)[0x3fa00d635e]
            linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fa8a7f800]
            /lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3f9f37c7c2]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17h6890663d35bc7308E+0x6c)[0x3fa584843c]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bd444)[0x3fa57f4444]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bda36)[0x3fa57f4a36]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bf014)[0x3fa57f6014]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x6436cdc)[0x3fa586dcdc]
            /lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f9f32c956]
            /lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f9f37e010]
      
            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: rustc interrupted by SIGSEGV, printing backtrace
      
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0xc9f35e)[0x3f90cf735e]
            linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f996a0800]
            /lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3f8ff9d7c2]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17h6890663d35bc7308E+0x6c)[0x3f9646943c]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bd444)[0x3f96415444]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bda36)[0x3f96415a36]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bf014)[0x3f96417014]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x6436cdc)[0x3f9648ecdc]
            /lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f8ff4d956]
            /lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f8ff9f010]
      
            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: rustc interrupted by SIGSEGV, printing backtrace
      
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0xc9f35e)[0x3f96d1735e]
            linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f9f6c0800]
            /lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3f95fbd7c2]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17h6890663d35bc7308E+0x6c)[0x3f9c48943c]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bd444)[0x3f9c435444]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bda36)[0x3f9c435a36]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bf014)[0x3f9c437014]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x6436cdc)[0x3f9c4aecdc]
            /lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f95f6d956]
            /lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f95fbf010]
      
            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: rustc interrupted by SIGSEGV, printing backtrace
      
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0xc9f35e)[0x3fb436935e]
            linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fbcd12800]
            /lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3fb360f7c2]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17h6890663d35bc7308E+0x6c)[0x3fb9adb43c]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bd444)[0x3fb9a87444]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bda36)[0x3fb9a87a36]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bf014)[0x3fb9a89014]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x6436cdc)[0x3fb9b00cdc]
            /lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3fb35bf956]
            /lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3fb3611010]
      
            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: rustc interrupted by SIGSEGV, printing backtrace
      
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0xc9f35e)[0x3f9d0f535e]
            linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fa5a9e800]
            /lib/riscv64-linux-gnu/libc.so.6(syscall+0x16)[0x3f9c39b7c2]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(_ZN3std3sys4sync7condvar5futex7Condvar4wait17h6890663d35bc7308E+0x6c)[0x3fa286743c]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bd444)[0x3fa2813444]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bda36)[0x3fa2813a36]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x63bf014)[0x3fa2815014]
            /home/cloudv/Downloads/rust/Rust/installed_binaries/bin/../lib/librustc_driver-42a9a40f91c33f69.so(+0x6436cdc)[0x3fa288ccdc]
            /lib/riscv64-linux-gnu/libc.so.6(+0x6a956)[0x3f9c34b956]
            /lib/riscv64-linux-gnu/libc.so.6(+0xbc010)[0x3f9c39d010]
      
            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
            cargo build --manifest-path Cargo.toml --message-format=json-render-diagnostics --release -v --no-default-features --locked
            error: `cargo build --manifest-path Cargo.toml --message-format=json-render-diagnostics --release -v --no-default-features --locked` failed with code 101
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for maturin
      Failed to build maturin
      ERROR: Could not build wheels for maturin, which is required to install pyproject.toml-based projects
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@Fabian-Gruenbichler
Copy link
Contributor

Got this error on loongarch64 too.

thread 'rustc' panicked at compiler/rustc_codegen_llvm/src/abi.rs:126:22:
Box<dyn Any>
stack backtrace:
   0:     0x7fffec9257bc - <unknown>
   1:     0x7fffec9256e0 - std::backtrace::Backtrace::force_capture::hb2f2269820f247ce
   2:     0x7fffedfbda54 - <unknown>
   3:     0x7fffec94758c - std::panicking::rust_panic_with_hook::he4e0d38dd763f5c7
   4:     0x7fffee038dec - <unknown>
   5:     0x7fffee0253d0 - <unknown>
   6:     0x7fffed11ebb0 - <unknown>
   7:     0x7fffee0503e4 - <rustc_errors[f99b1f7e1168ce3e]::diagnostic::BugAbort as rustc_errors[f99b1f7e1168ce3e]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
   8:     0x7fffeee70a18 - <unknown>
   9:     0x7fffeee21038 - <unknown>
  10:     0x7fffeee20a48 - <unknown>
  11:     0x7fffed2036ec - rustc_middle[603a092a05ccd006]::util::bug::bug_fmt
  12:     0x7fffedc71c38 - <rustc_target[4ef2dc64db28ef42]::abi::call::Reg as rustc_codegen_llvm[74329a534f365209]::abi::LlvmType>::llvm_type
  13:     0x7fffedc71c88 - <rustc_target[4ef2dc64db28ef42]::abi::call::CastTarget as rustc_codegen_llvm[74329a534f365209]::abi::LlvmType>::llvm_type
  14:     0x7fffedc72d34 - <rustc_target[4ef2dc64db28ef42]::abi::call::FnAbi<rustc_middle[603a092a05ccd006]::ty::Ty> as rustc_codegen_llvm[74329a534f365209]::abi::FnAbiLlvmExt>::llvm_type
  15:     0x7fffedcb3e58 - <unknown>
  16:     0x7fffedcc8784 - <rustc_codegen_llvm[74329a534f365209]::context::CodegenCx as rustc_codegen_ssa[74dd6b8ef45e1e9]::traits::declare::PreDefineMethods>::predefine_fn
  17:     0x7fffedc7f748 - <unknown>
  18:     0x7fffedccf240 - <rustc_codegen_llvm[74329a534f365209]::LlvmCodegenBackend as rustc_codegen_ssa[74dd6b8ef45e1e9]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
  19:     0x7fffedcd59cc - <rustc_codegen_llvm[74329a534f365209]::LlvmCodegenBackend as rustc_codegen_ssa[74dd6b8ef45e1e9]::traits::backend::CodegenBackend>::codegen_crate
  20:     0x7fffeea5ae44 - <rustc_interface[17551e5d4fa5e933]::queries::Linker>::codegen_and_build_linker
  21:     0x7fffedf5f178 - <unknown>
  22:     0x7fffedfbbad8 - <unknown>
  23:     0x7fffedfa8f94 - <unknown>
  24:     0x7fffedfb289c - <unknown>
  25:     0x7fffedffc464 - <unknown>
  26:     0x7fffedfc4854 - <unknown>
  27:     0x7fffec9538c8 - <unknown>
  28:     0x7fffec76cd20 - <unknown>
  29:     0x7fffec7f65dc - <unknown>
  30:                0x0 - <unknown>


rustc version: 1.81.0 (eeb90cda1 2024-09-04) (gentoo)
platform: loongarch64-unknown-linux-gnu

query stack during panic:
end of query stack

yes, we also hit this on loong64 in Debian, the same workaround with setting the env variable worked there, just like it did on riscv64. I will do another round of test builds of 1.82 without the env var set, using the "built-with-workaround" 1.82 builds as stage0.

skeuchel added a commit to skeuchel/nixpkgs that referenced this issue Oct 31, 2024
Change the bootstrap on all platforms to use a version of the upstream binary
that is equal to the version that is being built, instead of a binary of one
version prior. This is necessary for the 1.82.0 release because on some
platforms (rust-lang/rust#129268) the 1.81.0 binary
can not build the 1.82.0 source. Furthermore, upstream reported that their
development process (now) usually involves building a release compiler with
itself and that "the Rust compiler must be able to build itself".
@he32
Copy link
Contributor

he32 commented Nov 5, 2024

Hm, allow me to pipe up for riscv64gc-unknown-netbsd which I run in a qemu virtual machine. Perhaps unsurprisingly, I am also seeing this problem in this phase:

riscv64: {3} egrep '^Build' list.01
Building bootstrap
Building stage0 library artifacts (riscv64gc-unknown-netbsd)
riscv64: {4}

and the specific file rustc told me to attach contains the following stack backtrace:

riscv64: {5} cat /usr/pkgsrc/wip/rust182/work/rustc-1.82.0-src/vendor/compiler_builtins-0.1.123/rustc-ice-2024-11-05T08_28_22-13157.txt
thread 'rustc' panicked at compiler/rustc_codegen_llvm/src/abi.rs:126:22:
Box<dyn Any>
stack backtrace:
   0:       0x3fef90912a - std::backtrace::Backtrace::create::h21e42ba47aaa5aa5
   1:       0x3fef9090ae - std::backtrace::Backtrace::force_capture::hbf47a13f270ee6ea
   2:       0x3ff0610fcc - <alloc[e67a56281e5e4886]::boxed::Box<rustc_driver_impl[2c07a3842e5de89e]::install_ice_hook::{closure#0}> as core[9bb95667a1054e13]::ops::function::Fn<(&dyn for<'a, 'b> core[9bb95667a1054e13]::ops::function::Fn<(&'a std[45f4f96db05f2f06]::panic::PanicHookInfo<'b>,), Output = ()> + core[9bb95667a1054e13]::marker::Sync + core[9bb95667a1054e13]::marker::Send, &std[45f4f96db05f2f06]::panic::PanicHookInfo)>>::call
   3:       0x3fef92cfb4 - std::panicking::rust_panic_with_hook::h7ef2558139591b31
   4:       0x3ff54d4e4e - std[45f4f96db05f2f06]::panicking::begin_panic::<rustc_errors[70dee02ba8f5fcf3]::ExplicitBug>::{closure#0}
   5:       0x3ff54d1cdc - std[45f4f96db05f2f06]::sys::backtrace::__rust_end_short_backtrace::<std[45f4f96db05f2f06]::panicking::begin_panic<rustc_errors[70dee02ba8f5fcf3]::ExplicitBug>::{closure#0}, !>
   6:       0x3ff04ca9ce - std[45f4f96db05f2f06]::panicking::begin_panic::<rustc_errors[70dee02ba8f5fcf3]::ExplicitBug>
   7:       0x3ff54cd7c2 - <rustc_errors[70dee02ba8f5fcf3]::diagnostic::BugAbort as rustc_errors[70dee02ba8f5fcf3]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
   8:       0x3ff523fe40 - rustc_middle[716da367a9673ccf]::util::bug::opt_span_bug_fmt::<rustc_span[8dde1cd8dabc3bff]::span_encoding::Span>::{closure#0}
   9:       0x3ff523fd40 - rustc_middle[716da367a9673ccf]::ty::context::tls::with_opt::<rustc_middle[716da367a9673ccf]::util::bug::opt_span_bug_fmt<rustc_span[8dde1cd8dabc3bff]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  10:       0x3ff523fd06 - rustc_middle[716da367a9673ccf]::ty::context::tls::with_context_opt::<rustc_middle[716da367a9673ccf]::ty::context::tls::with_opt<rustc_middle[716da367a9673ccf]::util::bug::opt_span_bug_fmt<rustc_span[8dde1cd8dabc3bff]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  11:       0x3ff0489298 - rustc_middle[716da367a9673ccf]::util::bug::bug_fmt
  12:       0x3ff090face - <rustc_target[f90abbe975f6aa02]::abi::call::Reg as rustc_codegen_llvm[993524c16136cf65]::abi::LlvmType>::llvm_type
  13:       0x3ff090faec - <rustc_target[f90abbe975f6aa02]::abi::call::CastTarget as rustc_codegen_llvm[993524c16136cf65]::abi::LlvmType>::llvm_type
  14:       0x3ff09104a8 - <rustc_target[f90abbe975f6aa02]::abi::call::FnAbi<rustc_middle[716da367a9673ccf]::ty::Ty> as rustc_codegen_llvm[993524c16136cf65]::abi::FnAbiLlvmExt>::llvm_type
  15:       0x3ff08d55ea - <rustc_codegen_llvm[993524c16136cf65]::context::CodegenCx>::declare_fn
  16:       0x3ff08d6604 - <rustc_codegen_llvm[993524c16136cf65]::context::CodegenCx as rustc_codegen_ssa[cf858f7a37eb5679]::traits::declare::PreDefineMethods>::predefine_fn
  17:       0x3ff087fb0a - rustc_codegen_llvm[993524c16136cf65]::base::compile_codegen_unit::module_codegen
  18:       0x3ff087ee60 - rustc_codegen_llvm[993524c16136cf65]::base::compile_codegen_unit
  19:       0x3ff0939a6e - rustc_codegen_ssa[cf858f7a37eb5679]::base::codegen_crate::<rustc_codegen_llvm[993524c16136cf65]::LlvmCodegenBackend>
  20:       0x3ff0969e6a - <rustc_codegen_llvm[993524c16136cf65]::LlvmCodegenBackend as rustc_codegen_ssa[cf858f7a37eb5679]::traits::backend::CodegenBackend>::codegen_crate
  21:       0x3ff07a5ce6 - rustc_interface[69645453cb02d351]::passes::start_codegen
  22:       0x3ff082ea2a - <rustc_interface[69645453cb02d351]::queries::Linker>::codegen_and_build_linker
  23:       0x3ff05dfabe - <rustc_middle[716da367a9673ccf]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[2c07a3842e5de89e]::run_compiler::{closure#0}::{closure#1}::{closure#6}, core[9bb95667a1054e13]::result::Result<core[9bb95667a1054e13]::option::Option<rustc_interface[69645453cb02d351]::queries::Linker>, rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>
  24:       0x3ff0611d38 - <rustc_interface[69645453cb02d351]::queries::QueryResult<&rustc_middle[716da367a9673ccf]::ty::context::GlobalCtxt>>::enter::<core[9bb95667a1054e13]::result::Result<core[9bb95667a1054e13]::option::Option<rustc_interface[69645453cb02d351]::queries::Linker>, rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>, rustc_driver_impl[2c07a3842e5de89e]::run_compiler::{closure#0}::{closure#1}::{closure#6}>
  25:       0x3ff05c4be6 - <rustc_interface[69645453cb02d351]::interface::Compiler>::enter::<rustc_driver_impl[2c07a3842e5de89e]::run_compiler::{closure#0}::{closure#1}, core[9bb95667a1054e13]::result::Result<core[9bb95667a1054e13]::option::Option<rustc_interface[69645453cb02d351]::queries::Linker>, rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>
  26:       0x3ff0607496 - <scoped_tls[246705cc18cfdef0]::ScopedKey<rustc_span[8dde1cd8dabc3bff]::SessionGlobals>>::set::<rustc_interface[69645453cb02d351]::util::run_in_thread_with_globals<rustc_interface[69645453cb02d351]::interface::run_compiler<core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>, rustc_driver_impl[2c07a3842e5de89e]::run_compiler::{closure#0}>::{closure#1}, core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>
  27:       0x3ff05c4442 - rustc_span[8dde1cd8dabc3bff]::create_session_globals_then::<core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>, rustc_interface[69645453cb02d351]::util::run_in_thread_with_globals<rustc_interface[69645453cb02d351]::interface::run_compiler<core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>, rustc_driver_impl[2c07a3842e5de89e]::run_compiler::{closure#0}>::{closure#1}, core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
  28:       0x3ff05eaff8 - std[45f4f96db05f2f06]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[69645453cb02d351]::util::run_in_thread_with_globals<rustc_interface[69645453cb02d351]::interface::run_compiler<core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>, rustc_driver_impl[2c07a3842e5de89e]::run_compiler::{closure#0}>::{closure#1}, core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>
  29:       0x3ff060f288 - std[45f4f96db05f2f06]::panicking::try::do_call::<core[9bb95667a1054e13]::panic::unwind_safe::AssertUnwindSafe<<std[45f4f96db05f2f06]::thread::Builder>::spawn_unchecked_<rustc_interface[69645453cb02d351]::util::run_in_thread_with_globals<rustc_interface[69645453cb02d351]::interface::run_compiler<core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>, rustc_driver_impl[2c07a3842e5de89e]::run_compiler::{closure#0}>::{closure#1}, core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>
  30:       0x3ff0611a1e - __rust_try.llvm.2355460534289034019
  31:       0x3ff060ff0e - <<std[45f4f96db05f2f06]::thread::Builder>::spawn_unchecked_<rustc_interface[69645453cb02d351]::util::run_in_thread_with_globals<rustc_interface[69645453cb02d351]::interface::run_compiler<core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>, rustc_driver_impl[2c07a3842e5de89e]::run_compiler::{closure#0}>::{closure#1}, core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[9bb95667a1054e13]::result::Result<(), rustc_span[8dde1cd8dabc3bff]::ErrorGuaranteed>>::{closure#1} as core[9bb95667a1054e13]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:       0x3fef9117f0 - std::sys::pal::unix::thread::Thread::new::thread_start::h54ccd41ab80b5592
  33:       0x3fef303b34 - <unknown>
  34:       0x3fef5602c4 - <unknown>


rustc version: 1.81.0 (eeb90cda1 2024-09-04) (built from a source tarball)
platform: riscv64gc-unknown-netbsd

query stack during panic:
end of query stack
riscv64: {6} 

Will re-try by using the cross-built 1.82.0 compiler to build 1.82.0 itself "natively", the previous comment appears to indicate that as a possible workaround.

wip-sync pushed a commit to NetBSD/pkgsrc-wip that referenced this issue Nov 6, 2024
This is due to rust-lang/rust#129268;
apparently, the riscv64 1.81.0 compiler cannot build 1.82.0.
bob-beck pushed a commit to openbsd/ports that referenced this issue Nov 11, 2024
1.81.0 bootstrap built with
rust-lang/rust@99e6a28
to workaround rust-lang/rust#129268

Help from and ok semarie@ (maintainer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-riscv Target: RISC-V architecture T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests