Skip to content

Commit b39c770

Browse files
authored
Updating Jammy(Ubuntu 22.04) C/C++ versions (#340)
Ubuntu 22.04 tools use gcc-11 aligned C/C++ libraries and runtimes as built by the distribution. The package for gcc-9 aligned versions are available, but installing any tool (e.g libtool) from the official repositories will install gcc-11 aligned runtimes. Clang will see this version instead and go looking for the C++ headers that match the latest version of gcc, which is 11. The tools don't necessarily install the libstdc++-11 headers though, so clang will fail to find things like iostream and friends. Swift runs and builds fine with the newer C++ library, so I'm updating all 22.04-aligned swift dockerfiles with the version used by the system natively.
1 parent 35e6af7 commit b39c770

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

5.7/ubuntu/22.04/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
1111
libc6-dev \
1212
libcurl4-openssl-dev \
1313
libedit2 \
14-
libgcc-9-dev \
14+
libgcc-11-dev \
1515
libpython3-dev \
1616
libsqlite3-0 \
17-
libstdc++-9-dev \
17+
libstdc++-11-dev \
1818
libxml2-dev \
1919
libz3-dev \
2020
pkg-config \

5.8/ubuntu/22.04/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
1111
libc6-dev \
1212
libcurl4-openssl-dev \
1313
libedit2 \
14-
libgcc-9-dev \
14+
libgcc-11-dev \
1515
libpython3-dev \
1616
libsqlite3-0 \
17-
libstdc++-9-dev \
17+
libstdc++-11-dev \
1818
libxml2-dev \
1919
libz3-dev \
2020
pkg-config \

nightly-5.7/ubuntu/22.04/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
1111
libc6-dev \
1212
libcurl4-openssl-dev \
1313
libedit2 \
14-
libgcc-9-dev \
14+
libgcc-11-dev \
1515
libpython3-dev \
1616
libsqlite3-0 \
17-
libstdc++-9-dev \
17+
libstdc++-11-dev \
1818
libxml2-dev \
1919
libz3-dev \
2020
pkg-config \

nightly-5.7/ubuntu/22.04/buildx/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
1111
libc6-dev \
1212
libcurl4-openssl-dev \
1313
libedit2 \
14-
libgcc-9-dev \
14+
libgcc-11-dev \
1515
libpython3-dev \
1616
libsqlite3-0 \
17-
libstdc++-9-dev \
17+
libstdc++-11-dev \
1818
libxml2-dev \
1919
libz3-dev \
2020
pkg-config \

nightly-5.8/ubuntu/22.04/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
1010
libc6-dev \
1111
libcurl4-openssl-dev \
1212
libedit2 \
13-
libgcc-9-dev \
13+
libgcc-11-dev \
1414
libpython3-dev \
1515
libsqlite3-0 \
16-
libstdc++-9-dev \
16+
libstdc++-11-dev \
1717
libxml2-dev \
1818
libz3-dev \
1919
pkg-config \

nightly-5.8/ubuntu/22.04/buildx/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
1010
libc6-dev \
1111
libcurl4-openssl-dev \
1212
libedit2 \
13-
libgcc-9-dev \
13+
libgcc-11-dev \
1414
libpython3-dev \
1515
libsqlite3-0 \
16-
libstdc++-9-dev \
16+
libstdc++-11-dev \
1717
libxml2-dev \
1818
libz3-dev \
1919
pkg-config \

nightly-5.9/ubuntu/22.04/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
1010
libc6-dev \
1111
libcurl4-openssl-dev \
1212
libedit2 \
13-
libgcc-9-dev \
13+
libgcc-11-dev \
1414
libpython3-dev \
1515
libsqlite3-0 \
16-
libstdc++-9-dev \
16+
libstdc++-11-dev \
1717
libxml2-dev \
1818
libz3-dev \
1919
pkg-config \

nightly-5.9/ubuntu/22.04/buildx/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
1010
libc6-dev \
1111
libcurl4-openssl-dev \
1212
libedit2 \
13-
libgcc-9-dev \
13+
libgcc-11-dev \
1414
libpython3-dev \
1515
libsqlite3-0 \
16-
libstdc++-9-dev \
16+
libstdc++-11-dev \
1717
libxml2-dev \
1818
libz3-dev \
1919
pkg-config \

nightly-main/ubuntu/22.04/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
1010
libc6-dev \
1111
libcurl4-openssl-dev \
1212
libedit2 \
13-
libgcc-9-dev \
13+
libgcc-11-dev \
1414
libpython3-dev \
1515
libsqlite3-0 \
16-
libstdc++-9-dev \
16+
libstdc++-11-dev \
1717
libxml2-dev \
1818
libz3-dev \
1919
pkg-config \

nightly-main/ubuntu/22.04/buildx/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
1010
libc6-dev \
1111
libcurl4-openssl-dev \
1212
libedit2 \
13-
libgcc-9-dev \
13+
libgcc-11-dev \
1414
libpython3-dev \
1515
libsqlite3-0 \
16-
libstdc++-9-dev \
16+
libstdc++-11-dev \
1717
libxml2-dev \
1818
libz3-dev \
1919
pkg-config \

0 commit comments

Comments
 (0)