+ -
当前位置:首页 → 问答吧 → [已避过问题]再次遇到 gcc internal error: signal 11

[已避过问题]再次遇到 gcc internal error: signal 11

时间:2007-11-23

来源:互联网

上次在我的笔记本上,用CLFS 1.0 完成系统后重新编译 gcc 时遇到 了
gcc: Internal compiler error: program cc1 got fatal signal 11
故障,
http://www.linuxsir.org/bbs/showthre...85#post1740385
当时以为是CLFS系统内部问题所造成的。没有想到在我的新系统(lfs63+blfs6.2 stable)重新编译gcc4.1.2时,再次发生同样故障,故障部位和现像基本一致:
引用:
Configuring stage 1 in ./libcpp
configure: creating cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for aclocal... aclocal
checking for autoconf... autoconf
checking for autoheader... autoheader
checking whether gcc supports -W... yes
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether gcc supports -Wold-style-definition... no
checking whether gcc supports -Wmissing-format-attribute... no
checking whether gcc supports -pedantic -Wno-long-long... no
checking dependency style of gcc... gcc
checking whether time.h and sys/time.h may both be included... yes
checking whether string.h and strings.h may both be included... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for obstacks... yes
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for clearerr_unlocked... yes
checking for feof_unlocked... yes
checking for ferror_unlocked... yes
checking for fflush_unlocked... yes
checking for fgetc_unlocked... yes
checking for fgets_unlocked... yes
checking for fileno_unlocked... yes
checking for fprintf_unlocked... no
checking for fputc_unlocked... yes
checking for fputs_unlocked... yes
checking for fread_unlocked... yes
checking for fwrite_unlocked... yes
checking for getchar_unlocked... yes
checking for getc_unlocked... yes
checking for putchar_unlocked... yes
checking for putc_unlocked... yes
checking whether abort is declared... yes
checking whether asprintf is declared... no
checking whether basename is declared... no
checking whether errno is declared... no
checking whether getopt is declared... yes
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... yes
checking whether fgetc_unlocked is declared... yes
checking whether fgets_unlocked is declared... no
checking whether fileno_unlocked is declared... yes
checking whether fprintf_unlocked is declared... no
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether vasprintf is declared... no
checking for working alloca.h... yes
checking for alloca... yes
checking for ANSI C header files... (cached) yes
checking for nl_langinfo and CODESET... yes
checking whether NLS is requested... yes
checking for catalogs to be installed... be ca da de el es fr ja nl rw sv tr uk vi zh_CN zh_TW be ca da de el es fr ja nl rw sv tr uk vi zh_CN zh_TW
checking for uchar...
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depdir commands
make[3]: Entering directory `/root/sources/gcc-build/libcpp'
source='../../gcc-4.2.2/libcpp/charset.c' object='charset.o' libtool=no DEPDIR=.deps depmode=gcc /bin/sh ../../gcc-4.2.2/libcpp/../depcomp gcc -I../../gcc-4.2.2/libcpp -I. -I../../gcc-4.2.2/libcpp/../include -I../../gcc-4.2.2/libcpp/include -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -I../../gcc-4.2.2/libcpp -I. -I../../gcc-4.2.2/libcpp/../include -I../../gcc-4.2.2/libcpp/include -c ../../gcc-4.2.2/libcpp/charset.c
In file included from /usr/include/sys/types.h:270,
from ../../gcc-4.2.2/libcpp/system.h:169,
from ../../gcc-4.2.2/libcpp/charset.c:22:
/usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that defines no instances
source='../../gcc-4.2.2/libcpp/directives.c' object='directives.o' libtool=no DEPDIR=.deps depmode=gcc /bin/sh ../../gcc-4.2.2/libcpp/../depcomp gcc -I../../gcc-4.2.2/libcpp -I. -I../../gcc-4.2.2/libcpp/../include -I../../gcc-4.2.2/libcpp/include -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -I../../gcc-4.2.2/libcpp -I. -I../../gcc-4.2.2/libcpp/../include -I../../gcc-4.2.2/libcpp/include -c ../../gcc-4.2.2/libcpp/directives.c
In file included from /usr/include/sys/types.h:270,
from ../../gcc-4.2.2/libcpp/system.h:169,
from ../../gcc-4.2.2/libcpp/directives.c:23:
/usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that defines no instances
source='../../gcc-4.2.2/libcpp/errors.c' object='errors.o' libtool=no DEPDIR=.deps depmode=gcc /bin/sh ../../gcc-4.2.2/libcpp/../depcomp gcc -I../../gcc-4.2.2/libcpp -I. -I../../gcc-4.2.2/libcpp/../include -I../../gcc-4.2.2/libcpp/include -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -I../../gcc-4.2.2/libcpp -I. -I../../gcc-4.2.2/libcpp/../include -I../../gcc-4.2.2/libcpp/include -c ../../gcc-4.2.2/libcpp/errors.c
In file included from /usr/include/sys/types.h:270,
from ../../gcc-4.2.2/libcpp/system.h:169,
from ../../gcc-4.2.2/libcpp/errors.c:27:
/usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that defines no instances
gcc: Internal compiler error: program cc1 got fatal signal 11
make[3]: *** [errors.o] 错误 1
make[3]: Leaving directory `/root/sources/gcc-build/libcpp'
make[2]: *** [all-stage1-libcpp] 错误 2
make[2]: Leaving directory `/root/sources/gcc-build'
make[1]: *** [stage1-bubble] 错误 2
make[1]: Leaving directory `/root/sources/gcc-build'
make: *** [bootstrap] 错误 2
看来问题大了,本以为非常稳定的系统,现在连 gcc 都没法再生了!

网上也没有相符的解决方案。

作者: linux001   发布时间: 2007-11-23

http://osdir.com/ml/real-time.xenoma.../msg00163.html

作者: 不开花   发布时间: 2007-11-23

二楼什么意思?不明白。

作者: linux001   发布时间: 2007-11-24

那里不是和你的问题一样的么?自己仔细看看啊。

作者: 不开花   发布时间: 2007-11-24

完全不是那么回事

作者: linux001   发布时间: 2007-11-24

居然是 gnat 的问题。

下了三天,终于在一个国外网站上下到了 gnat 2005,已经跳过了 signal 11 故障。

作者: linux001   发布时间: 2007-11-26