Bug#1034865: [Pkg-rust-maintainers] Bug#1034865: compilation error on riscv64

2023-04-27 Thread Peter Green

reassign 1034865 rust-virtiofsd
thanks

On 28/04/2023 05:23, Michael Tokarev wrote:

I'm sorry about this.. - I planned but forgot to include the link,
here it is:

https://buildd.debian.org/status/fetch.php?pkg=rust-virtiofsd=riscv64=1.5.1-2=1682451850=0



The real error seems to be.


error[E0425]: cannot find value `SYS_renameat` in crate `libc`
--> src/seccomp.rs:156:31
 |
156 | allow_syscall!(ctx, libc::SYS_renameat);
 |    help: a constant with a 
similar name exists: `SYS_renameat2`

  Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=virtiofsd CARGO_MANIFEST_DIR=/<> CARGO_PKG_AUTHORS='The Virtiofs Project Developers' CARGO_PKG_DESCRIPTION='A virtio-fs vhost-user device daemon' CARGO_PKG_HOMEPAGE='https://virtio-fs.gitlab.io/' CARGO_PKG_LICENSE='Apache-2.0 AND BSD-3-Clause' CARGO_PKG_LICENSE_FILE='' 
CARGO_PKG_NAME=virtiofsd CARGO_PKG_REPOSITORY='https://gitlab.com/virtio-fs/virtiofsd' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.5.1 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=5 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/<>/target/debug/deps:/usr/lib' rustc 
--crate-name virtiofsd --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=6f7229c0f333c6ab -C extra-filename=-6f7229c0f333c6ab --out-dir /<>/target/riscv64gc-unknown-linux-gnu/debug/deps --target 
riscv64gc-unknown-linux-gnu -C incremental=/<>/target/riscv64gc-unknown-linux-gnu/debug/incremental -L dependency=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps -L dependency=/<>/target/debug/deps --extern 
bitflags=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libbitflags-020e1d6f4909c410.rlib --extern capng=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libcapng-bdfdf42ef80240ab.rlib --extern 
env_logger=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libenv_logger-d43f373285c87e7e.rlib --extern futures=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libfutures-b3bc500ee27aba0a.rlib --extern 
libc=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/liblibc-8a51d731e0dcd23a.rlib --extern libseccomp_sys=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/liblibseccomp_sys-0ab028f4698ed367.rlib --extern 
log=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/liblog-cc8c7fcd95f45900.rlib --extern structopt=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libstructopt-841cdf971c364072.rlib --extern 
syslog=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libsyslog-65f8c45d0eba9692.rlib --extern vhost=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvhost-085bcc60ec15e5ad.rlib --extern 
vhost_user_backend=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvhost_user_backend-6a6bde03ae798550.rlib --extern virtio_bindings=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvirtio_bindings-cd7994908f89c7ca.rlib --extern 
virtio_queue=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvirtio_queue-347a8b571369835e.rlib --extern vm_memory=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvm_memory-5fe874c960e9ebd0.rlib --extern 
vmm_sys_util=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvmm_sys_util-7b1ce134cf22cc99.rlib -C debuginfo=2 --cap-lints warn -C linker=riscv64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<>=/usr/share/cargo/registry/virtiofsd-1.5.1 --remap-path-prefix 
/<>/debian/cargo_registry=/usr/share/cargo/registry`
For more information about this error, try `rustc --explain E0425`.
error: could not compile `virtiofsd` due to previous error

It looks like this is fixed in version 1.6.0

https://gitlab.com/virtio-fs/virtiofsd/-/commit/4c792d7d4d0dc1ade166ebcf839ef6e2f62681c7




Bug#1034865: compilation error on riscv64

2023-04-27 Thread Michael Tokarev

I forgot to give reference to the actual issue. Here it is:

https://buildd.debian.org/status/fetch.php?pkg=rust-virtiofsd=riscv64=1.5.1-2=1682451850=0
https://buildd.debian.org/status/package.php?p=rust-virtiofsd

I don't know rust so maybe the bug is mis-filed..

Thanks,

/mjt



Bug#1034865: compilation error on riscv64

2023-04-26 Thread Michael Tokarev
Source: rust-hostname
Version: 0.3.1-1
Severity: normal

When building rust packages using librust-hostname-dev on riscv64,
the build fails with the following diagnostics:

   Compiling hostname v0.3.1
 Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=hostname 
CARGO_MANIFEST_DIR=/<>/debian/cargo_registry/hostname-0.3.1 
CARGO_PKG_AUTHORS='fengcen :svartalf 
' CARGO_PKG_DESCRIPTION='Cross-platform system'\''s host 
name functions' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT 
CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=hostname 
CARGO_PKG_REPOSITORY='https://github.com/svartalf/hostname' 
CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.3.1 CARGO_PKG_VERSION_MAJOR=0 
CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' 
LD_LIBRARY_PATH='/<>/target/debug/deps:/usr/lib' rustc 
--crate-name hostname 
/<>/debian/cargo_registry/hostname-0.3.1/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 
debuginfo=2 --cfg 'feature="default"' -C metadata=b65d191c62f2f29c -C 
extra-filename=-b65d191c62f2f29c --out-dir 
/<>/target/riscv64gc-unknown-linux-gnu/debug/deps --target 
riscv64gc-unknown-linux-gnu -L 
dependency=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps -L 
dependency=/<>/target/debug/deps --extern 
libc=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/liblibc-8a51d731e0dcd23a.rmeta
 --extern 
match_cfg=/<>/target/riscv64gc-unknown-linux-gnu/debug/deps/libmatch_cfg-a5ac8faeda475488.rmeta
 --cap-lints warn -C debuginfo=2 --cap-lints warn -C 
linker=riscv64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix 
/<>=/usr/share/cargo/registry/virtiofsd-1.5.1 --remap-path-prefix 
/<>/debian/cargo_registry=/usr/share/cargo/registry`
warning: trivial cast: `*mut u8` as `*mut u8`
  --> /usr/share/cargo/registry/hostname-0.3.1/src/nix.rs:22:27
   |
22 | libc::gethostname(buffer.as_mut_ptr() as *mut libc::c_char, size)
   |   
   |
note: the lint level is defined here
  --> /usr/share/cargo/registry/hostname-0.3.1/src/lib.rs:53:5
   |
53 | trivial_casts,
   | ^
   = help: cast can be replaced by coercion; this might require a temporary 
variable

So the result is that other package(s) FTBFS.