-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add musl-dev to alpine images #68
Comments
The official alpine images tend to be as small as possible - take go's for example: https://hub.docker.com/_/golang which doesn't even include gcc. |
What's the point of including gcc when there are not even std headers? Is it a common scenario to compile |
rustc uses gcc as its linker. |
Ok, got it. I guess |
Why is that not default in the rust-alpine container preinstalled? |
Given the discussion at rust-lang/compiler-team#422 Should that change land, the user will fail to build a simple "hello world" program when dynamic linking becomes default with musl targets. They'd either need to know to specify Documenting that on DockerHub would be the better route if the alpine image is meant to prioritize size over UX (less of an issue until the image toolchain defaults to dynamic linking), but only if the size increase was notable..
|
Currently when building something that involves compiling C (
bat
as an example), at the linking stage the following happens, due to missing/usr/lib/crti.o
:This can be eliminated simply by adding
musl-dev
after RUN apk add ....The text was updated successfully, but these errors were encountered: