zip-rs / zip-old

Zip implementation in Rust
MIT License
731 stars 204 forks source link

0.6.1 is still broken for armv5te #295

Closed messense closed 2 years ago

messense commented 2 years ago

0.6.1 is still broken for armv5te:

$ cargo build --target armv5te-unknown-linux-musleabi
Compiling zip v0.6.1
error[E0412]: cannot find type `AtomicU64` in module `atomic`
    --> /root/.cargo/registry/src/github.com-1ecc62[9](https://github.com/messense/aliyundrive-webdav/runs/5796858930?check_suite_focus=true#step:5:9)9db9ec823/zip-0.6.1/src/types.rs:258:30
     |
258  |   pub struct AtomicU64(atomic::AtomicU64);
     |                                ^^^^^^^^^ help: a struct with a similar name exists: `AtomicU[16](https://github.com/messense/aliyundrive-webdav/runs/5796858930?check_suite_focus=true#step:5:16)`
     |
note: struct `crate::write::zip_writer::AtomicU64` exists but is inaccessible
    --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/zip-0.6.1/src/types.rs:258:1
     |
258  | pub struct AtomicU64(atomic::AtomicU64);
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible

error[E0433]: failed to resolve: could not find `AtomicU64` in `atomic`
    --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/zip-0.6.1/src/types.rs:262:[22](https://github.com/messense/aliyundrive-webdav/runs/5796858930?check_suite_focus=true#step:5:22)
     |
262  |           Self(atomic::AtomicU64::new(v))
     |                        ^^^^^^^^^ help: a struct with a similar name exists: `AtomicU16`
     |
note: struct `crate::write::zip_writer::AtomicU64` exists but is inaccessible
    --> /root/.cargo/registry/src/github.com-1ecc6299db9ec8[23](https://github.com/messense/aliyundrive-webdav/runs/5796858930?check_suite_focus=true#step:5:23)/zip-0.6.1/src/types.rs:[25](https://github.com/messense/aliyundrive-webdav/runs/5796858930?check_suite_focus=true#step:5:25)8:1
     |
258  | pub struct AtomicU64(atomic::AtomicU64);
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible

error[E0433]: failed to resolve: could not find `AtomicU64` in `atomic`
    --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/zip-0.6.1/src/types.rs:[28](https://github.com/messense/aliyundrive-webdav/runs/5796858930?check_suite_focus=true#step:5:28)0:22
     |
280  |           Self(atomic::AtomicU64::new(self.load()))
     |                        ^^^^^^^^^ help: a struct with a similar name exists: `AtomicU16`
     |
note: struct `crate::write::zip_writer::AtomicU64` exists but is inaccessible
    --> /root/.cargo/registry/src/github.com-1ecc6[29](https://github.com/messense/aliyundrive-webdav/runs/5796858930?check_suite_focus=true#step:5:29)9db9ec823/zip-0.6.1/src/types.rs:258:1
     |
258  | pub struct AtomicU64(atomic::AtomicU64);
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible

Originally posted by @messense in https://github.com/zip-rs/zip/issues/284#issuecomment-1086500368