[Pkg-rust-maintainers] Bug#909400: rustc: Please backport patch to fix rand on powerpc-unknown-linux-gnu

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Sun Sep 23 00:41:42 BST 2018


Source: rustc
Version: 1.29.0+dfsg1-1~exp1
Severity: normal
Tags: upstream
User: debian-powerpc at lists.debian.org
Usertags: powerpc

Hi!

The rand crate has a bug on powerpc-unknown-linux-gnu where it
defines an incorrect syscall number for NR_GETRANDOM [1] which
causes rustc to FTBFS with:

     Running `/<<PKGBUILDDIR>>/build/powerpc-unknown-linux-gnu/stage1-std/release/build/compiler_builtins-997f033d8d7e2719/build-script-build`
thread 'main' panicked at 'unexpected getrandom error: Invalid argument (os error 22)', vendor/rand-0.4.2/src/os.rs:130:21
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::print
(...)

Can you please backport this patch and include it in the next
upload to fix rustc on powerpc?

Thanks,
Adrian

> [1] https://github.com/rust-random/rand/pull/589/files

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the Pkg-rust-maintainers mailing list