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

Peter Green plugwash at debian.org
Fri Apr 28 05:36:04 BST 2023


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&arch=riscv64&ver=1.5.1-2&stamp=1682451850&raw=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=/<<PKGBUILDDIR>> 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='/<<PKGBUILDDIR>>/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 /<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps --target riscv64gc-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern bitflags=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libbitflags-020e1d6f4909c410.rlib --extern capng=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libcapng-bdfdf42ef80240ab.rlib --extern env_logger=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libenv_logger-d43f373285c87e7e.rlib --extern futures=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libfutures-b3bc500ee27aba0a.rlib --extern libc=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/liblibc-8a51d731e0dcd23a.rlib --extern libseccomp_sys=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/liblibseccomp_sys-0ab028f4698ed367.rlib --extern log=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/liblog-cc8c7fcd95f45900.rlib --extern structopt=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libstructopt-841cdf971c364072.rlib --extern syslog=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libsyslog-65f8c45d0eba9692.rlib --extern vhost=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvhost-085bcc60ec15e5ad.rlib --extern vhost_user_backend=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvhost_user_backend-6a6bde03ae798550.rlib --extern virtio_bindings=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvirtio_bindings-cd7994908f89c7ca.rlib --extern virtio_queue=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvirtio_queue-347a8b571369835e.rlib --extern vm_memory=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libvm_memory-5fe874c960e9ebd0.rlib --extern vmm_sys_util=/<<PKGBUILDDIR>>/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 /<<PKGBUILDDIR>>=/usr/share/cargo/registry/virtiofsd-1.5.1 --remap-path-prefix /<<PKGBUILDDIR>>/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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20230428/c764ac2c/attachment.htm>


More information about the Pkg-rust-maintainers mailing list