From 5bc32660187873c0b073998cfb3d7d35c370cbd4 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Tue, 10 Dec 2024 22:56:51 -0500 Subject: [PATCH] downgrade from gcc-13 to gcc-11 (#116) Internally, bumping from gcc-11 to gcc-13 requires an update of libstdc++ from `8.4.0-1ubuntu1~18.04` to `13.1.0-8ubuntu1~18.04`. Our standard images cannot accept this change, so we must downgrade. --- .github/workflows/build.yml | 2 +- build.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d325f93..35ca999 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: - name: Install System Dependencies run: | sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - sudo apt-get update && sudo apt-get install -y binutils-dev g++-13 libiberty-dev + sudo apt-get update && sudo apt-get install -y binutils-dev g++-11 libiberty-dev - name: Build run: | diff --git a/build.sh b/build.sh index 029d60d..fe03a42 100755 --- a/build.sh +++ b/build.sh @@ -36,8 +36,9 @@ fi if [[ "$OSTYPE" == "linux-gnu"* ]]; then source /etc/os-release if [[ "$NAME" == "Ubuntu" ]]; then - if [[ -z "$CC" ]]; then export CC=gcc-13; fi - if [[ -z "$CXX" ]]; then export CXX=g++-13; fi + # gcc version cannot be updated without breaking standard bionic images + if [[ -z "$CC" ]]; then export CC=gcc-11; fi + if [[ -z "$CXX" ]]; then export CXX=g++-11; fi fi fi