public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28198] New: ICE building mips-elf cross compiler
@ 2006-06-29 11:05 fnf at specifixinc dot com
2006-06-29 11:26 ` [Bug c/28198] " fnf at specifixinc dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: fnf at specifixinc dot com @ 2006-06-29 11:05 UTC (permalink / raw)
To: gcc-bugs
The current "top-of-tree" i686 native compiler gets an internal error building
a mips-elf toolchain, while compiling tree.c. The native compiler identifies
itself as:
$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /src/latest/trunk/src/gcc/configure -v
--prefix=/opt/local/latest/trunk --enable-languages=c,c++ --disable-werror
--cache-file=.././config.cache --srcdir=/src/latest/trunk/src/gcc
Thread model: posix
gcc version 4.2.0 20060628 (experimental)
It can be reproduced with the command:
$ ./cc1 -quiet -g -O2 -W -Wwrite-strings bug.i
tree.c:7615: internal compiler error: Segmentation fault
I will attempt to attach the preprocessed version of tree.c (bug.i) referenced
above.
--
Summary: ICE building mips-elf cross compiler
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fnf at specifixinc dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28198
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/28198] ICE building mips-elf cross compiler
2006-06-29 11:05 [Bug c/28198] New: ICE building mips-elf cross compiler fnf at specifixinc dot com
@ 2006-06-29 11:26 ` fnf at specifixinc dot com
2006-06-29 13:21 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: fnf at specifixinc dot com @ 2006-06-29 11:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from fnf at specifixinc dot com 2006-06-29 11:05 -------
Created an attachment (id=11779)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11779&action=view)
Preprocessed version of tree.c
I had to wack away some code to get it to fit within the apparent 1Mb limit for
attachments.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28198
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/28198] ICE building mips-elf cross compiler
2006-06-29 11:05 [Bug c/28198] New: ICE building mips-elf cross compiler fnf at specifixinc dot com
2006-06-29 11:26 ` [Bug c/28198] " fnf at specifixinc dot com
@ 2006-06-29 13:21 ` pinskia at gcc dot gnu dot org
2006-06-29 13:24 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-29 13:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-06-29 13:09 -------
It works with a cross to x86-linux-gnu with "4.2.0 20060617".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28198
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/28198] ICE building mips-elf cross compiler
2006-06-29 11:05 [Bug c/28198] New: ICE building mips-elf cross compiler fnf at specifixinc dot com
2006-06-29 11:26 ` [Bug c/28198] " fnf at specifixinc dot com
2006-06-29 13:21 ` pinskia at gcc dot gnu dot org
@ 2006-06-29 13:24 ` pinskia at gcc dot gnu dot org
2006-06-29 13:50 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-29 13:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-06-29 13:20 -------
It works on x86_64 with "./cc1 pr28198.i -m32 -g -O2 -W -Wwrite-strings" on the
stage1 cc1 so maybe something is miscompiling cc1 or there is a GC issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28198
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/28198] ICE building mips-elf cross compiler
2006-06-29 11:05 [Bug c/28198] New: ICE building mips-elf cross compiler fnf at specifixinc dot com
` (2 preceding siblings ...)
2006-06-29 13:24 ` pinskia at gcc dot gnu dot org
@ 2006-06-29 13:50 ` pinskia at gcc dot gnu dot org
2006-06-29 16:03 ` [Bug middle-end/28198] [4.2 Regression] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-29 13:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-06-29 13:24 -------
(In reply to comment #3)
Or a HWI == 32bit problem because x86_64 is 64bit so is powerpc-* which I tried
also.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28198
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/28198] [4.2 Regression] ICE building mips-elf cross compiler
2006-06-29 11:05 [Bug c/28198] New: ICE building mips-elf cross compiler fnf at specifixinc dot com
` (3 preceding siblings ...)
2006-06-29 13:50 ` pinskia at gcc dot gnu dot org
@ 2006-06-29 16:03 ` pinskia at gcc dot gnu dot org
2006-06-29 18:10 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-29 16:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-06-29 14:10 -------
Can you give a backtrace?
Because I am getting a bootstrap failure on x86_64 which looks like it could be
the same.
The backtrace I have for the x86_64 bootstrap failure is:
#0 0x00000000009d8203 in copy_node_stat (node=0x2aaaac1c8fc0) at
/home/pinskia/src/newtest/trunk/gcc/tree.c:617
#1 0x0000000000a1a4d7 in copy_constant (exp=0x2aaaac1c8fc0) at
/home/pinskia/src/newtest/trunk/gcc/varasm.c:2709
And length is incorrect now after Richard G.'s patch for make_string changes.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Component|c |middle-end
Keywords| |ice-on-valid-code
Summary|ICE building mips-elf cross |[4.2 Regression] ICE
|compiler |building mips-elf cross
| |compiler
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28198
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/28198] [4.2 Regression] ICE building mips-elf cross compiler
2006-06-29 11:05 [Bug c/28198] New: ICE building mips-elf cross compiler fnf at specifixinc dot com
` (4 preceding siblings ...)
2006-06-29 16:03 ` [Bug middle-end/28198] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-06-29 18:10 ` pinskia at gcc dot gnu dot org
2006-06-30 11:19 ` fnf at specifix dot com
2006-06-30 11:21 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-29 18:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-06-29 17:55 -------
Can you build a x86 compiler after revision 115072 and try again, I fixed the
issue mentioned in comment #5.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28198
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/28198] [4.2 Regression] ICE building mips-elf cross compiler
2006-06-29 11:05 [Bug c/28198] New: ICE building mips-elf cross compiler fnf at specifixinc dot com
` (5 preceding siblings ...)
2006-06-29 18:10 ` pinskia at gcc dot gnu dot org
@ 2006-06-30 11:19 ` fnf at specifix dot com
2006-06-30 11:21 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: fnf at specifix dot com @ 2006-06-30 11:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from fnf at specifix dot com 2006-06-30 10:52 -------
Subject: Re: [4.2 Regression] ICE building mips-elf cross compiler
On Thursday 29 June 2006 13:55, pinskia at gcc dot gnu dot org wrote:
> Can you build a x86 compiler after revision 115072 and try again, I fixed the
> issue mentioned in comment #5.
I updated my sources last night and tried building a native x86
compiler this morning. I'm getting an internal error still, though
this one looks different.
I wonder if this is due to problems with precompiled headers and Fedora Core
4's
exec shield. I'll try disabling the exec shield and see if the problem goes
away.
/build/latest/trunk/i686-pc-linux-gnu/gcc/./gcc/xgcc -shared-libgcc
-B/build/latest/trunk/i686-pc-linux-gnu/gcc/./gcc -nostdinc++
-L/build/latest/trunk/i686-\pc-linux-gnu/gcc/i686-pc-linux-gnu/libstdc++-v3/src
-L/build/latest/trunk/i686-pc-linux-gnu/gcc/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/opt/local/latest/\trunk/i686-pc-linux-gnu/bin/
-B/opt/local/latest/trunk/i686-pc-linux-gnu/lib/ -isystem
/opt/local/latest/trunk/i686-pc-linux-gnu/include -isystem
/opt/local/\latest/trunk/i686-pc-linux-gnu/sys-include -Winvalid-pch
-Wno-deprecated -x c++-header -g -O2 -D_GNU_SOURCE
-I/build/latest/trunk/i686-pc-linux-gnu/gcc/i686\-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
-I/build/latest/trunk/i686-pc-linux-gnu/gcc/i686-pc-linux-gnu/libstdc++-v3/include
-I/src/latest/trunk/s\rc/gcc/libstdc++-v3/libsupc++
/src/latest/trunk/src/gcc/libstdc++-v3/include/precompiled/extc++.h -O2 -g -o
./i686-pc-linux-gnu/bits/extc++.h.gch/O2g.gch;
/build/latest/trunk/i686-pc-linux-gnu/gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:235:
internal compiler error:\ tree check: expected integer_cst, have scope_ref in
tree_int_cst_sgn, at tree.c:4484
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28198
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/28198] [4.2 Regression] ICE building mips-elf cross compiler
2006-06-29 11:05 [Bug c/28198] New: ICE building mips-elf cross compiler fnf at specifixinc dot com
` (6 preceding siblings ...)
2006-06-30 11:19 ` fnf at specifix dot com
@ 2006-06-30 11:21 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-30 11:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-06-30 11:18 -------
(In reply to comment #7)
>> I updated my sources last night and tried building a native x86
> compiler this morning. I'm getting an internal error still, though
> this one looks different.
> internal compiler error:\ tree check: expected integer_cst, have scope_ref in
> tree_int_cst_sgn, at tree.c:4484
Yes that is a different one. You would like to file that ICE seperately as the
orginal bug is fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28198
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-06-30 11:19 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-29 11:05 [Bug c/28198] New: ICE building mips-elf cross compiler fnf at specifixinc dot com
2006-06-29 11:26 ` [Bug c/28198] " fnf at specifixinc dot com
2006-06-29 13:21 ` pinskia at gcc dot gnu dot org
2006-06-29 13:24 ` pinskia at gcc dot gnu dot org
2006-06-29 13:50 ` pinskia at gcc dot gnu dot org
2006-06-29 16:03 ` [Bug middle-end/28198] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-06-29 18:10 ` pinskia at gcc dot gnu dot org
2006-06-30 11:19 ` fnf at specifix dot com
2006-06-30 11:21 ` pinskia at gcc dot gnu dot org
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).