Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926407 - dev-util/maturin-1.5.0 fails to compile on loong: error[E0425]: cannot find value `FS_IOC_GETFLAGS` in module `c`
Summary: dev-util/maturin-1.5.0 fails to compile on loong: error[E0425]: cannot find ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Loong Linux
: Normal normal
Assignee: Ionen Wolkens
URL: https://github.com/bytecodealliance/r...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-07 15:57 UTC by matoro
Modified: 2024-03-21 14:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (file_926407.txt,56.84 KB, text/plain)
2024-03-07 15:58 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-03-07 15:57:39 UTC
Due to rustix-0.38.30, which is due to libc.  Marked upstream as https://github.com/bytecodealliance/rustix/issues/1009

   Compiling ahash v0.8.7
     Running `rustc --crate-name build_script_build --edition=2018 /var/tmp/portage/dev-util/maturin-1.5.0/work/cargo_home/gentoo/ahash-0.8.7/./build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C metadata=d29c5ad186d5c3fc -C extra-filename=-d29c5ad186d5c3fc --out-dir /var/tmp/portage/dev-util/maturin-1.5.0/work/maturin-1.5.0/target/release/build/ahash-d29c5ad186d5c3fc -L dependency=/var/tmp/portage/dev-util/maturin-1.5.0/work/maturin-1.5.0/target/release/deps --extern version_check=/var/tmp/portage/dev-util/maturin-1.5.0/work/maturin-1.5.0/target/release/deps/libversion_check-ed0003bb26cbc4a7.rlib --cap-lints allow`
error[E0425]: cannot find value `FS_IOC_SETFLAGS` in module `c`
    --> /var/tmp/portage/dev-util/maturin-1.5.0/work/cargo_home/gentoo/rustix-0.38.30/src/fs/ioctl.rs:161:57
     |
161  |         let ctl = ioctl::Setter::<ioctl::BadOpcode<{ c::FS_IOC_SETFLAGS }>, u32>::new(flags.bits());
     |                                                         ^^^^^^^^^^^^^^^
     |
    ::: /var/tmp/portage/dev-util/maturin-1.5.0/work/cargo_home/gentoo/libc-0.2.152/src/unix/linux_like/linux/mod.rs:2922:1
     |
2922 | pub const SIOCSIFFLAGS: ::c_ulong = 0x00008914;
     | --------------------------------- similarly named constant `SIOCSIFFLAGS` defined here
     |
help: a constant with a similar name exists
     |
161  |         let ctl = ioctl::Setter::<ioctl::BadOpcode<{ c::SIOCSIFFLAGS }>, u32>::new(flags.bits());
     |                                                         ~~~~~~~~~~~~
help: consider importing this constant
     |
5    + use linux_raw_sys::ioctl::FS_IOC_SETFLAGS;
     |
help: if you import `FS_IOC_SETFLAGS`, refer to it directly
     |
161  -         let ctl = ioctl::Setter::<ioctl::BadOpcode<{ c::FS_IOC_SETFLAGS }>, u32>::new(flags.bits());
161  +         let ctl = ioctl::Setter::<ioctl::BadOpcode<{ FS_IOC_SETFLAGS }>, u32>::new(flags.bits());

Reproducible: Always
Comment 1 matoro archtester 2024-03-07 15:58:13 UTC
Created attachment 886951 [details]
build.log and emerge --info
Comment 2 Ionen Wolkens gentoo-dev 2024-03-07 19:24:25 UTC
Guess I'll just mask this version on ~loong in the interim (no urgency to update), and forward the report to maturin so that they can either upgrade or downgrade the crate as needed next bump (I say downgrade because [1] is not in a release yet as of the writing of this).

Guess this is a problem that is going to affect every packages that use the crate again... thankfully not too many keyworded for ~loong.

[1] https://github.com/bytecodealliance/rustix/commit/8edaecae
Comment 3 Larry the Git Cow gentoo-dev 2024-03-07 19:35:04 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94fc0eec5b65b38b50e895dd7d2c46905eb93c77

commit 94fc0eec5b65b38b50e895dd7d2c46905eb93c77
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-03-07 19:32:59 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-03-07 19:34:30 +0000

    profiles/arch/loong: mask dev-util/maturin-1.5.0
    
    Bug: https://bugs.gentoo.org/926407
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 profiles/arch/loong/package.mask | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2024-03-21 14:41:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5286f0d5011667c5088d267d95a046668fbc84e

commit a5286f0d5011667c5088d267d95a046668fbc84e
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-03-21 14:24:52 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-03-21 14:40:55 +0000

    dev-util/maturin: add 1.5.1
    
    untested wrt bug #926407, but rustix and libc crates were
    bumped so the immediate issue should be fixed
    
    Closes: https://bugs.gentoo.org/926407
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-util/maturin/Manifest             |   3 +
 dev-util/maturin/maturin-1.5.1.ebuild | 543 ++++++++++++++++++++++++++++++++++
 2 files changed, 546 insertions(+)