public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?)
@ 2012-12-02 20:29 gary at intrepid dot com
  2012-12-02 20:32 ` [Bug bootstrap/55566] " gary at intrepid dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: gary at intrepid dot com @ 2012-12-02 20:29 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55566
           Summary: [4.8 regression] [IA64] ICE during bootstrap (related
                    to recent "vec" re-implementation?)
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gary@intrepid.com


Created attachment 28854
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28854
build failure: IA64 segv - first seen in r193595

GCC fails to build, due to a segmentation violation while compiling libgcc2
during the bootstrap phase on an IA64 (altix) running SuSE SLES 11.1.  The
installed gcc compiler is "gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision
152973]", which is the compiler used to initially build gcc.

Bisection indicates that this started to fail with this svn revision.

------------------------------------------------------------------------
r193595 | dnovillo | 2012-11-17 18:54:30 -0800 (Sat, 17 Nov 2012) | 537 lines

This patch rewrites the old VEC macro-based interface into a new one
based on the template class 'vec'.  The user-visible changes are
described in http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec.
[...]

It has continued to fail subsequent to that commit at least through 2012-11-30.

Since about 2012-11-27, the segmentation violations that trace back originating
through vec.h persist, but now the failure occurs when compiling a configure
test when beginning to build libgcc.   This continues to fail for a recent
version of gcc trunk (r194044 2012-12-01).

An excerpt configure test failure traceback is as follows.

conftest.c: In function 'foo':
conftest.c:19:1: internal compiler error: Segmentation fault
 }
 ^
0x4000000000b3b33f crash_signal
        src/gcc/toplev.c:334
0x4000000000466f30 vec<df_ref_d*, va_stack, vl_embed>::space(unsigned int) cons
t
        src/gcc/vec.h:842
0x4000000000466f30 vec<df_ref_d*, va_stack, vl_embed>::quick_push(df_ref_d* con
st&)
        src/gcc/vec.h:947
0x4000000000466f30 vec<df_ref_d*, va_stack, vl_ptr>::quick_push(df_ref_d* const
&)
        src/gcc/vec.h:1552
0x4000000000466f30 vec<df_ref_d*, va_stack, vl_ptr>::safe_push(df_ref_d* const&
)
        src/gcc/vec.h:1565
0x4000000000466f30 df_ref_create_structure
0x4000000000466f30 df_ref_create_structure
        src/gcc/df-scan.c:2804
0x4000000000467b3f df_ref_record
        src/gcc/df-scan.c:2873
0x400000000046923f df_get_call_refs
        src/gcc/df-scan.c:3403
[...]

More complete logs with trace back are attached.


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

* [Bug bootstrap/55566] [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
@ 2012-12-02 20:32 ` gary at intrepid dot com
  2012-12-02 20:43 ` gary at intrepid dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: gary at intrepid dot com @ 2012-12-02 20:32 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Gary Funck <gary at intrepid dot com> 2012-12-02 20:32:03 UTC ---
Created attachment 28855
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28855
build failure Ia64 segv - continues to fail in r194044 (in libgcc config. test)


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

* [Bug bootstrap/55566] [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
  2012-12-02 20:32 ` [Bug bootstrap/55566] " gary at intrepid dot com
@ 2012-12-02 20:43 ` gary at intrepid dot com
  2012-12-02 21:32 ` gary at intrepid dot com
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: gary at intrepid dot com @ 2012-12-02 20:43 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Gary Funck <gary at intrepid dot com> 2012-12-02 20:43:45 UTC ---
The configure options specified are:

CC=/usr/bin/gcc
CXX=/usr/bin/g++
$src/configure --enable-languages=c,c++ 
--enable-checking --disable-bootstrap --disable-multilib
--disable-libmudflap --disable-libssa --disable-lto
--prefix=/eng/upc/dev/gary/gcc-trunk

Configure reports:

CFLAGS='-g -O2'
CFLAGS_FOR_BUILD='-g -O2'
CFLAGS_FOR_TARGET='-g -O2'
CXXFLAGS='-g -O2'
CXXFLAGS_FOR_BUILD='-g -O2'
CXXFLAGS_FOR_TARGET='-g -O2'


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

