gcc 4.8.2在CentOS 6上出错

时间:2014-03-03 04:36:15

标签: linux gcc

当我在CentOS 6服务器上尝试make和make install gcc 4.8.2时,我收到了这个错误信息。

我不知道发生了什么事。任何人都可以帮我解决这个问题吗?

非常感谢!

g++ -c   -g -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../.././gcc -I../.././gcc/build -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/root/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gmp -I/root/gcc-4.8.2/gmp -I/root/gcc-4.8.2/host-x86_64-unknown-linux-gnu/mpfr -I/root/gcc-4.8.2/mpfr -I/root/gcc-4.8.2/mpc/src  -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/../libbacktrace    \
        -o build/genattrtab.o ../.././gcc/genattrtab.c
g++   -g -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/genattrtab \
        build/genattrtab.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o     build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/read-md.o build/errors.o ../../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
build/genattrtab ../.././gcc/config/i386/i386.md insn-conditions.md \
        -Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c
make[3]: *** [s-attrtab] Killed
make[3]: Leaving directory `/root/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/root/gcc-4.8.2'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/gcc-4.8.2'
make: *** [all] Error 2

1 个答案:

答案 0 :(得分:0)

是32位还是64位?

我建议看看here。不少建议:

1.确保您没有尝试构建源目录

2.建议首先安装glibc头文件和库,你可以使用debuginfo安装它,但是可以找到更多细节here

 debuginfo-install glibc