From e8767d2b76ca8880f74e7c3826c36e0c28253e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 10 Nov 2024 00:31:11 +0200 Subject: [PATCH] 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. --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c120c34..45b86bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:bookworm +FROM debian:bullseye 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 \ 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-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