--whole-archive" "/tmp/rustcfy7SPQ/libstable_deref_trait-52b6660e70e1aee7.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/librustc_graphviz-2a8ea4a5463941d4.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libjobserver-95180b644697c8d3.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/liblibc-60570afa1f7226f1.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/librustc_hash-e464be4dfaa341b8.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/librustc_index-b5ea67aac3d631e0.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/librustc_serialize-d1f062f6e44e019a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libindexmap-74ab9ce36568dad4.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libhashbrown-472af65c507db9b5.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libsmallvec-559e9618d732e506.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libarrayvec-e131487128c41506.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libcfg_if-e05de33389f68a4a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libbitflags-51ef446c9e55d765.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libtracing-2cb82ab80fb24e13.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libpin_project_lite-416449d354801286.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libtracing_core-c1c7fee9e31fff3e.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/liblazy_static-8257221210e5fef1.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcfy7SPQ/libcfg_if-ff43668e46c2c234.rlib" "-Wl,--no-whole-archive" "-Wl,--start-group" "-L" "/builddir/build/BUILD/rustc-1.53.0-src/build/riscv64gc-unknown-linux-gnu/stage0-sysroot/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-lstd-6e827b9ae9f5847a" "-Wl,--end-group" "-Wl,-Bstatic" "/tmp/rustcfy7SPQ/libcompiler_builtins-0464e928c085ef22.rlib" "-Wl,-Bdynamic" "-lLLVM-11" "-latomic" "-lstdc++" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,-z,relro,-z,now" = note: lto1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. lto-wrapper: fatal error: cc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status error: aborting due to previous error error: could not compile `rustc_driver` To learn more, run the command again with --verbose. command did not execute successfully: "/usr/bin/cargo" "build" "--target" "riscv64gc-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "4" "--release" "--frozen" "--features" " llvm max_level_info" "--manifest-path" "/builddir/build/BUILD/rustc-1.53.0-src/compiler/rustc/Cargo.toml" "--message-format" "json-render-diagnostics" expected success, got: exit status: 101 failed to run: /builddir/build/BUILD/rustc-1.53.0-src/build/bootstrap/debug/bootstrap build -j 4 --stage 2 Build completed unsuccessfully in 3:01:52 error: Bad exit status from /var/tmp/rpm-tmp.ZxJxhQ (%build) Bad exit status from /var/tmp/rpm-tmp.ZxJxhQ (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rust.spec