This repository has been archived by the owner on Jan 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
Unable to build on armv7 device #11
Comments
Hi. Very cool that you are trying this. I have not ever compiled any rust code for arm so I have no idea how far you will get. It looks like you could make an alternative implementation of setrlimit with different types for arm. It could be protected by a cfg checking the architecture similarly to how we have two implementations of putenv. |
Thanks for the reply! I was successful with only minor, wonky hacking involved ;-) src/nix_ext.rs:
src/main.rs:
Then:
and:
Next challenge is to generate a |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm entirely unfamiliar with Rust (!) but was intrigued to try building railcar on an armv7 device.
If I'm headed down a dead-end, please let me know.
During the build, I'm encountering 2 errors:
CAPGET
|CAPSET
not found in caps-rs: caps-rs on armv7 CAP[S|G]ET not found innr
lucab/caps-rs#2This second issue may be a consequence of (my solution to) the first? The armv7 is 32-bit not 64-bit and, IIUC, libc:c_ulonglong is (defaulting) to 64-bit
nix_ext.rs:
Installation
Configuration
Aside:
I tried using
armv7-unknown-linux-musleabihf
but realize that target is effectively not availableThe text was updated successfully, but these errors were encountered: