Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 922236

Summary: multiple rust crates fail to compile on ppc: error[E0432]: unresolved import `std::sync::atomic::AtomicI64`
Product: Gentoo Linux Reporter: matoro <matoro_gentoo>
Component: Current packagesAssignee: Gentoo Rust Project <rust>
Status: CONFIRMED ---    
Severity: normal CC: ionen, matoro_gentoo, mgorny, ppc
Priority: Normal    
Version: unspecified   
Hardware: PPC   
OS: Linux   
URL: https://doc.rust-lang.org/std/sync/atomic/index.html#portability
See Also: https://bugs.gentoo.org/show_bug.cgi?id=918970
https://github.com/samuelcolvin/watchfiles/issues/261
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 913711, 930724, 917387, 919013, 921043, 921484, 922015, 923212, 925981, 928209    

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.