Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922236 - multiple rust crates fail to compile on ppc: error[E0432]: unresolved import `std::sync::atomic::AtomicI64`
Summary: multiple rust crates fail to compile on ppc: error[E0432]: unresolved import ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Gentoo Rust Project
URL: https://doc.rust-lang.org/std/sync/at...
Whiteboard:
Keywords:
Depends on:
Blocks: 913711 917387 919013 921043 921484 922015 923212 925981 928209
  Show dependency tree
 
Reported: 2024-01-16 18:22 UTC by matoro
Modified: 2024-11-17 16:22 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-01-16 18:22:23 UTC
This affects multiple rust crates, and multiple packages that consume those crates, and most upstreams have separate discussions on this.  This is a catch-all bug to block all relevant keywording/stabilizations on ppc that are stuck because they need this bug addressed.  Sample of what this looks like:

error[E0432]: unresolved import `std::sync::atomic::AtomicI64`
 --> /var/tmp/portage/dev-python/watchfiles-0.21.0-r1/work/cargo_home/gentoo/pyo3-0.20.0/src/impl_/pymodule.rs:6:25
  |
6 | use std::sync::atomic::{AtomicI64, Ordering};
  |                         ^^^^^^^^^
  |                         |
  |                         no `AtomicI64` in `sync::atomic`
  |                         help: a similar name exists in the module: `AtomicI32`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `pyo3` (lib) due to previous error

More links will be added as this is catalogued.

Reproducible: Always
Comment 1 matoro archtester 2024-01-16 18:24:10 UTC
This affects 32-bit mips as well, apparently.
Comment 2 Ionen Wolkens gentoo-dev 2024-01-16 19:00:10 UTC
pyo3-0.20.0

For the record this particular crate had this issue introduced in 0.20.0 (0.19.x is fine) and was fixed 0.21.0[1]

[1] https://github.com/PyO3/pyo3/issues/3614
Comment 3 Ionen Wolkens gentoo-dev 2024-01-16 19:02:32 UTC
(In reply to Ionen Wolkens from comment #2)
> pyo3-0.20.0
> 
> For the record this particular crate had this issue introduced in 0.20.0
> (0.19.x is fine) and was fixed 0.21.0[1]
My bad, I thought it was in 0.21.0 -- looks like it's not released yet.
Comment 4 Larry the Git Cow gentoo-dev 2024-11-17 16:22:05 UTC
The bug has been referenced in the following commit(s):

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

commit d213d850caf1be8141103f0c053581e0fd587da5
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-11-17 16:21:29 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-11-17 16:21:29 +0000

    profiles/arch/powerpc/ppc32: mask sys-fs/lvm2[thin]
    
    Bug: https://bugs.gentoo.org/922236
    Bug: https://bugs.gentoo.org/930724
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 profiles/arch/powerpc/ppc32/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)