* [Bug bootstrap/55566] [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
  2012-12-02 20:32 ` [Bug bootstrap/55566] " gary at intrepid dot com
  2012-12-02 20:43 ` gary at intrepid dot com
@ 2012-12-02 21:32 ` gary at intrepid dot com
  2012-12-02 21:39 ` [Bug bootstrap/55566] [4.8 regression] segfault during build " ebotcazou at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: gary at intrepid dot com @ 2012-12-02 21:32 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Gary Funck <gary at intrepid dot com> 2012-12-02 21:32:14 UTC ---
This failure may be related to the use of the installed gcc compiler (gcc (SUSE
Linux) 4.3.4 [gcc-4_3-branch revision 152973]).  I tried a gcc 4.7.0 compiler
that we built circa Feb, 2012 and it didn't segfault, but rather fails with an
apparently unrelated error while compiling 'gmp' ("redc_2.c:87:7: error: 'asm'
operand requires impossible reload").

I will try building svn revision 152973 on an x86-64 box, and see if the
problem can be reproduced there.


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

* [Bug bootstrap/55566] [4.8 regression] segfault during build (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
                   ` (2 preceding siblings ...)
  2012-12-02 21:32 ` gary at intrepid dot com
@ 2012-12-02 21:39 ` ebotcazou at gcc dot gnu.org
  2012-12-02 21:46 ` gary at intrepid dot com
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-02 21:39 UTC (permalink / raw)
  To: gcc-bugs


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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-12-02
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org
            Summary|[4.8 regression] [IA64] ICE |[4.8 regression] segfault
                   |during bootstrap (related   |during build (related to
                   |to recent "vec"             |recent "vec"
                   |re-implementation?)         |re-implementation?)
     Ever Confirmed|0                           |1
              Build|                            |ia64-*-*

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-02 21:39:08 UTC ---
This isn't a bootstrap since you pass --disable-bootstrap to configure, rather
a simple build, which would indeed point to a problem in the base compiler. 
Try with another base compiler (4.6.x or more recent 4.7.x).

The compiler bootstraps fine for me btw.


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

* [Bug bootstrap/55566] [4.8 regression] segfault during build (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
                   ` (3 preceding siblings ...)
  2012-12-02 21:39 ` [Bug bootstrap/55566] [4.8 regression] segfault during build " ebotcazou at gcc dot gnu.org
@ 2012-12-02 21:46 ` gary at intrepid dot com
  2012-12-02 21:48 ` gary at intrepid dot com
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: gary at intrepid dot com @ 2012-12-02 21:46 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Gary Funck <gary at intrepid dot com> 2012-12-02 21:45:52 UTC ---
Cancel the previous comment regarding the idea that this might be related to
using the system installed gcc.  The build failed while trying to build gmp,
and hadn't gotten to trying compile libgcc yet.


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

* [Bug bootstrap/55566] [4.8 regression] segfault during build (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
                   ` (4 preceding siblings ...)
  2012-12-02 21:46 ` gary at intrepid dot com
@ 2012-12-02 21:48 ` gary at intrepid dot com
  2012-12-02 21:50 ` gary at intrepid dot com
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: gary at intrepid dot com @ 2012-12-02 21:48 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Gary Funck <gary at intrepid dot com> 2012-12-02 21:48:28 UTC ---
"This isn't a bootstrap since you pass --disable-bootstrap to configure ..."

Agreed.  I didnt' know how to classify this problem.

Since the version of 4.7.0 that I used appears incompatible with the version of
gmp that we build as a pre-requisite, I will try a 4.6 compiler and see if I
get a different result.


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

* [Bug bootstrap/55566] [4.8 regression] segfault during build (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
                   ` (5 preceding siblings ...)
  2012-12-02 21:48 ` gary at intrepid dot com
@ 2012-12-02 21:50 ` gary at intrepid dot com
  2012-12-02 22:03 ` ebotcazou at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: gary at intrepid dot com @ 2012-12-02 21:50 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #7 from Gary Funck <gary at intrepid dot com> 2012-12-02 21:49:49 UTC ---
(In reply to comment #4)
> The compiler bootstraps fine for me btw.

Which version of the host compiler did you use to run the initial build step? 
Which OS and target architecture?


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

* [Bug bootstrap/55566] [4.8 regression] segfault during build (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
                   ` (6 preceding siblings ...)
  2012-12-02 21:50 ` gary at intrepid dot com
@ 2012-12-02 22:03 ` ebotcazou at gcc dot gnu.org
  2012-12-03  2:02 ` gary at intrepid dot com
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-02 22:03 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-02 22:03:42 UTC ---
> Which version of the host compiler did you use to run the initial build step? 

This is a 4.5.x compiler configured for ia64-generic-linux-gnu on a RHEL 5.8.


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

* [Bug bootstrap/55566] [4.8 regression] segfault during build (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
                   ` (7 preceding siblings ...)
  2012-12-02 22:03 ` ebotcazou at gcc dot gnu.org
@ 2012-12-03  2:02 ` gary at intrepid dot com
  2012-12-03  6:46 ` ebotcazou at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: gary at intrepid dot com @ 2012-12-03  2:02 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #9 from Gary Funck <gary at intrepid dot com> 2012-12-03 02:02:18 UTC ---
(In reply to comment #3)
> I will try building svn revision 152973 on an x86-64 box, and see if the
> problem can be reproduced there.

I built fully bootstrapped the gcc/g++ compiler based on the 4.3 branch
revision 152973 on  an x86-64 FC15 platform and couldn't replicate the failure.

On the SUES 11.1 IA64 platform, I built the 4.5.4 release compiler from sources
via a full bootstrap.  There is no segfault.

It is looking like this failure is particular to the installed 4.3.4 g++
compiler.  If I have time, I might try rebuilding that version on this IA64
system and see if the bug replicates.  

It seems that this bug report will likely be resolved as "works for me", and
we'll need to build with the 4.5.4 compiler.


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

* [Bug bootstrap/55566] [4.8 regression] segfault during build (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
                   ` (8 preceding siblings ...)
  2012-12-03  2:02 ` gary at intrepid dot com
@ 2012-12-03  6:46 ` ebotcazou at gcc dot gnu.org
  2012-12-03 11:41 ` rguenth at gcc dot gnu.org
  2012-12-03 17:24 ` gary at intrepid dot com
  11 siblings, 0 replies; 13+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-03  6:46 UTC (permalink / raw)
  To: gcc-bugs


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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-03 06:45:32 UTC ---
Thanks for the experiment.  I think that you just need to always bootstrap the
compiler (i.e. don't pass --disable-bootstrap) since it's precisely designed to
avoid this kind of problems.  For cross-compilers, the trick is to bootstrap a
native compiler and use it to build them.


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

* [Bug bootstrap/55566] [4.8 regression] segfault during build (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
                   ` (9 preceding siblings ...)
  2012-12-03  6:46 ` ebotcazou at gcc dot gnu.org
@ 2012-12-03 11:41 ` rguenth at gcc dot gnu.org
  2012-12-03 17:24 ` gary at intrepid dot com
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-12-03 11:41 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
   Target Milestone|---                         |4.8.0

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-03 11:40:50 UTC ---
I suppose invalid then.


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

* [Bug bootstrap/55566] [4.8 regression] segfault during build (related to recent "vec" re-implementation?)
  2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
                   ` (10 preceding siblings ...)
  2012-12-03 11:41 ` rguenth at gcc dot gnu.org
@ 2012-12-03 17:24 ` gary at intrepid dot com
  11 siblings, 0 replies; 13+ messages in thread
From: gary at intrepid dot com @ 2012-12-03 17:24 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #12 from Gary Funck <gary at intrepid dot com> 2012-12-03 17:24:03 UTC ---
(In reply to comment #10)
> Thanks for the experiment.  I think that you just need to always bootstrap the
> compiler (i.e. don't pass --disable-bootstrap) since it's precisely designed to
> avoid this kind of problems.  For cross-compilers, the trick is to bootstrap a
> native compiler and use it to build them.

Thanks.  I can confirm that a full bootstrap using the system installed
/usr/bin/gcc and /usr/bin/g++ compilers with default compilation switches was
able to build gcc and g++ without issue.  Case closed.


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

end of thread, other threads:[~2012-12-03 17:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-02 20:29 [Bug bootstrap/55566] New: [4.8 regression] [IA64] ICE during bootstrap (related to recent "vec" re-implementation?) gary at intrepid dot com
2012-12-02 20:32 ` [Bug bootstrap/55566] " gary at intrepid dot com
2012-12-02 20:43 ` gary at intrepid dot com
2012-12-02 21:32 ` gary at intrepid dot com
2012-12-02 21:39 ` [Bug bootstrap/55566] [4.8 regression] segfault during build " ebotcazou at gcc dot gnu.org
2012-12-02 21:46 ` gary at intrepid dot com
2012-12-02 21:48 ` gary at intrepid dot com
2012-12-02 21:50 ` gary at intrepid dot com
2012-12-02 22:03 ` ebotcazou at gcc dot gnu.org
2012-12-03  2:02 ` gary at intrepid dot com
2012-12-03  6:46 ` ebotcazou at gcc dot gnu.org
2012-12-03 11:41 ` rguenth at gcc dot gnu.org
2012-12-03 17:24 ` gary at intrepid dot com

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).