1
Fork 0

Dockerfile: move to bullseye

Zig's 0.11.0 linking code has a bug where it would refuse to link to a
symbol that links to `pthread_create@@GLIBC_2_34`, since
`pthread_create@GLIBC_2.2.5` exists.

All that weirdness can be worked around by using a distro that has glibc
2.31.

For someone who is porting this to a modern distro: getting glibc-linked
0.11.0 may be tough. You may have better luck with 0.12.0.
If you really need 0.11.0, link stage3 to musl, that will just work.
This commit is contained in:
Motiejus Jakštys 2024-11-10 00:31:11 +02:00
parent 5b27005106
commit e8767d2b76
1 changed files with 1 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM debian:bookworm FROM debian:bullseye
RUN apt-get update && apt-get install -y ca-certificates RUN apt-get update && apt-get install -y ca-certificates
@ -10,5 +10,3 @@ RUN apt-get update && \
zstd binaryen cmake git make zlib1g-dev patch \ zstd binaryen cmake git make zlib1g-dev patch \
llvm-15 llvm-15-dev liblld-15-dev lld-15 clang-15 libclang-15-dev \ llvm-15 llvm-15-dev liblld-15-dev lld-15 clang-15 libclang-15-dev \
llvm-16 llvm-16-dev liblld-16-dev lld-16 clang-16 libclang-16-dev \ llvm-16 llvm-16-dev liblld-16-dev lld-16 clang-16 libclang-16-dev \
llvm-17 llvm-17-dev liblld-17-dev lld-17 clang-17 libclang-17-dev \
llvm-18 llvm-18-dev liblld-18-dev lld-18 clang-18 libclang-18-dev