build gcc

1,下载源码

wget https://gcc.gnu.org/pub/gcc/infrastructure/mpfr-4.1.0.tar.bz2

wget https://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2

wget https://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.2.1.tar.gz

git clone --mirror https://github.com/gcc-mirror/gcc.git

cd ./ex/

git clone ../gcc.git

cd gcc

git checkout releases/gcc-12.2.0

2,编译

cd gmp-6.1.0 && \

./configure --prefix=/home/hanmeimei/ex_gcc/tmp1/local/gmp-6.1.0 && \

make -j && sudo make install && \

cd ..

cd mpfr-4.1.0 && \

./configure --prefix=/home/hanmeimei/ex_gcc/tmp1/local/mpfr-4.1.0 --with-gmp=/home/hanmeimei/ex_gcc/tmp1/local/gmp-6.1.0 && \

make -j && sudo make install && \

cd ..

cd mpc-1.2.1 && \

./configure --prefix=/home/hanmeimei/ex_gcc/tmp1/local/mpc-1.2.1 --with-gmp=/home/hanmeimei/ex_gcc/tmp1/local/gmp-6.1.0 --with-mpfr=/home/hanmeimei/ex_gcc/tmp1/local/mpfr-4.1.0 && \

make -j && sudo make install && \

cd ..

cd gcc && \

./configure --prefix=/home/hanmeimei/ex_gcc/tmp1/local/gcc-12.2.0 --enable-checking=release --disable-multilib --with-gmp=/home/hanmeimei/ex_gcc/tmp1/local/gmp-6.1.0 --with-mpfr=/home/hanmeimei/ex_gcc/tmp1/local/mpfr-4.1.0 --with-mpc=/home/hanmeimei/ex_gcc/tmp1/local/mpc-1.2.1 && \

make -j &&sudo make install

3,检查

相关推荐
胡乱儿起个名5 天前
Relay IR的核心数据结构
人工智能·tvm·编译器·ai编译器
航哥10 天前
Go语言编译器的正确打开方式(二)- 通过Debug理解Go的编译过程
go·编译器
航哥11 天前
Go语言编译器的正确打开方式(一)- 从源码编译 go
go·编译器
做人求其滴16 天前
蓝桥杯C/C++省赛/国赛注意事项及运行环境配置
算法·蓝桥杯·编译器·c/c++·算法竞赛·运行环境·第十六届
重生之我在写代码25 天前
如何进行apk反编译
android·程序员·编译器
码农果果1 个月前
Beyond Compare 4激活,亲测有效!
编译器
Ciderw2 个月前
LLVM编译器简介
c++·golang·编译·编译器·gcc·llvm·基础设施
瞌睡不来2 个月前
(学习总结25)Linux工具:vim 编辑器 和 gcc/g++ 编译器
linux·学习·编辑器·vim·编译器·gcc/g++
HyperAI超神经3 个月前
【TVM教程】为 ARM CPU 自动调优卷积网络
arm开发·人工智能·python·深度学习·机器学习·tvm·编译器