当前位置: 首页 > article >正文

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,检查


http://www.kler.cn/a/571466.html

相关文章:

  • Debian12 安装中文输入法
  • WebSocket 协议爬虫
  • 2025年AI PPT工具精选:让演示文稿更智能、更高效
  • nginx 503错误分析
  • C++11详解(下)
  • MongoDB安全管理
  • 3-2安卓中的目录结构以及核心四大组件应用
  • python3.13安装教程【2025】python3.13超详细图文教程(包含安装包)
  • 人工智能之数学基础:n阶行列式
  • 【高并发内存池】申请内存
  • 浅谈DeepSeek使用技巧
  • 【AI文章解读】The Model is the Product
  • UML之参与者(Actor)
  • Linux《基础开发工具(上)》
  • 蓝桥杯训练—召唤数学精灵
  • C++第六节:stack和queue
  • 文件上传复现
  • React Refs:深入理解与最佳实践
  • 在实际工作中,设计测试用例会用到的设计方法有哪些,请具体举例说明
  • Mlivus:索引类型对比