Closed Moelf closed 1 year ago
ld
couldn't find -lgcc
even though we installed gcc
and build-base
, according to:
alpine-sdk
is a superset, so let's try to see if that resolves out build dependencyEven after adding all of this:
RUN apk add --no-cache clang lld libc-dev musl-dev compiler-rt compiler-rt-static alpine-sdk gcc hdf5-dev cmake
It didn't work. But with Debian, it does work. Adding a working commit.
yeah something is not very robust in Static*.jl stuff, we can do this as a workaround before the fix, thanks btw!
looking sharp
@Moelf you're very welcome. It could also be because of Alpine they use musl instead of something else the other distros use as far as I remember. I'm a bit fuzzy on the details. Yes, looks sharp. Going to merge it. Thank you again for your contribution. 👍
Ah, found an article. It's musl instead of glibc, and they are using busybox which was developed for embedded systems. That's why it is such a tiny image (~3MB see latest image), but sometimes software doesn't work because of these shortcuts, so then it's good to fall back to Debian or Ubuntu.
this compiles in a few seconds and runs like C (i.e. no start-up overhead):