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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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

Step1: Build and install gcc-2.95.3
Step2: Build and install binutils-2.10.1
Step3: Build and install glibc-2.2.5

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

Step1 and Step2 are done successfully. Whereas Step3 fails due to 'fatal
signal 11' from assembler.

Step3: Build and install binutils-2.10.1

$../glibc-2.2.5/configure --prefix=/usr/local/test_binutils/
--enable-add-ons
$make

Note: Configuration is made such that the newly installed gcc-2.95.3 and
binutils-2.10.1 are used for building glibc.

For the above configuration, I got the following error:
--snip start--
gcc ../sysdeps/unix/sysv/linux/init-first.c -c -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -g      -I../include -I.
-I/home/ckumar/ck/gcc295_installation/glibc_build/csu -I.. -I../libio 
-I/home/ckumar/ck/gcc295_installation/glibc_build -I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386/i686
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv
-I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic   -D_LIBC_REENTRANT -include ../include/libc-symbols.h
   -DHAVE_INITFINI -o
/home/ckumar/ck/gcc295_installation/glibc_build/csu/init-first.o
gcc: Internal compiler error: program as got fatal signal 11
make[2]: ***
[/home/ckumar/ck/gcc295_installation/glibc_build/csu/init-first.o] Error 1
make[2]: Leaving directory
`/home/ckumar/ck/gcc295_installation/glibc-2.2.5/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory
`/home/ckumar/ck/gcc295_installation/glibc-2.2.5'
make: *** [all] Error 2
--snip end--

Please provide me some lead in solving this.


See below for what I did in Step1 and Step2:

Step1: Build and install gcc-2.95.3

$../gcc-2.95.3/configure --enable-languages=c
--prefix=/usr/local/gcc2953_install/
$make

For the above configuration, I got the following error:
--snip start--
gcc  -DIN_GCC     -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.3/gcc
-I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include  \
	-DTARGET_MACHINE=\"i686-pc-linux-gnu\"  \
	-c `echo ../../gcc-2.95.3/gcc/collect2.c | sed 's,^\./,,'`
In file included from /usr/include/fcntl.h:217,
                 from ../../gcc-2.95.3/gcc/system.h:207,
                 from ../../gcc-2.95.3/gcc/collect2.c:30:
In function ‘open’,
    inlined from ‘collect_execute’ at
../../gcc-2.95.3/gcc/collect2.c:1762:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’
declared with attribute error: open with O_CREAT in second argument needs 3
arguments
make[1]: *** [collect2.o] Error 1
make[1]: Leaving directory
`/home/ckumar/ck/gcc295_installation/gcc_build/gcc'
make: *** [all-gcc] Error 2
--snip end--

After setting the CFLAGS with "-O2 -U_FORTIFY_SOURCE", GNU CC build was
successful.


Step2: Build and install binutils-2.10.1

$../binutils-2.10.1/configure --prefix=/usr/local/gcc2953_install/
$make
$make install

For the above configuration, I got the following error:
--snip start--
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.

After the above modification, binutils build was successful.

Thank you,
Chandra Kumar R.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux