From 11ad4ec93b26fd665e2b443e267195b2cd6b4c41 Mon Sep 17 00:00:00 2001 From: JackAKirk Date: Thu, 9 May 2024 10:15:19 +0100 Subject: [PATCH] [CI][HIP] Add missing dep for broken amd script. (#13619) Fixes https://github.com/intel/llvm/issues/13612 https://github.com/intel/llvm/issues/13612 was caused by these issues: https://github.com/ROCm/ROCm/issues/2949 https://github.com/ROCm/HIP/issues/3406 To fix this gcc/g++12 is installed manually and set as the preferred version. --------- Signed-off-by: JackAKirk --- devops/containers/ubuntu2204_build.Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/devops/containers/ubuntu2204_build.Dockerfile b/devops/containers/ubuntu2204_build.Dockerfile index d87d20539499..22844d1abd39 100644 --- a/devops/containers/ubuntu2204_build.Dockerfile +++ b/devops/containers/ubuntu2204_build.Dockerfile @@ -13,9 +13,13 @@ COPY scripts/install_build_tools.sh /install.sh RUN /install.sh RUN apt install -yqq libnuma-dev wget gnupg2 && \ - wget https://repo.radeon.com/amdgpu-install/6.1/ubuntu/jammy/amdgpu-install_6.1.60100-1_all.deb && \ + apt-get install -yqq gcc-12 g++-12 libstdc++-12-dev && \ + update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100 && \ + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 + +RUN wget https://repo.radeon.com/amdgpu-install/6.1/ubuntu/jammy/amdgpu-install_6.1.60100-1_all.deb && \ apt install -yqq ./amdgpu-install_6.1.60100-1_all.deb && \ - yes | amdgpu-install --usecase=rocmdev && \ + amdgpu-install -y --usecase=rocmdev && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*