mimblewimble / grin

Minimal implementation of the Mimblewimble protocol.
https://grin.mw/
Apache License 2.0
5.04k stars 992 forks source link

v5.1.2 building error #3742

Closed ardocrat closed 1 year ago

ardocrat commented 1 year ago

I have problem with building node on Arch.

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
   --> /home/user/.cargo/registry/src/github.com/socket2-0.3.12/src/sockaddr.rs:176:9
    |
176 |         mem::transmute::<SocketAddrV4, sockaddr_in>(v4);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: source type: `SocketAddrV4` (48 bits)
    = note: target type: `sockaddr_in` (128 bits)

For more information about this error, try `rustc --explain E0512`.

Steps to reproduce the behavior:

  1. Run cargo build --release
  2. See error

I have installed:

rustc 1.67.1
cargo 1.67.1
ardocrat commented 1 year ago

Fixed at socket2@0.3.19.