From 71d8b9b12faf4212ed252e33cd16bc9d2dad7a0e Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Thu, 4 Feb 2021 21:16:12 -0500 Subject: [PATCH 01/17] FIX Update gcc7 builds to use gcc9 libstdc++.so --- builds-gcc7/Dockerfile.centos7 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index f59eee1c..f6ecf30d 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -7,6 +7,8 @@ FROM ${FROM_IMAGE}:${CUDA_VER}-${CUDA_TYPE}-${LINUX_VER} # Define arguments ARG GCC7_DIR=/usr/local/gcc7 ARG GCC7_VER=gcc-7.5.0 +ARG GCC9_DIR=/usr/local/gcc9 +ARG GCC9_VER=gcc-9.3.0 ARG NUM_BUILD_CPUS=16 # Add /usr/local/cuda/* temporarily to LD_LIBRARY_PATH to support various build steps @@ -35,3 +37,17 @@ RUN mkdir -p ${GCC7_DIR} \ && ./configure --prefix=${GCC7_DIR} --disable-multilib \ && make -j${NUM_BUILD_CPUS} && make install \ && rm -r ${GCC7_DIR}/${GCC7_VER} ${GCC7_DIR}/${GCC7_VER}.tar.gz + +# Build gcc 9 +RUN mkdir -p ${GCC9_DIR} \ + && cd ${GCC9_DIR} && wget -q http://ftp.gnu.org/gnu/gcc/${GCC9_VER}/${GCC9_VER}.tar.gz \ + && cd ${GCC9_DIR} && tar zxf ${GCC7_VER}.tar.gz \ + && cd ${GCC9_DIR}/${GCC7_VER} \ + && ./configure --prefix=${GCC9_DIR} --disable-multilib \ + && make -j${NUM_BUILD_CPUS} \ + && rm -r ${GCC9_DIR}/${GCC9_VER} ${GCC9_DIR}/${GCC9_VER}.tar.gz + +# Pull gcc9's libstdc++ into gcc7's lib64 +RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.so* \ + && cp ${GCC9_DIR}/lib64/libstdc++.so* ${GCC7_DIR}/lib64 \ + && ls -la ${GCC7_DIR}/lib64/libstdc++.so* From da34a8c319723984122ec076bbebbb1d2db6daa2 Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Thu, 4 Feb 2021 21:47:15 -0500 Subject: [PATCH 02/17] FIX Correct paths in gcc9 build --- builds-gcc7/Dockerfile.centos7 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index f6ecf30d..61f578fa 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -41,8 +41,8 @@ RUN mkdir -p ${GCC7_DIR} \ # Build gcc 9 RUN mkdir -p ${GCC9_DIR} \ && cd ${GCC9_DIR} && wget -q http://ftp.gnu.org/gnu/gcc/${GCC9_VER}/${GCC9_VER}.tar.gz \ - && cd ${GCC9_DIR} && tar zxf ${GCC7_VER}.tar.gz \ - && cd ${GCC9_DIR}/${GCC7_VER} \ + && cd ${GCC9_DIR} && tar zxf ${GCC9_VER}.tar.gz \ + && cd ${GCC9_DIR}/${GCC9_VER} \ && ./configure --prefix=${GCC9_DIR} --disable-multilib \ && make -j${NUM_BUILD_CPUS} \ && rm -r ${GCC9_DIR}/${GCC9_VER} ${GCC9_DIR}/${GCC9_VER}.tar.gz From 6f2c3f13824a2d7a8466cc0e9cfe448ad2eaeaa3 Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Thu, 4 Feb 2021 21:53:32 -0500 Subject: [PATCH 03/17] FIX Update libstdc++6 on ubuntu18.04 --- rapidsai/devel.Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rapidsai/devel.Dockerfile b/rapidsai/devel.Dockerfile index 037ae664..b9823796 100644 --- a/rapidsai/devel.Dockerfile +++ b/rapidsai/devel.Dockerfile @@ -65,6 +65,11 @@ RUN apt-get update \ && gcc --version \ && g++ --version +# Install latest version of 'libstdc++6' on 'ubuntu18.04' - see PR #159 +RUN if [ "${LINUX_VER}" == "ubuntu18.04" ] ; then \ + apt-get upgrade -y libstdc++6 ; \ + fi + # Update and add pkgs for gpuci builds RUN apt-get update -y --fix-missing \ && apt-get -qq install apt-utils -y --no-install-recommends \ From c0d69f7ec847469fc538ef5ac95891cf34902ded Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Thu, 4 Feb 2021 22:13:21 -0500 Subject: [PATCH 04/17] FIX Update libstdc++ copy commands --- builds-gcc7/Dockerfile.centos7 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index 61f578fa..2824f84e 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -48,6 +48,6 @@ RUN mkdir -p ${GCC9_DIR} \ && rm -r ${GCC9_DIR}/${GCC9_VER} ${GCC9_DIR}/${GCC9_VER}.tar.gz # Pull gcc9's libstdc++ into gcc7's lib64 -RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.so* \ - && cp ${GCC9_DIR}/lib64/libstdc++.so* ${GCC7_DIR}/lib64 \ - && ls -la ${GCC7_DIR}/lib64/libstdc++.so* +RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++* \ + && cp ${GCC9_DIR}/lib64/libstdc++* ${GCC7_DIR}/lib64 \ + && ls -la ${GCC7_DIR}/lib64/libstdc++* From 0d8b124ca4461edc2d45b1f870d3b6b98b799ee5 Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Thu, 4 Feb 2021 22:16:05 -0500 Subject: [PATCH 05/17] FIX Show gcc9 libs and update copy command --- builds-gcc7/Dockerfile.centos7 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index 2824f84e..5f5209ba 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -48,6 +48,7 @@ RUN mkdir -p ${GCC9_DIR} \ && rm -r ${GCC9_DIR}/${GCC9_VER} ${GCC9_DIR}/${GCC9_VER}.tar.gz # Pull gcc9's libstdc++ into gcc7's lib64 -RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++* \ - && cp ${GCC9_DIR}/lib64/libstdc++* ${GCC7_DIR}/lib64 \ - && ls -la ${GCC7_DIR}/lib64/libstdc++* +RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.* \ + && ls -la ${GCC9_DIR}/lib64/libstdc++.* \ + && cp -av ${GCC9_DIR}/lib64/libstdc++.* ${GCC7_DIR}/lib64 \ + && ls -la ${GCC7_DIR}/lib64/libstdc++.* From fcd1f6291f57d966a2b9ce8a2736a6db16422076 Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Thu, 4 Feb 2021 22:18:38 -0500 Subject: [PATCH 06/17] FIX Add make install to gcc9 build --- builds-gcc7/Dockerfile.centos7 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index 5f5209ba..3d35c4a5 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -44,11 +44,11 @@ RUN mkdir -p ${GCC9_DIR} \ && cd ${GCC9_DIR} && tar zxf ${GCC9_VER}.tar.gz \ && cd ${GCC9_DIR}/${GCC9_VER} \ && ./configure --prefix=${GCC9_DIR} --disable-multilib \ - && make -j${NUM_BUILD_CPUS} \ + && make -j${NUM_BUILD_CPUS} && make install \ && rm -r ${GCC9_DIR}/${GCC9_VER} ${GCC9_DIR}/${GCC9_VER}.tar.gz # Pull gcc9's libstdc++ into gcc7's lib64 -RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.* \ - && ls -la ${GCC9_DIR}/lib64/libstdc++.* \ - && cp -av ${GCC9_DIR}/lib64/libstdc++.* ${GCC7_DIR}/lib64 \ - && ls -la ${GCC7_DIR}/lib64/libstdc++.* +RUN rm -rfv "${GCC7_DIR}/lib64/libstdc++.*" \ + && ls -la "${GCC9_DIR}/lib64/libstdc++.*" \ + && cp -av "${GCC9_DIR}/lib64/libstdc++.*" ${GCC7_DIR}/lib64 \ + && ls -la "${GCC7_DIR}/lib64/libstdc++.*" From 9a125db9f8d123a5542cfe6dc5c219ffabe5ce9c Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Thu, 4 Feb 2021 22:48:06 -0500 Subject: [PATCH 07/17] FIX Update debug directory listings --- builds-gcc7/Dockerfile.centos7 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index 3d35c4a5..300809ad 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -49,6 +49,6 @@ RUN mkdir -p ${GCC9_DIR} \ # Pull gcc9's libstdc++ into gcc7's lib64 RUN rm -rfv "${GCC7_DIR}/lib64/libstdc++.*" \ - && ls -la "${GCC9_DIR}/lib64/libstdc++.*" \ + && ls -la "${GCC9_DIR}/lib64" \ && cp -av "${GCC9_DIR}/lib64/libstdc++.*" ${GCC7_DIR}/lib64 \ - && ls -la "${GCC7_DIR}/lib64/libstdc++.*" + && ls -la "${GCC7_DIR}/lib64" From a08223d9a5b2f4d2d3be57bd997c5cc0dbf8ff0f Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Thu, 4 Feb 2021 22:51:21 -0500 Subject: [PATCH 08/17] FIX Update rm and cp commands --- builds-gcc7/Dockerfile.centos7 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index 300809ad..441f470b 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -48,7 +48,7 @@ RUN mkdir -p ${GCC9_DIR} \ && rm -r ${GCC9_DIR}/${GCC9_VER} ${GCC9_DIR}/${GCC9_VER}.tar.gz # Pull gcc9's libstdc++ into gcc7's lib64 -RUN rm -rfv "${GCC7_DIR}/lib64/libstdc++.*" \ +RUN rm -rfv "${GCC7_DIR}/lib64/libstdc++.so*" \ && ls -la "${GCC9_DIR}/lib64" \ - && cp -av "${GCC9_DIR}/lib64/libstdc++.*" ${GCC7_DIR}/lib64 \ + && cp -av "${GCC9_DIR}/lib64/libstdc++.so*" ${GCC7_DIR}/lib64 \ && ls -la "${GCC7_DIR}/lib64" From 63577d4b2be565a37e4cd32fc276d13f7f4323b1 Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Thu, 4 Feb 2021 22:53:38 -0500 Subject: [PATCH 09/17] FIX Drop quotes and fix paths --- builds-gcc7/Dockerfile.centos7 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index 441f470b..54a8d9b7 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -48,7 +48,7 @@ RUN mkdir -p ${GCC9_DIR} \ && rm -r ${GCC9_DIR}/${GCC9_VER} ${GCC9_DIR}/${GCC9_VER}.tar.gz # Pull gcc9's libstdc++ into gcc7's lib64 -RUN rm -rfv "${GCC7_DIR}/lib64/libstdc++.so*" \ - && ls -la "${GCC9_DIR}/lib64" \ - && cp -av "${GCC9_DIR}/lib64/libstdc++.so*" ${GCC7_DIR}/lib64 \ - && ls -la "${GCC7_DIR}/lib64" +RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.* \ + && ls -la ${GCC9_DIR}/lib64/libstdc++.* \ + && cp -av ${GCC9_DIR}/lib64/libstdc++.* ${GCC7_DIR}/lib64 \ + && ls -la ${GCC7_DIR}/lib64/libstdc++.* From 947233776bb24e79fe333f9cb4086224d8a041ba Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Fri, 5 Feb 2021 10:09:15 -0500 Subject: [PATCH 10/17] ENH Move libstdc++6 to install of gcc7 Verified to work on all three ubuntu versions --- rapidsai/devel.Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/rapidsai/devel.Dockerfile b/rapidsai/devel.Dockerfile index b9823796..133d056f 100644 --- a/rapidsai/devel.Dockerfile +++ b/rapidsai/devel.Dockerfile @@ -52,12 +52,14 @@ channels: \n\ && cat /opt/conda/.condarc ; \ fi -# Install gcc7 - 7.5.0 to bring build stack in line with conda-forge +# Install gcc7 - 7.5.0 for CUDA 10.X builds and install latest +# 'libstdc++6' to be compatible with conda-forge dependencies +# for from-source builds, see PR #159 RUN apt-get update \ && apt-get install -y software-properties-common \ && add-apt-repository -y ppa:ubuntu-toolchain-r/test \ && apt-get update \ - && apt-get install -y gcc-7 g++-7 \ + && apt-get install -y gcc-7 g++-7 libstdc++6 \ && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7 \ && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7 \ && update-alternatives --set gcc /usr/bin/gcc-7 \ @@ -65,11 +67,6 @@ RUN apt-get update \ && gcc --version \ && g++ --version -# Install latest version of 'libstdc++6' on 'ubuntu18.04' - see PR #159 -RUN if [ "${LINUX_VER}" == "ubuntu18.04" ] ; then \ - apt-get upgrade -y libstdc++6 ; \ - fi - # Update and add pkgs for gpuci builds RUN apt-get update -y --fix-missing \ && apt-get -qq install apt-utils -y --no-install-recommends \ From e70d23851901ac6b605c8eb2101fbac93d2d6c7c Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Fri, 5 Feb 2021 14:09:22 -0500 Subject: [PATCH 11/17] ENH Move header files from gcc9 into gcc7 --- builds-gcc7/Dockerfile.centos7 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index 54a8d9b7..20f28486 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -52,3 +52,9 @@ RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.* \ && ls -la ${GCC9_DIR}/lib64/libstdc++.* \ && cp -av ${GCC9_DIR}/lib64/libstdc++.* ${GCC7_DIR}/lib64 \ && ls -la ${GCC7_DIR}/lib64/libstdc++.* + +# Pull gcc9's headers into gcc7's +RUN rm -rfv ${GCC7_DIR}/include/c++/${GCC7_VER}/* \ + && ls -la ${GCC9_DIR}/include/c++/${GCC9_VER}/* \ + && cp -av ${GCC9_DIR}/include/c++/${GCC9_VER}/* ${GCC7_DIR}/include/c++/${GCC7_VER} \ + && ls -la ${GCC7_DIR}/include/c++/${GCC7_VER}/* From cb89d9c4446d92ff57581be168caef1e51303a06 Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Fri, 5 Feb 2021 15:05:28 -0500 Subject: [PATCH 12/17] FIX Correct header paths --- builds-gcc7/Dockerfile.centos7 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index 20f28486..21721f43 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -54,7 +54,7 @@ RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.* \ && ls -la ${GCC7_DIR}/lib64/libstdc++.* # Pull gcc9's headers into gcc7's -RUN rm -rfv ${GCC7_DIR}/include/c++/${GCC7_VER}/* \ - && ls -la ${GCC9_DIR}/include/c++/${GCC9_VER}/* \ - && cp -av ${GCC9_DIR}/include/c++/${GCC9_VER}/* ${GCC7_DIR}/include/c++/${GCC7_VER} \ - && ls -la ${GCC7_DIR}/include/c++/${GCC7_VER}/* +RUN rm -rfv ${GCC7_DIR}/include/c++/7.5.0/* \ + && ls -la ${GCC9_DIR}/include/c++/9.3.0/* \ + && cp -av ${GCC9_DIR}/include/c++/9.3.0/* ${GCC7_DIR}/include/c++/7.5.0 \ + && ls -la ${GCC7_DIR}/include/c++/7.5.0/* From 4862924054b46fe26eb537f0de4f6ce1d4d22ebb Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Fri, 5 Feb 2021 15:08:09 -0500 Subject: [PATCH 13/17] FIX Update GCC*_VER to only use the version --- builds-gcc7/Dockerfile.centos7 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index 21721f43..96650514 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -6,9 +6,9 @@ FROM ${FROM_IMAGE}:${CUDA_VER}-${CUDA_TYPE}-${LINUX_VER} # Define arguments ARG GCC7_DIR=/usr/local/gcc7 -ARG GCC7_VER=gcc-7.5.0 +ARG GCC7_VER=7.5.0 ARG GCC9_DIR=/usr/local/gcc9 -ARG GCC9_VER=gcc-9.3.0 +ARG GCC9_VER=9.3.0 ARG NUM_BUILD_CPUS=16 # Add /usr/local/cuda/* temporarily to LD_LIBRARY_PATH to support various build steps @@ -31,21 +31,21 @@ RUN yum upgrade -y \ # NOTE: this step requires packages gmp-devel, mpfr-devel, # libmpc-devel, and file (see above) RUN mkdir -p ${GCC7_DIR} \ - && cd ${GCC7_DIR} && wget -q http://ftp.gnu.org/gnu/gcc/${GCC7_VER}/${GCC7_VER}.tar.gz \ - && cd ${GCC7_DIR} && tar zxf ${GCC7_VER}.tar.gz \ - && cd ${GCC7_DIR}/${GCC7_VER} \ + && cd ${GCC7_DIR} && wget -q http://ftp.gnu.org/gnu/gcc/gcc-${GCC7_VER}/gcc-${GCC7_VER}.tar.gz \ + && cd ${GCC7_DIR} && tar zxf gcc-${GCC7_VER}.tar.gz \ + && cd ${GCC7_DIR}/gcc-${GCC7_VER} \ && ./configure --prefix=${GCC7_DIR} --disable-multilib \ && make -j${NUM_BUILD_CPUS} && make install \ - && rm -r ${GCC7_DIR}/${GCC7_VER} ${GCC7_DIR}/${GCC7_VER}.tar.gz + && rm -r ${GCC7_DIR}/gcc-${GCC7_VER} ${GCC7_DIR}/gcc-${GCC7_VER}.tar.gz # Build gcc 9 RUN mkdir -p ${GCC9_DIR} \ - && cd ${GCC9_DIR} && wget -q http://ftp.gnu.org/gnu/gcc/${GCC9_VER}/${GCC9_VER}.tar.gz \ - && cd ${GCC9_DIR} && tar zxf ${GCC9_VER}.tar.gz \ - && cd ${GCC9_DIR}/${GCC9_VER} \ + && cd ${GCC9_DIR} && wget -q http://ftp.gnu.org/gnu/gcc/gcc-${GCC9_VER}/gcc-${GCC9_VER}.tar.gz \ + && cd ${GCC9_DIR} && tar zxf gcc-${GCC9_VER}.tar.gz \ + && cd ${GCC9_DIR}/gcc-${GCC9_VER} \ && ./configure --prefix=${GCC9_DIR} --disable-multilib \ && make -j${NUM_BUILD_CPUS} && make install \ - && rm -r ${GCC9_DIR}/${GCC9_VER} ${GCC9_DIR}/${GCC9_VER}.tar.gz + && rm -r ${GCC9_DIR}/gcc-${GCC9_VER} ${GCC9_DIR}/gcc-${GCC9_VER}.tar.gz # Pull gcc9's libstdc++ into gcc7's lib64 RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.* \ @@ -54,7 +54,7 @@ RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.* \ && ls -la ${GCC7_DIR}/lib64/libstdc++.* # Pull gcc9's headers into gcc7's -RUN rm -rfv ${GCC7_DIR}/include/c++/7.5.0/* \ - && ls -la ${GCC9_DIR}/include/c++/9.3.0/* \ - && cp -av ${GCC9_DIR}/include/c++/9.3.0/* ${GCC7_DIR}/include/c++/7.5.0 \ - && ls -la ${GCC7_DIR}/include/c++/7.5.0/* +RUN rm -rfv ${GCC7_DIR}/include/c++/${GCC7_VER}/* \ + && ls -la ${GCC9_DIR}/include/c++/${GCC9_VER}/* \ + && cp -av ${GCC9_DIR}/include/c++/${GCC9_VER}/* ${GCC7_DIR}/include/c++/${GCC7_VER} \ + && ls -la ${GCC7_DIR}/include/c++/${GCC7_VER}/* From 5e222da73fc32750e643c6031c482dc343ec9b64 Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Tue, 9 Feb 2021 12:39:01 -0500 Subject: [PATCH 14/17] ENH Lock glibc versions to match nvidia/cuda images This is to prevent updates that can cause glibc bugs during compile time --- miniconda-cuda/Dockerfile | 13 ++++++++----- miniforge-cuda/Dockerfile | 13 ++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/miniconda-cuda/Dockerfile b/miniconda-cuda/Dockerfile index dbde45e7..c6d83c0f 100644 --- a/miniconda-cuda/Dockerfile +++ b/miniconda-cuda/Dockerfile @@ -51,15 +51,18 @@ RUN if [ "${LINUX_VER:0:6}" == "ubuntu" ] ; then \ echo -e "\n\n>>>> SKIPPING: LINUX_VER is not 'ubuntu16.04' or 'ubuntu18.04'\n\n"; \ fi -# Disable CUDA repo using the appropriate manager -# Also add langpack for locale in CentOS 8 +# Disable CUDA repo using the appropriate manager and version lock glibc to +# the current version from the `nvidia/cuda` images RUN if [ "${LINUX_VER}" == "centos7" ] ; then \ - yum-config-manager --disable cuda ; \ + yum-config-manager --disable cuda \ + && yum -y install yum-versionlock \ + && yum versionlock glibc glibc-common glibc-devel glibc-headers ; \ elif [ "${LINUX_VER}" == "centos8" ] ; then \ dnf install -y \ 'dnf-command(config-manager)' \ - glibc-langpack-en \ - && dnf config-manager --set-disabled cuda ; \ + 'dnf-command(versionlock)' \ + && dnf config-manager --set-disabled cuda \ + && dnf versionlock glibc glibc-common glibc-devel glibc-headers ; \ fi # Update and add pkgs for CentOS diff --git a/miniforge-cuda/Dockerfile b/miniforge-cuda/Dockerfile index 80539681..3c480c4a 100644 --- a/miniforge-cuda/Dockerfile +++ b/miniforge-cuda/Dockerfile @@ -47,15 +47,18 @@ RUN if [ "${LINUX_VER:0:6}" == "ubuntu" ] ; then \ echo -e "\n\n>>>> SKIPPING: LINUX_VER is not 'ubuntu16.04' or 'ubuntu18.04'\n\n"; \ fi -# Disable CUDA repo using the appropriate manager -# Also add langpack for locale in CentOS 8 +# Disable CUDA repo using the appropriate manager and version lock glibc to +# the current version from the `nvidia/cuda` images RUN if [ "${LINUX_VER}" == "centos7" ] ; then \ - yum-config-manager --disable cuda ; \ + yum-config-manager --disable cuda \ + && yum -y install yum-versionlock \ + && yum versionlock glibc glibc-common glibc-devel glibc-headers ; \ elif [ "${LINUX_VER}" == "centos8" ] ; then \ dnf install -y \ 'dnf-command(config-manager)' \ - glibc-langpack-en \ - && dnf config-manager --set-disabled cuda ; \ + 'dnf-command(versionlock)' \ + && dnf config-manager --set-disabled cuda \ + && dnf versionlock glibc glibc-common glibc-devel glibc-headers ; \ fi # Update and add pkgs for CentOS From 9823a521e2522308469f7827b3eaf4a857fa4195 Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Tue, 9 Feb 2021 13:03:43 -0500 Subject: [PATCH 15/17] FIX Version lock only on COS7 & install langpack on COS8 --- miniconda-cuda/Dockerfile | 11 ++++++----- miniforge-cuda/Dockerfile | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/miniconda-cuda/Dockerfile b/miniconda-cuda/Dockerfile index c6d83c0f..ac49a794 100644 --- a/miniconda-cuda/Dockerfile +++ b/miniconda-cuda/Dockerfile @@ -51,8 +51,10 @@ RUN if [ "${LINUX_VER:0:6}" == "ubuntu" ] ; then \ echo -e "\n\n>>>> SKIPPING: LINUX_VER is not 'ubuntu16.04' or 'ubuntu18.04'\n\n"; \ fi -# Disable CUDA repo using the appropriate manager and version lock glibc to -# the current version from the `nvidia/cuda` images +# Disable CUDA repo using the appropriate manager to prevent cross CUDA version +# updates seen on 10.1 with 10.2 libraries +# CentOS 7 - version lock glibc to the current version from the `nvidia/cuda` +# CentOS 8 - install glibc langpack RUN if [ "${LINUX_VER}" == "centos7" ] ; then \ yum-config-manager --disable cuda \ && yum -y install yum-versionlock \ @@ -60,9 +62,8 @@ RUN if [ "${LINUX_VER}" == "centos7" ] ; then \ elif [ "${LINUX_VER}" == "centos8" ] ; then \ dnf install -y \ 'dnf-command(config-manager)' \ - 'dnf-command(versionlock)' \ - && dnf config-manager --set-disabled cuda \ - && dnf versionlock glibc glibc-common glibc-devel glibc-headers ; \ + glibc-langpack-en \ + && dnf config-manager --set-disabled cuda ; \ fi # Update and add pkgs for CentOS diff --git a/miniforge-cuda/Dockerfile b/miniforge-cuda/Dockerfile index 3c480c4a..4e832265 100644 --- a/miniforge-cuda/Dockerfile +++ b/miniforge-cuda/Dockerfile @@ -47,8 +47,10 @@ RUN if [ "${LINUX_VER:0:6}" == "ubuntu" ] ; then \ echo -e "\n\n>>>> SKIPPING: LINUX_VER is not 'ubuntu16.04' or 'ubuntu18.04'\n\n"; \ fi -# Disable CUDA repo using the appropriate manager and version lock glibc to -# the current version from the `nvidia/cuda` images +# Disable CUDA repo using the appropriate manager to prevent cross CUDA version +# updates seen on 10.1 with 10.2 libraries +# CentOS 7 - version lock glibc to the current version from the `nvidia/cuda` +# CentOS 8 - install glibc langpack RUN if [ "${LINUX_VER}" == "centos7" ] ; then \ yum-config-manager --disable cuda \ && yum -y install yum-versionlock \ @@ -56,9 +58,8 @@ RUN if [ "${LINUX_VER}" == "centos7" ] ; then \ elif [ "${LINUX_VER}" == "centos8" ] ; then \ dnf install -y \ 'dnf-command(config-manager)' \ - 'dnf-command(versionlock)' \ - && dnf config-manager --set-disabled cuda \ - && dnf versionlock glibc glibc-common glibc-devel glibc-headers ; \ + glibc-langpack-en \ + && dnf config-manager --set-disabled cuda ; \ fi # Update and add pkgs for CentOS From d197ca6b8704618d6f5b582efa2af19bd334e0ba Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Tue, 9 Feb 2021 16:04:51 -0500 Subject: [PATCH 16/17] REV Remove version locking in COS7 The patched version of glibc today, fixes the glibc issues we've seen --- miniconda-cuda/Dockerfile | 5 +---- miniforge-cuda/Dockerfile | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/miniconda-cuda/Dockerfile b/miniconda-cuda/Dockerfile index ac49a794..1919a65f 100644 --- a/miniconda-cuda/Dockerfile +++ b/miniconda-cuda/Dockerfile @@ -53,12 +53,9 @@ RUN if [ "${LINUX_VER:0:6}" == "ubuntu" ] ; then \ # Disable CUDA repo using the appropriate manager to prevent cross CUDA version # updates seen on 10.1 with 10.2 libraries -# CentOS 7 - version lock glibc to the current version from the `nvidia/cuda` # CentOS 8 - install glibc langpack RUN if [ "${LINUX_VER}" == "centos7" ] ; then \ - yum-config-manager --disable cuda \ - && yum -y install yum-versionlock \ - && yum versionlock glibc glibc-common glibc-devel glibc-headers ; \ + yum-config-manager --disable cuda ; \ elif [ "${LINUX_VER}" == "centos8" ] ; then \ dnf install -y \ 'dnf-command(config-manager)' \ diff --git a/miniforge-cuda/Dockerfile b/miniforge-cuda/Dockerfile index 4e832265..5fbc347c 100644 --- a/miniforge-cuda/Dockerfile +++ b/miniforge-cuda/Dockerfile @@ -49,12 +49,9 @@ RUN if [ "${LINUX_VER:0:6}" == "ubuntu" ] ; then \ # Disable CUDA repo using the appropriate manager to prevent cross CUDA version # updates seen on 10.1 with 10.2 libraries -# CentOS 7 - version lock glibc to the current version from the `nvidia/cuda` # CentOS 8 - install glibc langpack RUN if [ "${LINUX_VER}" == "centos7" ] ; then \ - yum-config-manager --disable cuda \ - && yum -y install yum-versionlock \ - && yum versionlock glibc glibc-common glibc-devel glibc-headers ; \ + yum-config-manager --disable cuda ; \ elif [ "${LINUX_VER}" == "centos8" ] ; then \ dnf install -y \ 'dnf-command(config-manager)' \ From 64fca262040a489347e74e5b4f646cdc738bbbe2 Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Wed, 10 Feb 2021 16:56:25 -0500 Subject: [PATCH 17/17] REV Remove gcc9 headers copy --- builds-gcc7/Dockerfile.centos7 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index 96650514..874b5a31 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -52,9 +52,3 @@ RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.* \ && ls -la ${GCC9_DIR}/lib64/libstdc++.* \ && cp -av ${GCC9_DIR}/lib64/libstdc++.* ${GCC7_DIR}/lib64 \ && ls -la ${GCC7_DIR}/lib64/libstdc++.* - -# Pull gcc9's headers into gcc7's -RUN rm -rfv ${GCC7_DIR}/include/c++/${GCC7_VER}/* \ - && ls -la ${GCC9_DIR}/include/c++/${GCC9_VER}/* \ - && cp -av ${GCC9_DIR}/include/c++/${GCC9_VER}/* ${GCC7_DIR}/include/c++/${GCC7_VER} \ - && ls -la ${GCC7_DIR}/include/c++/${GCC7_VER}/*