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

Builds for armhf and aarch64 #6

Closed
j8r opened this Issue Dec 22, 2017 · 8 comments

Comments

3 participants
@j8r
Copy link

j8r commented Dec 22, 2017

Thank you for this useful Alpine packages. For now there are x86 and x86_64 builds, can the armhf and aarch64 builds be available too?

For now, I'm considering to cross-compile the compiler from "x86_64" to ARM, and then link it in a container running an ARM Alpine through QEMU. If you need I can try to do it and provide you ready to use compilers in order to bootstrap on the ARM architectures.

An other thing: is it possible to remove the --disable-static in the APKBUILD of libgc to be able to link statically, as in crystal-lang/crystal/issues/4276?

@ysbaddaden

This comment has been minimized.

Copy link
Owner

ysbaddaden commented Dec 24, 2017

I'm interested in alpine arm qemu images if you have some. Yet, I'm not sure I'll have dedicated time to build these additional architectures.

We don't need the updated GC anymore, alpine already provides v7.6+

@j8r

This comment has been minimized.

Copy link

j8r commented Dec 24, 2017

I've made a project to do so, apps-static. Basically, it uses Docker and special static builds of qemu to run a shell inside ARM images.

If you prefer LXC, I've not found templates, and no official ones are available yet.

For GC, I will compile one my self to include .a archives.

No problem if you have not the time for the builds, I will try to do it on my side. If I succeed, you will be able to package them for Alpine, if you like.

@j8r

This comment has been minimized.

Copy link

j8r commented Feb 27, 2018

Good news @ysbaddaden, an LXC template for Alpine ARMhf is now available!

@ysbaddaden

This comment has been minimized.

Copy link
Owner

ysbaddaden commented Feb 27, 2018

AFAIK it needs an ARM host, right?

@j8r

This comment has been minimized.

Copy link

j8r commented Feb 27, 2018

Not necessarily if you run the shell with a qemu binary. Thanks to https://github.com/resin-io/qemu, all subcommands executed via the shell will be also runned with qemu. It works with Docker, it should also work with other container runtimes.

@ysbaddaden

This comment has been minimized.

Copy link
Owner

ysbaddaden commented Feb 27, 2018

Sweet, I created a rootfs with usr/bin/qemu-arm-static, got the latest lxc-alpine template (hacked it to support an older LXC version) and now I have an alpine-armhf container, but I can't setup network inside 😭

EDIT: it seems I need qemu 2.7.0+ (recompiling) no luck I always get "protocol family not supported".

@j8r

This comment has been minimized.

Copy link

j8r commented May 7, 2018

We can close the issue, @jirutka has published for x86-64 and aarch64 on the edge branch of Alpine and probably will for armhf when it will be ready.
Thanks to him and you!

@j8r j8r closed this May 7, 2018

@jirutka

This comment has been minimized.

Copy link

jirutka commented May 7, 2018

FYI, I’ve already moved it from testing to the community repo, so it will be included in the upcoming Alpine v3.8 release.

…probably will for armhf when it will be ready.

I’d like to, but arm-linux-musleabihf support is currently broken (see crystal-lang/crystal#5862). :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment