2014-03-03 76 views
1

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

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

非常感谢!

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 
+3

您的编译被OOM杀手或其他服务器管理员杀死。 –

+1

[阅读](http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-pass1.html)[通过](http://www.linuxfromscratch.org/lfs/view/development/chapter05 /gcc-pass2.html)LFS的[相关](http://www.linuxfromscratch.org/lfs/view/development/chapter06/gcc.html)章节,祝你好运! –

回答

0

它是32位还是64位?

我推荐看看here。不少suggestsions:

1.确保你没有尝试在源目录

2.Suggestion打造先安装glibc的头文件和库,你可以用debuginfo软但更多的细节安装此能被发现here

debuginfo-install glibc