public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc: Internal compiler error: program as got fatal signal 11
@ 2010-05-07 11:39 chandrakumar
  2010-05-07 14:54 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: chandrakumar @ 2010-05-07 11:39 UTC (permalink / raw)
  To: gcc-help

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc: Internal compiler error: program as got fatal signal 11
  2010-05-07 11:39 gcc: Internal compiler error: program as got fatal signal 11 chandrakumar
@ 2010-05-07 14:54 ` Ian Lance Taylor
  2010-05-10  8:56   ` chandrakumar
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 2010-05-07 14:54 UTC (permalink / raw)
  To: chandrakumar; +Cc: gcc-help

<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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc: Internal compiler error: program as got fatal signal 11
  2010-05-07 14:54 ` Ian Lance Taylor
@ 2010-05-10  8:56   ` chandrakumar
  2010-05-20 13:24     ` chandrakumar
  0 siblings, 1 reply; 5+ messages in thread
From: chandrakumar @ 2010-05-10  8:56 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-help

On Fri, 07 May 2010 07:53:05 -0700, Ian Lance Taylor <iant@google.com>
wrote:
> <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?
> 

No, I didn't. I did now and there are 5 failures as shown below:

--snip start--
Running
/home/ckumar/ck/gcc295_installation/binutils-2.10.1/gas/testsuite/gas/i386/i386.exp
...
FAIL: i386 general
FAIL: i386 opcode
FAIL: i386 intel
FAIL: i386 jump
FAIL: i386 jump16
...
...
		=== gas Summary ===

# of expected passes		72
# of unexpected failures	5
../as-new 2.10.1
--snip end--


I checked with the current binutils sources for the array type defined in
as.h. In binutils-2.10.1, that definition was moved into tc.h. I included
the definition in as.h of binutils-2.10.1 and built the binutils-2.10.1.
The build is successful. 

On running the assembler testsuites via make check-gas:

--snip start--
		=== gas Summary ===

# of expected passes		77
../as-new 2.10.1
--snip end--


Now, I started the build of glibc-2.2.5 with the installed binutils-2.10.1
and gcc-2.95.3. The phenomenon I said earlier (gcc: Internal compiler
error: program as got fatal signal 11) is not observed. But instead I got
the problem of "*** buffer overflow detected ***:
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar terminated" as shown
below:

--snip start--
...
...
...
a - login/utmpxname.os
a - login/updwtmpx.os
a - login/getutmpx.os
a - login/getutmp.os
a - elf/dl-open.os
a - elf/dl-close.os
a - elf/dl-iteratephdr.os
a - elf/dl-addr.os
a - elf/dl-profstub.os
a - elf/dl-origin.os
a - elf/dl-libc.os
a - elf/dl-sym.os
a - elf/unwind-dw2-fde-glibc.os
a - elf/framestate.os
*** buffer overflow detected ***:
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x4010ede8]
/lib/tls/i686/cmov/libc.so.6[0x4010de20]
/lib/tls/i686/cmov/libc.so.6[0x4010d558]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0x9e)[0x4009759e]
/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xd8)[0x4008b048]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x2b0e)[0x4006d64e]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xad)[0x4010d60d]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x4010d54d]
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x804fdc5]
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x804e13b]
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x80508be]
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x8052e32]
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x804b77c]
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x804c267]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x40044b56]
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x8049721]
======= Memory map: ========
08048000-08089000 r-xp 00000000 08:01 1711      
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar
08089000-0808a000 r--p 00040000 08:01 1711      
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar
0808a000-0808b000 rw-p 00041000 08:01 1711      
/usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar
0957f000-09cfc000 rw-p 00000000 00:00 0          [heap]
40000000-4001b000 r-xp 00000000 08:01 921        /lib/ld-2.10.1.so
4001b000-4001c000 r--p 0001a000 08:01 921        /lib/ld-2.10.1.so
4001c000-4001d000 rw-p 0001b000 08:01 921        /lib/ld-2.10.1.so
4001d000-4001e000 r-xp 00000000 00:00 0          [vdso]
4001e000-40020000 rw-p 00000000 00:00 0 
40020000-40021000 r--p 00000000 08:01 135873    
/usr/lib/locale/en_IN/LC_MESSAGES/SYS_LC_MESSAGES
40021000-4002c000 rw-p 00000000 00:00 0 
4002e000-4016c000 r-xp 00000000 08:01 1917      
/lib/tls/i686/cmov/libc-2.10.1.so
4016c000-4016e000 r--p 0013e000 08:01 1917      
/lib/tls/i686/cmov/libc-2.10.1.so
4016e000-4016f000 rw-p 00140000 08:01 1917      
/lib/tls/i686/cmov/libc-2.10.1.so
4016f000-40173000 rw-p 00000000 00:00 0 
40181000-4019d000 r-xp 00000000 08:01 971        /lib/libgcc_s.so.1
4019d000-4019e000 r--p 0001b000 08:01 971        /lib/libgcc_s.so.1
4019e000-4019f000 rw-p 0001c000 08:01 971        /lib/libgcc_s.so.1
bfc3e000-bfc59000 rw-p 00000000 00:00 0          [stack]
Aborted
make[2]: *** [/home/ckumar/ck/gcc295_installation/glibc_build/libc_pic.a]
Error 134
make[2]: Leaving directory
`/home/ckumar/ck/gcc295_installation/glibc-2.2.5/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory
`/home/ckumar/ck/gcc295_installation/glibc-2.2.5'
make: *** [all] Error 2
--snip end--

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc: Internal compiler error: program as got fatal signal 11
  2010-05-10  8:56   ` chandrakumar
