# gcc 8.3.0 ###### tags: `programming` `c/c++` `gcc` ## build ```bash= //sudo apt install m4 m4-doc export CPP_ROOT=$HOME/.gccenv/8.3.0 export CPUNUM=10 mkdir $CPP_ROOT wget https://ftp.gnu.org/gnu/gmp/gmp-6.1.0.tar.bz2 tar -xf ./gmp-6.1.0.tar.bz2 cd ./gmp-6.1.0/ ./configure --prefix=$CPP_ROOT --enable-cxx make -s -j $CPUNUM make -s -j $CPUNUM check make -s -j $CPUNUM install cd ../ wget https://ftp.gnu.org/gnu/mpfr/mpfr-3.1.4.tar.bz2 tar -xf ./mpfr-3.1.4.tar.bz2 cd ./mpfr-3.1.4/ ./configure --prefix=$CPP_ROOT --with-gmp=$CPP_ROOT make -s -j $CPUNUM make -s -j $CPUNUM check make -s -j $CPUNUM install cd ../ wget https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz tar -xf ./mpc-1.0.3.tar.gz cd ./mpc-1.0.3/ ./configure --prefix=$CPP_ROOT --with-gmp=$CPP_ROOT --with-mpfr=$CPP_ROOT make -s -j $CPUNUM make -s -j $CPUNUM check make -s -j $CPUNUM install cd ../ wget https://gcc.gnu.org/pub/gcc/infrastructure/isl-0.18.tar.bz2 tar -xf ./isl-0.18.tar.bz2 cd ./isl-0.18/ ./configure --prefix=$CPP_ROOT --with-gmp-prefix=$CPP_ROOT make -s -j $CPUNUM make -s -j $CPUNUM check make -s -j $CPUNUM install cd ../ // http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-10.2.0/gcc-10.2.0.tar.gz wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-8.3.0/gcc-8.3.0.tar.gz tar -xf ./gcc-8.3.0.tar.gz cd ./gcc-8.3.0/ mkdir ./build/ cd ./build/ ../configure --disable-multilib --disable-libsanitizer --enable-languages=c,c++ --prefix=$CPP_ROOT --with-gmp=$CPP_ROOT --with-mpc=$CPP_ROOT --with-mpfr=$CPP_ROOT --with-isl=$CPP_ROOT unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE export LD_LIBRARY_PATH=$CPP_ROOT/lib make -s -j $CPUNUM make -s -j $CPUNUM install ``` ## use ```shell= export CPP_ROOT=$HOME/.gccenv/8.3.0 export LD_LIBRARY_PATH=$CPP_ROOT/lib export PATH=$CPP_ROOT/bin:$PATH ``` > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/home/uranum/.gccenv/8.3.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.3.0/lto-wrapper > Target: x86_64-pc-linux-gnu > Configured with: ../configure --disable-multilib --disable-libsanitizer --enable-languages=c,c++ --prefix=/home/uranum/gcc --with-gmp=/home/uranum/gcc --with-mpc=/home/uranum/gcc --with-mpfr=/home/uranum/gcc --with-isl=/home/uranum/gcc > Thread model: posix > gcc version 8.3.0 (GCC) >
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up