-
Notifications
You must be signed in to change notification settings - Fork 161
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
Quick cross build of pillar from amd64 to arm64 seems to be broken #71
Comments
Yes! I have had this open for a while. Question: do we care if we build in alpine or Debian? The reason I ask is installing the cross-compilers. In alpine, you need to download the right cross-compiler, usually from https://musl.cc but there are others. It currently doesn't work because of URL changes. In Debian, you can do something like: RUN dpkg --add-architecture arm64
RUN apt update
RUN apt install -y binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu and get what you need. Alpine explicitly does not package up cross-compilers and says they have no intention to do so (I checked last week again). Of course, the final image is |
I believe we can't avoid building in alpine on account on musl. Remember that the goal here is to get A SINGLE zedbox binary cross-built and then use image linkuxkit file stanza to replace it in the final image. |
Yes, definitely. The only concern I would have is with libc (glibc vs must), and even then, only if it makes certain calls. I have done some projects that distribute on alpine but build on Debian, precisely because of the cross-building ease. Assuming we do statically linked (which we definitely should be doing), then that would be the only potential issue. It is easy to test, of course. I will try to get to it. The real issue here is the |
@eriknordmark @deitch do we keep this or outdated? there was a PR recently #2998 so no issues expected. |
Correct @rouming and I can't reproduce this error anymore, let's close it. |
Description
Quick cross build of pillar from amd64 to arm64 seems to be broken
Steps to reproduce the issue:
On amd64:
$ cd pkg/pillar
$ make GOARCH=arm64 build-docker
Sometime is desirable to simply cross-build pillar alone and then replace it inside of the image that is being build for deployment
The text was updated successfully, but these errors were encountered: