Skip to content

Commit e7e43ba

Browse files
committed
Downgrade gcc 11 back to bullseye
1 parent 4c74f6f commit e7e43ba

File tree

8 files changed

+59
-15
lines changed

8 files changed

+59
-15
lines changed

10/Dockerfile

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

11/Dockerfile

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

12/Dockerfile

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

13/Dockerfile

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

9/Dockerfile

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile.template

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,14 @@ RUN set -ex; \
134134
# this filename needs to sort higher than all the architecture filenames ("aarch64-...", "armeabi...", etc)
135135
{ echo '/usr/local/lib64'; echo '/usr/local/lib'; } > /etc/ld.so.conf.d/000-local-lib.conf; \
136136
ldconfig -v; \
137-
# smoke test to make sure the libs from /usr/local don't break Debian
138-
apt-get --version
137+
# the libc created by gcc might be too old for a newer Debian
138+
# check that the Debian libstdc++ doesn't have newer requirements than the gcc one
139+
bash -Eeuo pipefail -xc ' \
140+
deb="$(strings /usr/lib/*/libstdc++.so* | grep "^GLIBC" | sort -u)"; \
141+
gcc="$(strings /usr/local/lib*/libstdc++.so | grep "^GLIBC" | sort -u)"; \
142+
diff="$(comm -23 <(cat <<<"$deb") <(cat <<<"$gcc"))"; \
143+
test -z "$diff"; \
144+
'
139145

140146
# ensure that alternatives are pointing to the new compiler and that old one is no longer used
141147
RUN set -ex; \

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"11": {
1212
"compression": "xz",
1313
"debian": {
14-
"version": "bookworm"
14+
"version": "bullseye"
1515
},
1616
"eol": "2024-11-29",
1717
"lastModified": "2023-05-29",

versions.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
#!/bin/bash
22
set -Eeuo pipefail
33

4+
# the libc created by gcc might be too old for a newer Debian:
5+
# https://packages.debian.org/stable/gcc
6+
# bookworm: 12.2
7+
# bullseye: 10.2
8+
# buster: 8.3
9+
410
# defaultDebianSuite gets auto-declared below
511
declare -A debianSuites=(
6-
# the libc created by gcc is too old for a newer Debian
12+
# $ convert
13+
# convert: /usr/local/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found
14+
[11]='bullseye'
715
# $ apt --version
816
# apt: /usr/local/lib64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found
917
[10]='bullseye'

0 commit comments

Comments
 (0)