gcc: Internal compiler error: program as got fatal signal 11

Ian Lance Taylor iant@google.com
Fri May 7 14:54:00 GMT 2010


<chandrakumar@chandrakumar.in> writes:

> I am building a native compiler with sources gcc-2.95.3, binutils-2.10.1
> and glibc-2.2.5.

You know that these are all very old versions, right?  You are pretty
much on your own when it comes to debugging these.  You are most
likely running into problems which were fixed long ago.


> Note: Versions of gcc and binutils used to do the above steps are
> gcc-4.4.1 and binutils-2.20

Ah, so you do know.


> /home/ckumar/ck/gcc295_installation/glibc_build/csu/init-first.o
> gcc: Internal compiler error: program as got fatal signal 11

> Please provide me some lead in solving this.

Run the compilation command with the --save-temps -v option to save
the assembler input file and see precisely how the assembler is being
run.  Then start up the debugger and find out what happened.


> gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.10.1/gas -I. -D_GNU_SOURCE -I.
> -I../../binutils-2.10.1/gas -I../bfd -I../../binutils-2.10.1/gas/config
> -I../../binutils-2.10.1/gas/../include -I../../binutils-2.10.1/gas/..
> -I../../binutils-2.10.1/gas/../bfd -I../../binutils-2.10.1/gas/../intl
> -I../intl -DLOCALEDIR="\"/usr/local/gcc2953_install//share/locale\""    -O2
> -U_FORTIFY_SOURCE -c ../../binutils-2.10.1/gas/app.c
> In file included from ./targ-cpu.h:1,
>                  from ../../binutils-2.10.1/gas/config/obj-elf.h:40,
>                  from ./obj-format.h:1,
>                  from ../../binutils-2.10.1/gas/config/te-linux.h:4,
>                  from ./targ-env.h:1,
>                  from ../../binutils-2.10.1/gas/as.h:620,
>                  from ../../binutils-2.10.1/gas/app.c:29:
> ../../binutils-2.10.1/gas/config/tc-i386.h:441: error: array type has
> incomplete element type
> make[3]: *** [app.o] Error 1
> make[3]: Leaving directory
> `/home/ckumar/ck/gcc295_installation/binutils_build/gas'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/ckumar/ck/gcc295_installation/binutils_build/gas'
> make[1]: *** [all-recursive-am] Error 2
> make[1]: Leaving directory
> `/home/ckumar/ck/gcc295_installation/binutils_build/gas'
> make: *** [all-gas] Error 2
> --snip end--
>
> Modified md_relax_table[] to *md_relax_table in files tc-i386.h and
> tc-i386.c.

That doesn't sound right to me.  At least in current binutils sources,
the array type is defined in as.h.  After making this change, did you
try running the assembler testsuite, via make check-gas?

Ian



More information about the Gcc-help mailing list