[GH-ISSUE #141] 32-bit build fails #58

Closed
opened 2026-05-05 22:07:19 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @subhappy on GitHub (Jun 6, 2024).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/141

Hi, I've tried to compile lan-mouse both natively on the target i686-unknown-linux-gnu, and also crosscompiling from x86_64.
Both tries fail with the same error:

error[E0308]: mismatched types
--> /home/lars/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lan-mouse-0.8.0/src/frontend/gtk.rs:94:44
|
94 | let len = usize::from_be_bytes(len);
| -------------------- ^^^ expected an array with a fixed size of 4 elements, found one with 8 elements
| |
| arguments to this function are incorrect
|
note: associated function defined here
--> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/num/mod.rs:1256:5
= note: this error originates in the macro uint_impl (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try rustc --explain E0308.

Originally created by @subhappy on GitHub (Jun 6, 2024). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/141 Hi, I've tried to compile lan-mouse both natively on the target i686-unknown-linux-gnu, and also crosscompiling from x86_64. Both tries fail with the same error: > error[E0308]: mismatched types --> /home/lars/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lan-mouse-0.8.0/src/frontend/gtk.rs:94:44 | 94 | let len = usize::from_be_bytes(len); | -------------------- ^^^ expected an array with a fixed size of 4 elements, found one with 8 elements | | | arguments to this function are incorrect | note: associated function defined here --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/num/mod.rs:1256:5 = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info) For more information about this error, try `rustc --explain E0308`.
Author
Owner

@feschber commented on GitHub (Jun 8, 2024):

this is an oversight. Thanks for reporting!

<!-- gh-comment-id:2156205080 --> @feschber commented on GitHub (Jun 8, 2024): this is an oversight. Thanks for reporting!
Author
Owner

@subhappy commented on GitHub (Jun 9, 2024):

Thanks for the software :)

<!-- gh-comment-id:2156404855 --> @subhappy commented on GitHub (Jun 9, 2024): Thanks for the software :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#58
No description provided.