-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Cross compilation (Docker) to arm64 and arm/v7 #21
Comments
same thing will need to be figured out for linux/arm/v7 too |
Have you tried Cross? Any objections of adding it to the project? If not, I'll give it a go later today. Cross compilation to aarch64-unknown-linux-musl & aarch64-unknown-linux-gnu work for me (outside the container for now) using Cross & |
I'm definitely open to trying it! Feel free to give it a go, I did add |
Reopening this as compilation is successful for both arm64 and arm/v7, however testing on actual arm devices fails. ( /app $ readelf -a stump | grep interpreter
[Requesting program interpreter: /lib/ld-linux-aarch64.so.1]
/lib $ ls
apk libc.musl-aarch64.so.1 libz.so.1.2.12
firmware libcrypto.so.1.1 mdev
ld-musl-aarch64.so.1 libssl.so.1.1 modules-load.d
libapk.so.3.12.0 libz.so.1 sysctl.d Looks like it is trying to grab something that doesn't exist Edit: creating a sym link seems to have fixed it! Tested in the already built image creating the link as root ( |
This line RUN ln -s /lib/ld-musl-aarch64.so.1 /lib/ld-linux-aarch64.so.1; exit 0 fixes the docker image for arm64, now I will just have to fix arm/v7 and can close this issue. |
Closing for #27 |
Making this a real issue to hopefully get more visibility. I haven't quite figured out how to get cross-compilation (in Docker) working, an absolutely essential thing to get working so Stump can run on arm systems (e.g. rpi-4).
see https://github.com/aaronleopold/stump/tree/aleopold--arm64-can-sma
The text was updated successfully, but these errors were encountered: