相关疑难解决方法(0)

在OS X上安装GCC 4.7.1

我试图GCC在我的Mac上安装4.7.1,因为我想更新LLVM GCCXCode中给出的4.2.

我已经下载了GCC4.7.1并且我已将gcc-4.7.1文件夹放入~/Downloads,然后我按照这里给出的说明进行操作:http://gcc.gnu.org/install/我写的

cd ~/Desktop
mkdir objdir
cd objdir
~/Downloads/gcc-4.7.1/configure --with-gmp=/usr/local/include --with-mpfr=/usr/local/include --with-mpc=/usr/local/include
Run Code Online (Sandbox Code Playgroud)

并且配置确实显示问题.

然后我写了

make
Run Code Online (Sandbox Code Playgroud)

这一切顺利,直到我得到这个消息

rm -f stage_current
Comparing stages 2 and 3
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1obj-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
  Bootstrap comparison failure!
gcc/intl.o differs
make[2]: *** [compare] Error 1
make[1]: *** [stage3-bubble] Error 2
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)

然后make check给我这个消息

/bin/sh: line 0: cd: ./fixincludes: No such file …
Run Code Online (Sandbox Code Playgroud)

macos shell installation gcc gnu

6
推荐指数
1
解决办法
6856
查看次数

标签 统计

gcc ×1

gnu ×1

installation ×1

macos ×1

shell ×1