@ 2010-05-20 13:24     ` chandrakumar
  2010-05-20 17:13       ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: chandrakumar @ 2010-05-20 13:24 UTC (permalink / raw)
  To: Ian Lance Taylor, gcc-help

On Mon, 10 May 2010 04:56:00 -0400, <chandrakumar@chandrakumar.in> wrote:
> On Fri, 07 May 2010 07:53:05 -0700, Ian Lance Taylor <iant@google.com>
> wrote:
>> <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?
>> 
> 
> No, I didn't. I did now and there are 5 failures as shown below:
> 
> --snip start--
> Running
>
/home/ckumar/ck/gcc295_installation/binutils-2.10.1/gas/testsuite/gas/i386/i386.exp
> ...
> FAIL: i386 general
> FAIL: i386 opcode
> FAIL: i386 intel
> FAIL: i386 jump
> FAIL: i386 jump16
> ...
> ...
> 		=== gas Summary ===
> 
> # of expected passes		72
> # of unexpected failures	5
> ../as-new 2.10.1
> --snip end--
> 
> 
> I checked with the current binutils sources for the array type defined
in
> as.h. In binutils-2.10.1, that definition was moved into tc.h. I
included
> the definition in as.h of binutils-2.10.1 and built the binutils-2.10.1.
> The build is successful. 
> 
> On running the assembler testsuites via make check-gas:
> 
> --snip start--
> 		=== gas Summary ===
> 
> # of expected passes		77
> ../as-new 2.10.1
> --snip end--
> 
> 
> Now, I started the build of glibc-2.2.5 with the installed
binutils-2.10.1
> and gcc-2.95.3. The phenomenon I said earlier (gcc: Internal compiler
> error: program as got fatal signal 11) is not observed. But instead I
got
> the problem of "*** buffer overflow detected ***:
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar terminated" as shown
> below:
> 
> --snip start--
> ...
> ...
> ...
> a - login/utmpxname.os
> a - login/updwtmpx.os
> a - login/getutmpx.os
> a - login/getutmp.os
> a - elf/dl-open.os
> a - elf/dl-close.os
> a - elf/dl-iteratephdr.os
> a - elf/dl-addr.os
> a - elf/dl-profstub.os
> a - elf/dl-origin.os
> a - elf/dl-libc.os
> a - elf/dl-sym.os
> a - elf/unwind-dw2-fde-glibc.os
> a - elf/framestate.os
> *** buffer overflow detected ***:
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar terminated
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x4010ede8]
> /lib/tls/i686/cmov/libc.so.6[0x4010de20]
> /lib/tls/i686/cmov/libc.so.6[0x4010d558]
> /lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0x9e)[0x4009759e]
> /lib/tls/i686/cmov/libc.so.6(_IO_padn+0xd8)[0x4008b048]
> /lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x2b0e)[0x4006d64e]
> /lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xad)[0x4010d60d]
> /lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x4010d54d]
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x804fdc5]
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x804e13b]
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x80508be]
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x8052e32]
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x804b77c]
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x804c267]
> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x40044b56]
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar[0x8049721]
> ======= Memory map: ========
> 08048000-08089000 r-xp 00000000 08:01 1711      
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar
> 08089000-0808a000 r--p 00040000 08:01 1711      
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar
> 0808a000-0808b000 rw-p 00041000 08:01 1711      
> /usr/local/gcc2953_install/i686-pc-linux-gnu/bin/ar
> 0957f000-09cfc000 rw-p 00000000 00:00 0          [heap]
> 40000000-4001b000 r-xp 00000000 08:01 921        /lib/ld-2.10.1.so
> 4001b000-4001c000 r--p 0001a000 08:01 921        /lib/ld-2.10.1.so
> 4001c000-4001d000 rw-p 0001b000 08:01 921        /lib/ld-2.10.1.so
> 4001d000-4001e000 r-xp 00000000 00:00 0          [vdso]
> 4001e000-40020000 rw-p 00000000 00:00 0 
> 40020000-40021000 r--p 00000000 08:01 135873    
> /usr/lib/locale/en_IN/LC_MESSAGES/SYS_LC_MESSAGES
> 40021000-4002c000 rw-p 00000000 00:00 0 
> 4002e000-4016c000 r-xp 00000000 08:01 1917      
> /lib/tls/i686/cmov/libc-2.10.1.so
> 4016c000-4016e000 r--p 0013e000 08:01 1917      
> /lib/tls/i686/cmov/libc-2.10.1.so
> 4016e000-4016f000 rw-p 00140000 08:01 1917      
> /lib/tls/i686/cmov/libc-2.10.1.so
> 4016f000-40173000 rw-p 00000000 00:00 0 
> 40181000-4019d000 r-xp 00000000 08:01 971        /lib/libgcc_s.so.1
> 4019d000-4019e000 r--p 0001b000 08:01 971        /lib/libgcc_s.so.1
> 4019e000-4019f000 rw-p 0001c000 08:01 971        /lib/libgcc_s.so.1
> bfc3e000-bfc59000 rw-p 00000000 00:00 0          [stack]
> Aborted
> make[2]: ***
[/home/ckumar/ck/gcc295_installation/glibc_build/libc_pic.a]
> Error 134
> make[2]: Leaving directory
> `/home/ckumar/ck/gcc295_installation/glibc-2.2.5/elf'
> make[1]: *** [elf/subdir_lib] Error 2
> make[1]: Leaving directory
> `/home/ckumar/ck/gcc295_installation/glibc-2.2.5'
> make: *** [all] Error 2
> --snip end--

I installed gcc-2.95.4 with the following software packages:

- cpp-2.95_2.95.4-27_i386.deb
- gcc-2.95_2.95.4-24_i386.deb

and created the following symbolic links for ver.2.95:

ln -s /usr/bin/gcc-2.95 /usr/bin/gcc
ln -s /usr/bin/gcov-2.95 /usr/bin/gcov


Now I am able to build gcc-2.95.3, binutils-2.10.1 and glibc-2.2.5
successfully.

I didn't encounter any problem with the above sources and I haven't done
any changes to the above source for the build. Whereas (as I said in
earlier mails regarding this) when I used gcc-4.4, I had to make a change
in the binutils-2.10.1 source and I had to set CFLAGS with "-O2
-U_FORTIFY_SOURCE" for building gcc-2.95.3.


From this, I understand that:
1. we get problems while building older sources of GNU tool chain with the
latest gcc. 
2. we can get the binaries of older versions and use them for such builds.


Is my understanding correct?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc: Internal compiler error: program as got fatal signal 11
  2010-05-20 13:24     ` chandrakumar
@ 2010-05-20 17:13       ` Ian Lance Taylor
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Lance Taylor @ 2010-05-20 17:13 UTC (permalink / raw)
  To: chandrakumar; +Cc: gcc-help

<chandrakumar@chandrakumar.in> writes:

> From this, I understand that:
> 1. we get problems while building older sources of GNU tool chain with the
> latest gcc. 

Yes.

> 2. we can get the binaries of older versions and use them for such builds.

In some cases, yes.  Sometimes you have to walk forward or backward
one version at a time.

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-20 16:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-07 11:39 gcc: Internal compiler error: program as got fatal signal 11 chandrakumar
2010-05-07 14:54 ` Ian Lance Taylor
2010-05-10  8:56   ` chandrakumar
2010-05-20 13:24     ` chandrakumar
2010-05-20 17:13       ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).