Closed he32 closed 4 years ago
I've re-tried the build by trying to use an updated external LLVM (version 9.0.0), and it fails the same way:
error: failed to run custom build command for `libc v0.2.60`
Caused by:
process didn't exit successfully: `/usr/pkgsrc/lang/rust/work/rustc-1.38.0-src/build/powerpc-unknown-netbsd/stage1-rustc/release/build/libc-37e397b190d97e24/build-script-build` (signal: 11, SIGSEGV: invalid memory reference)
So ... this, sadly, appears to be a regression for powerpc between LLVM 8 and LLVM 9.
FWIW, I consistently get a similar error when compiling Firefox 71 on Gentoo with Rust 1.39 and LLVM 9 on x86-64. Bundled or system LLVM, does not matter in my case.
@elprans Do you also see a similar back trace for the crash?
@nikic Despite an eerily similar crash, my case seems to have been caused by Gentoo's build sandbox. Sorry for the noise!
I've been continuing to track new rust releases, and now that it's cross-compileable again, I've made a new attempt with 1.41.1 and the internal LLVM, and I can no longer reproduce the problem; the rust build completes successfully, and the cross-built compiler can compile itself natively.
Therefore I'm closing this issue.
The build of rust 1.38.0 natively on NetBSD/powerpc 8.0 fails if the build is instructed to use the internal LLVM. The corresponding build with an external LLVM (version 8.0.1) succeeds.
The failure is fairly similar to what is seen in issue #64903 -- in this case the build stops with and not during the build of
ryu
:The stack backtrace from GDB is however nearly impossible to make any sense of:
When the rust build is instructed to use an external LLVM (version 8.0.1) via
--enable-llvm-link-shared
and--llvm-root=${LLVM_ROOT}
on this platform, the build succeeds.As an additional data point, a native build of rust 1.38.0 on NetBSD/aarch64 using the internal LLVM succeeds, as does a build on NetBSD/amd64, also using the internal LLVM.