build-unit-test-docker: update GCC to 12
Yocto is already using GCC 12. Upgrade for compatibility.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0ab6e39efba280e4bf60305c9909ad35e71caec1
diff --git a/scripts/build-unit-test-docker b/scripts/build-unit-test-docker
index 39f71de..e2571a7 100755
--- a/scripts/build-unit-test-docker
+++ b/scripts/build-unit-test-docker
@@ -725,8 +725,8 @@
RUN cat /etc/apt/sources.list.d/debug.list
RUN apt-get update && apt-get dist-upgrade -yy && apt-get install -yy \
- gcc-11 \
- g++-11 \
+ gcc-12 \
+ g++-12 \
libc6-dbg \
libc6-dev \
libtool \
@@ -796,11 +796,11 @@
RUN npm install -g eslint@latest eslint-plugin-json@latest
-RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11 \
- --slave /usr/bin/g++ g++ /usr/bin/g++-11 \
- --slave /usr/bin/gcov gcov /usr/bin/gcov-11 \
- --slave /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-11 \
- --slave /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-11
+RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12 \
+ --slave /usr/bin/g++ g++ /usr/bin/g++-12 \
+ --slave /usr/bin/gcov gcov /usr/bin/gcov-12 \
+ --slave /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-12 \
+ --slave /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-12
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 1000 \
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-14 \