This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/6680] [alphaev5-dec-osf5.0] gcc-3.1 build fails with internal error


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6680



------- Additional Comments From sabelka at iue dot tuwien dot ac dot at  2003-06-25 15:16 -------
Subject: Re:  [alphaev5-dec-osf5.0] gcc-3.1 build fails with internal error

I tried to compile gcc-3.3 now, but still without success. This time the
failure shows up on a different location. Here are last few lines of the gmake
output:

stage1/xgcc -Bstage1/ -B/usr/local/alphaev5-dec-osf5.0/bin/ -c   -g
-O2 
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes 
-Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H
   -I. -I. 
-I../../gcc-3.3/gcc -I../../gcc-3.3/gcc/.
-I../../gcc-3.3/gcc/config 
-I../../gcc-3.3/gcc/../include
../../gcc-3.3/gcc/ifcvt.c -o ifcvt.o
stage1/xgcc -Bstage1/
-B/usr/local/alphaev5-dec-osf5.0/bin/ -c   -g -O2 
-DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wtraditional
-pedantic -Wno-long-long   -DHAVE_CONFIG_H -DGENERATOR_FILE    
-I. -I.
-I../../gcc-3.3/gcc -I../../gcc-3.3/gcc/. -I../../gcc-3.3/gcc/config

-I../../gcc-3.3/gcc/../include ../../gcc-3.3/gcc/genattrtab.c -o
genattrtab.o
stage1/xgcc -Bstage1/ -B/usr/local/alphaev5-dec-osf5.0/bin/ -c  
-g -O2 
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes 
-Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H
-DGENERATOR_FILE    
-I. -I. -I../../gcc-3.3/gcc -I../../gcc-3.3/gcc/.
-I../../gcc-3.3/gcc/config 
-I../../gcc-3.3/gcc/../include
../../gcc-3.3/gcc/genautomata.c -o 
genautomata.o
stage1/xgcc -Bstage1/
-B/usr/local/alphaev5-dec-osf5.0/bin/ -c   -g -O2 
-DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wtraditional
-pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. 
-I../../gcc-3.3/gcc
-I../../gcc-3.3/gcc/. -I../../gcc-3.3/gcc/config

-I../../gcc-3.3/gcc/../include ../../gcc-3.3/gcc/varray.c -o
varray.o
stage1/xgcc -Bstage1/ -B/usr/local/alphaev5-dec-osf5.0/bin/   -g -O2
-DIN_GCC   
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes

-Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H -DGENERATOR_FILE  -o

genattrtab \
 genattrtab.o genautomata.o \
 rtl.o read-rtl.o bitmap.o
ggc-none.o gensupport.o insn-conditions.o 
print-rtl1.o errors.o \
 varray.o
../libiberty/libiberty.a -lm
./genattrtab
../../gcc-3.3/gcc/config/alpha/alpha.md > tmp-attrtab.c
Check
description...done
Reservation transformation...done
Create automaton
`ev4_0'...genattrtab: Internal error: /bin/sh: 141655 Memory 
fault
gmake[2]:
*** [s-attrtab] Error 139
gmake[1]: *** [stage2_build] Error 2
gmake[2]:
Leaving directory

`/amd/in14/root/export/users2/sabelka/src/gcc-3.3-OSF1-V5.0/gcc'
gmake: ***
[bootstrap] Error 2
gmake[1]: Leaving directory

`/amd/in14/root/export/users2/sabelka/src/gcc-3.3-OSF1-V5.0/gcc'


Then, I
tried to debug the crashing
executable:

sabelka@a61:~/src/gcc-3.3-OSF1-V5.0/gcc$ gdb genattrtab
GNU gdb
5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software,
covered by the GNU General Public License, and you are
welcome to change it
and/or distribute copies of it under certain conditions.
Type "show copying"
to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as
"alphaev5-dec-osf5.0"...
Breakpoint 1 at 0x12002ff78: file
../../gcc-3.3/gcc/errors.c, line 136.
Breakpoint 2 at 0x3ff800d7b20
Breakpoint
3 at 0x3ff80189070
(gdb) r ../../gcc-3.3/gcc/config/alpha/alpha.md
Starting
program:

/amd/in14/root/export/users2/sabelka/src/gcc-3.3-OSF1-V5.0/gcc/genattrtab

../../gcc-3.3/gcc/config/alpha/alpha.md
Breakpoint 2 at
0x3ff800d7b24
Breakpoint 3 at 0x3ff80189074
/* Generated automatically by the
program `genattrtab'
from the machine description file `md'.  */

Check
description...done
Reservation transformation...done
Create automaton
`ev4_0'...
Breakpoint 1, fancy_abort (file=0x1400cc010 "\006",
line=1074578672,
    func=0x600 <Error reading address 0x600: Invalid
argument>)
    at ../../gcc-3.3/gcc/errors.c:136
136       internal_error
("abort in %s, at %s:%d", func, file, line);
(gdb) bt
#0  fancy_abort
(file=0x1400cc010 "\006", line=1074578672,
    func=0x600 <Error reading
address 0x600: Invalid argument>)
    at ../../gcc-3.3/gcc/errors.c:136
#1 
0x1200174a8 in reserv_sets_eq (reservs_1=0x1400cc010,
   
reservs_2=0x1400cc4f0) at ../../gcc-3.3/gcc/genautomata.c:3684
#2  0x120018268
in insert_state (state=0x600)
    at
../../gcc-3.3/gcc/genautomata.c:4050
(gdb) up
#1  0x1200174a8 in
reserv_sets_eq (reservs_1=0x1400cc010,
    reservs_2=0x1400cc4f0) at
../../gcc-3.3/gcc/genautomata.c:3684
3684    {
(gdb) l
3679    /* The function
checks equality of the reservation sets.  */
3680    static int
3681   
reserv_sets_eq (reservs_1, reservs_2)
3682         reserv_sets_t
reservs_1;
3683         reserv_sets_t reservs_2;
3684    {
3685      return
reserv_sets_cmp (reservs_1, reservs_2) == 0;
3686    }
3687
3688    /* Set up
in the reservation set that unit with UNIT_NUM is used on
(gdb) quit
The
program is running.  Exit anyway? (y or n) y

For me it's not clear why the
function fancy_abort() gets called (with obviously invalid parameters on the
stack). So it seems that either the stage1 gcc or some other component (osf1
assembler/linker) is generating invalid code.

As with previous versions of
gcc I was able to build the compiler successfully with BOOT_CFLAGS="-g -O
-fno-reorder-blocks"

Cheers,
Rainer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]