-
Notifications
You must be signed in to change notification settings - Fork 11
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
Image does not build on other architectures than x86_64 #4
Comments
@bakousylla Which command triggers this error? |
@bakousylla Still, please provide me the Anyway: I just uploaded a new version of the tool including the mentioned library. Can you check if this resolves your issue? |
I'have the same issue /usr/local/bin/aws: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory after pulling your modif |
@bakousylla So please advise: Which cmmand triggers this error? |
when I just try to build image
|
It seems that you are trying to build this image on aarch64 architecture, right? Your main issue is, that currently the I found an open issue upstream there asking for an arm port: sgerrand/alpine-pkg-glibc#126 Maybe this approach to build a container without GLIBC works on |
you are right, I have the arm root:xnu-7195.141.6~3/RELEASE_ARM64_T8101 arm64, I'll try your solution without GLIBC, thanks a lot |
I think I got it working with GLIBC on ARM by installing GLIBC from SatoshiPortal, which also provides them for
You can switch between |
@Ic3w0lf Awesome. Thanks for you contribution. If I find a feasible easy way to crosscompile for other architectures I might adopt your example into my build and start publishing for additional architectures, too. Just our of curiosity: What is you motivation for a |
@bentolor Super glad this is helpful :) My main motivation is Apple M1 in this case. I don't have any Apple Silicon myself, but wanted to provide this container as multiarch build for my colleagues who often go with M1 (especially in the future). I couldn't really test in-depth if this works but asked a friend who is on M1 if he could quickly run Looking forward to see you try out other architectures as well! What architectures do you have in mind? |
@Ic3w0lf Thanks for your insights. To be honest: You issue showed me my ignorance regarding alternative platforms. Till now in IT we just developed for Looking on the linked list I think But it seems we are both driven by the same interest in being prepared for upcoming trends. I just resurrected my old Raspberry Pi 3B and installed an |
@bentolor Thank you for insights as well! I agree with you. Until now it has pretty much been And please let me know if Cheers and have a great evening! |
Hitting the same error. Haven't yet attempted the workaround, but wondering if there were any updates on a cross compiled option? |
@david-AH just for my "census": Which architectures are you missing? Unfortunately this needs to be tackled individually per plattform right now. |
Apple M1 -> arm64 |
Okay, after I realized cross-building is quite simple usine QEmu, I did a first run, but failed to succeed. You can see my efforts at https://github.com/bentolor/docker-dind-awscli/tree/experimental/aarch64 and there is a Unfortunately the build fails with errors like
Not sure what's the culprit here. I also had to downgrade the glibc version as the source does not provide newer builds. |
Hello,
I get this error /usr/local/bin/aws: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory if I try to generate an image with your dockerfile, do you have any idea what the problem might be ?
Thanks for your help
The text was updated successfully, but these errors were encountered: