我在制作GCC时遇到错误(Makefile:4999:目标配方' configure-stage1-gmp'失败)

时间:2017-01-19 14:11:57

标签: gcc g++ gmp mpfr mpc

以下是我安装GCC的步骤

  1. 已下载&提取GCC,GMP,MPFR,MPC(最新版本)。
  2. 没有版本更名为GMP,MPFR,MPC,并将GMP,MPFR,MPC移至GCC的源文件夹
  3. 获取GCC路径并导出库" export LD_LIBRARY_PATH = LIBRARY_PATH:/ usr / local / lib"
  4. 采用GMP路径并进行配置和安装(./configure; make; make check; make install)
  5. 获取MPFR的路径并进行配置和安装(./configure; make; make check; make install)
  6. 获取MPC的路径并进行配置和安装(./configure; make; make check; make install)
  7. GMP,MPFR,MPC已成功配置和安装
  8. 创建目录gccbuild& GCC外的gccbin
  9. 走了gccbuild的路径

  10. 配置GCC

  11. sudo ../gcc-6.3.0/configure --prefix = / home / GCC_project / gccbin --enable-languages = c --program-suffix = 6.3.0
  12. 配置成功完成但是在做" make"我收到以下错误

    configure: error: source directory already configured; run "make distclean" there first
    Makefile:4999: recipe for target 'configure-stage1-gmp' failed
    make[2]: *** [configure-stage1-gmp] Error 1
    make[2]: Leaving directory '/home/GCC_Project/gccbuild'
    Makefile:23312: recipe for target 'stage1-bubble' failed
    make[1]: *** [stage1-bubble] Error 2
    make[1]: Leaving directory '/home/GCC_Project/gccbuild'
    Makefile:919: recipe for target 'all' failed
    make: *** [all] Error 2
    
  13. 我尝试了#34; make distclean"在制作之前,我再次得到同样的错误

0 个答案:

没有答案