Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to build for ARM, I686 #1440

Open
hicaru opened this issue Oct 7, 2024 · 2 comments
Open

Fail to build for ARM, I686 #1440

hicaru opened this issue Oct 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@hicaru
Copy link

hicaru commented Oct 7, 2024

Component

network, json-rpc, rpc, other

What version of Alloy are you on?

cargo build --target i686-linux-android

Operating System

Linux

Describe the bug

fail to building for cargo build --target i686-linux-android, cargo build --target aarch64-linux-android.

error[E0433]: failed to resolve: could not find `linux` in `os`
  --> /home/rinat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/interprocess-2.2.1/src/os/unix/uds_local_socket/tokio/stream.rs:36:17
   |
36 |             use std::os::linux::net::SocketAddrExt;
   |                          ^^^^^ could not find `linux` in `os`
   |
note: found an item that was configured out
  --> /home/rinat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/mod.rs:36:9
   |
36 | pub mod linux {}
   |         ^^^^^
note: the item is gated here
  --> /home/rinat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/mod.rs:28:1
   |
28 | / #[cfg(all(
29 | |     doc,
30 | |     any(
31 | |         all(target_arch = "wasm32", not(target_os = "wasi")),
32 | |         all(target_vendor = "fortanix", target_env = "sgx")
33 | |     )
34 | | ))]
   | |___^
note: found an item that was configured out
  --> /home/rinat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/mod.rs:76:9
   |
76 | pub mod linux;
   |         ^^^^^
note: the item is gated here
  --> /home/rinat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/mod.rs:75:1
   |
75 | #[cfg(any(target_os = "linux", doc))]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   Compiling alloy-signer v0.4.2
error[E0599]: no method named `as_abstract_name` found for struct `std::os::unix::net::SocketAddr` in the current scope
  --> /home/rinat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/interprocess-2.2.1/src/os/unix/uds_local_socket/tokio/stream.rs:37:12
   |
37 |             if addr.as_abstract_name().is_some() {
   |                     ^^^^^^^^^^^^^^^^
   |
  ::: /home/rinat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/net/linux_ext/addr.rs:63:8
   |
63 |     fn as_abstract_name(&self) -> Option<&[u8]>;
   |        ---------------- the method is available for `std::os::unix::net::SocketAddr` here
   |
   = help: items from traits can only be used if the trait is in scope
help: trait `SocketAddrExt` which provides `as_abstract_name` is implemented but not in scope; perhaps you want to import it
   |
1  + use std::os::android::net::SocketAddrExt;
   |
help: there is a method `as_pathname` with a similar name
   |
37 |             if addr.as_pathname().is_some() {
   |                     ~~~~~~~~~~~

   Compiling pin-project v1.1.5
Some errors have detailed explanations: E0433, E0599.
For more information about an error, try `rustc --explain E0433`.
   Compiling strum_macros v0.26.4
error: could not compile `interprocess` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
@hicaru hicaru added the bug Something isn't working label Oct 7, 2024
@DaniPopes
Copy link
Member

Can you please report it at https://github.com/kotauskas/interprocess

@hicaru
Copy link
Author

hicaru commented Oct 8, 2024

Can you please report it at https://github.com/kotauskas/interprocess

yes, but there building it.

and there finally building it without problem.

kotauskas/interprocess#74

they already fixed it, but has no new version pumped

https://github.com/kotauskas/interprocess/blob/main/src/os/unix/uds_local_socket/tokio/stream.rs#L36C1-L36C33

only when i try building alloy i see this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@hicaru @DaniPopes and others