Giter Club home page Giter Club logo

Comments (5)

deitch avatar deitch commented on July 20, 2024

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 FROM alpine:3.8, so it should not affect the results (need to watch out for libc and dynamically linked dependencies).

from eve.

rvs avatar rvs commented on July 20, 2024

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.

from eve.

deitch avatar deitch commented on July 20, 2024

Remember that the goal here is to get A SINGLE zedbox binary cross-built

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 CGO. Without that, we don't need any of the cross-compilers, since go itself does it so well.

from eve.

rouming avatar rouming commented on July 20, 2024

@eriknordmark @deitch do we keep this or outdated? there was a PR recently #2998 so no issues expected.

from eve.

rene avatar rene commented on July 20, 2024

Correct @rouming and I can't reproduce this error anymore, let's close it.

from eve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.