Compilation environment description
System: deepin V20
Platform: x86_64
gcc
Compiler version:gcc version 8.3.0 (Uos 8.3.0.2-1+deepin)
Source code acquisition
wget http://mirror.hust.edu.cn/gnu/gcc/gcc-6.5.0/gcc-6.5.0.tar.gz
Compile dependent installation
sudo apt install libmpc-dev libgmp-dev libmpfr-dev
Compile
tar -xf gcc-6.5.0.tar.gz
cd gcc-6.5.0
./configure --prefix=/opt/App/gcc-6.5.0
make -j4
make install