Sign inSign up

henriy/gcc

By henriy

Updated about 5 years ago

Image
0

49

henriy/gcc repository overview

FROM centos:centos7.7.1908 RUN yum install wget bzip2 gcc make cmake gcc-c++ openssl openssl-devel bison vim python3 -y

RUN cd /opt/ \ && wget https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3.tar.gz
&& tar -xzvf cmake-3.17.3.tar.gz
&& cd cmake-3.17.3
&& ./configure --prefix=/usr/local/cmake-3.17.3
&& make
&& sleep 20
&& make install
&& sleep 20
&& mv /usr/bin/cmake /usr/bin/cmake.bak
&&ln -s /usr/local/cmake-3.17.3/bin/cmake /usr/bin/cmake

RUN cd /opt/ \ && wget https://mirrors.tuna.tsinghua.edu.cn/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.gz\ && tar -zxvf gcc-9.3.0.tar.gz
&& cd gcc-9.3.0
&& sed -i 's#ftp://gcc.gnu.org#http://gcc.gnu.org#g' contrib/download_prerequisites
&& ./contrib/download_prerequisites
&& sleep 20
&& mkdir build
&& cd build
&& ../configure --prefix=/usr/local/gcc-9.3.0 --enable-bootstrap --enable-checking=release --enable-languages=c,c++ --disable-multilib
&& sleep 20
&& make
&& sleep 20
&& make install
&& sleep 20
&& mv /usr/bin/gcc /usr/bin/gcc.bak
&& ln -s /usr/local/gcc-9.3.0/bin/gcc /usr/bin/gcc

RUN cd /opt/
&& wget https://mirrors.aliyun.com/gnu/make/make-4.2.1.tar.gz
&& tar -zxvf make-4.2.1.tar.gz
&& cd make-4.2.1
&& ./configure --prefix=/usr/local/make-4.2.1
&& make
&& sleep 20
&& make install
&& sleep 20
&& mv /usr/bin/make /usr/bin/make.bak
&& ln -s /usr/local/make-4.2.1/bin/make /usr/bin/make

RUN cd /opt/ \ && wget https://mirrors.aliyun.com/gnu/glibc/glibc-2.31.tar.gz
&& tar -zxf glibc-2.31.tar.gz
&& cd glibc-2.31
&& mkdir build
&& cd build
&& ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin --disable-sanity-checks --disable-werror
&& sleep 20
&& make
&& sleep 20
&& make install

RUN cp /usr/local/gcc-9.3.0/lib64/libstdc++.so.6.0.28 /usr/lib64/
&&cd /usr/lib64/
&&unlink libstdc++.so.6
&&ln -s libstdc++.so.6.0.28 libstdc++.so.6
&& rm -rf /opt/*
&&rm -rf /tmp/*

Tag summary

Content type

Image

Digest

Size

546.5 MB

Last updated

about 5 years ago

docker pull henriy/gcc:9.3.0