Building the docker file on my environment (OSX 14.4, Docker version 26.0.0) leads to the following error:
error: *** A compiler with support for C++11 language features is required.
Complete trace:
[+] Building 50.2s (11/31) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.79kB 0.0s
=> [internal] load metadata for docker.io/library/alpine:3.17 2.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 3.10kB 0.0s
=> [builder 1/23] FROM docker.io/library/alpine:3.17@sha256:53cf9478b76f4c8fae126acbdfb79bed6e69e628faff572ebe4a029d3d247d98 0.5s
=> => resolve docker.io/library/alpine:3.17@sha256:53cf9478b76f4c8fae126acbdfb79bed6e69e628faff572ebe4a029d3d247d98 0.0s
=> => sha256:53cf9478b76f4c8fae126acbdfb79bed6e69e628faff572ebe4a029d3d247d98 1.64kB / 1.64kB 0.0s
=> => sha256:74440a3ca0e58af8aa796467285de45d0e079067c79200f2cfab30d6a38051d8 528B / 528B 0.0s
=> => sha256:f0fd8fe16bfa55179c65d208ce8abf58197e85136f6a1dc543d2136424fd665c 1.49kB / 1.49kB 0.0s
=> => sha256:5385a9a590c3e2872b3ed27554a56fb7ce544c694b41b9b95d70fa86f30b0566 3.26MB / 3.26MB 0.4s
=> => extracting sha256:5385a9a590c3e2872b3ed27554a56fb7ce544c694b41b9b95d70fa86f30b0566 0.1s
=> [internal] load build context 0.0s
=> => transferring context: 185.09kB 0.0s
=> [builder 2/23] RUN apk update && apk add make cmake autoconf automake pkgconfig gcc g++ gdb clang15 clang15-dev clang15-libs clang15-extra-tools 41.6s
=> [builder 3/23] RUN rm /usr/bin/ld && ln -s /usr/bin/lld /usr/bin/ld # use lld as default linker 0.2s
=> [builder 4/23] RUN git clone --quiet --branch gperftools-2.9.1 --depth 1 https://github.com/gperftools/gperftools 0.8s
=> [builder 5/23] WORKDIR /gperftools 0.0s
=> [builder 6/23] RUN ./autogen.sh 4.2s
=> ERROR [builder 7/23] RUN ./configure --enable-minimal --disable-debugalloc --enable-sized-delete --enable-dynamic-sized-delete-support && make 0.8s
------
> [builder 7/23] RUN ./configure --enable-minimal --disable-debugalloc --enable-sized-delete --enable-dynamic-sized-delete-support && make -j$(nproc) && make install:
0.107 checking build system type... aarch64-unknown-linux-musl
0.150 checking host system type... aarch64-unknown-linux-musl
0.150 checking for a BSD-compatible install... /usr/bin/install -c
0.250 checking whether build environment is sane... yes
0.252 checking for a race-free mkdir -p... ./install-sh -c -d
0.254 checking for gawk... no
0.254 checking for mawk... no
0.254 checking for nawk... no
0.255 checking for awk... awk
0.255 checking whether make sets $(MAKE)... yes
0.258 checking whether make supports nested variables... yes
0.260 checking whether to enable maintainer-specific portions of Makefiles... no
0.260 checking for git... /usr/bin/git
0.261 checking whether make supports the include directive... yes (GNU style)
0.263 checking for gcc... clang
0.324 checking whether the C compiler works... yes
0.371 checking for C compiler default output file name... a.out
0.371 checking for suffix of executables...
0.412 checking whether we are cross compiling... no
0.454 checking for suffix of object files... o
0.467 checking whether the compiler supports GNU C... yes
0.481 checking whether clang accepts -g... yes
0.494 checking for clang option to enable C11 features... none needed
0.526 checking whether clang understands -c and -o together... yes
0.551 checking dependency style of clang... gcc3
0.637 checking whether the compiler supports GNU C++... no
0.650 checking whether clang++ accepts -g... yes
0.664 checking for clang++ option to enable C++11 features... none needed
0.676 checking dependency style of clang++... gcc3
0.694 checking for gcc... (cached) clang
0.747 checking whether the compiler supports GNU C... (cached) yes
0.747 checking whether clang accepts -g... (cached) yes
0.747 checking for clang option to enable C11 features... (cached) none needed
0.748 checking whether clang understands -c and -o together... (cached) yes
0.748 checking dependency style of clang... (cached) gcc3
0.748 checking how to run the C preprocessor... clang -E
0.799 checking whether clang++ supports C++11 features with -std=gnu++11... no
0.811 checking whether clang++ supports C++11 features with -std=gnu++0x... no
0.824 configure: error: *** A compiler with support for C++11 language features is required.
------
Dockerfile:23
--------------------
22 | RUN ./autogen.sh
23 | >>> RUN ./configure \
24 | >>> --enable-minimal \
25 | >>> --disable-debugalloc \
26 | >>> --enable-sized-delete \
27 | >>> --enable-dynamic-sized-delete-support && \
28 | >>> make -j$(nproc) && \
29 | >>> make install
30 | WORKDIR /
--------------------
ERROR: failed to solve: process "/bin/sh -c ./configure --enable-minimal --disable-debugalloc --enable-sized-delete --enable-dynamic-sized-delete-support && make -j$(nproc) && make install" did not complete successfully: exit code: 1```
Building the docker file on my environment (OSX 14.4, Docker version 26.0.0) leads to the following error:
error: *** A compiler with support for C++11 language features is required.
Complete trace: