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

Provide build for armv6l #15

Open
daCaPo opened this issue Mar 14, 2023 · 1 comment
Open

Provide build for armv6l #15

daCaPo opened this issue Mar 14, 2023 · 1 comment

Comments

@daCaPo
Copy link

daCaPo commented Mar 14, 2023

Would it be possible to create a binary buld for a Raspberry Pi B (armv6l)?

@exquo
Copy link
Owner

exquo commented Mar 23, 2023

Compiling for ARMv6 turns out to be not very straightforward: the gcc-arm-linux-gnueabihf toolchain from the distros' repos is configured with armv7 flags, so the binaries it produces rely on armv7 instructions and don't run on armv6 (1, 2, 3, 4).

One recommended workaround is to use gcc from https://github.com/raspberrypi/tools. But when building libsignal it stumbles on the boringssl step due to the missing header files (logs).
Attempting to use cross-rs fails on configuring Cmake for boringssl.
Using a QEMU container to avoid cross-compilation hits a QEMU bug with large filesizes on 32-bit systems.

Some of the these methods could probably be made to work, but I haven't had the time to troubleshoot it further. PRs welcome!

Other ideas:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants