public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/37799]  New: SEGV compiling ada/ada.ads in stage2
@ 2008-10-10 16:11 ro at gcc dot gnu dot org
  2008-10-11 20:57 ` [Bug ada/37799] SIGBUS " ebotcazou at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ro at gcc dot gnu dot org @ 2008-10-10 16:11 UTC (permalink / raw)
  To: gcc-bugs

Current mainline as of 20081002 fails to bootstrap on sparcv9-sun-solaris2.11:

/vol/gccsrc/obj/gcc-4.4.0-20081002/11-gcc-v9/./prev-gcc/xgcc
-B/vol/gccsrc/obj/gcc-4.4.0-20081002/11-gcc-v9/./prev-gcc/
-B/vol/gcc/sparcv9-sun-solaris2.11/bin/ -c -g -O2  -gnatpg -gnata -nostdinc -I-
-I. -Iada -I/vol/gcc/src/gcc-hg/gcc/ada
-I/vol/gcc/src/gcc-hg/gcc/ada/gcc-interface /vol/gcc/src/gcc-hg/gcc/ada/ada.ads
-o ada/ada.o
+===========================GNAT BUG DETECTED==============================+
| 4.4.0 20081002 (experimental) (sparcv9-sun-solaris2.11) Program_Error SIGBUS|
| Error detected at system.ads:1:1                                         |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+
make[3]: *** [ada/ada.o] Error 1

Running gnat1 under gdb reveals:

(gdb) run -I- -I. -Iada -I/vol/gcc/src/gcc-hg/gcc/ada
-I/vol/gcc/src/gcc-hg/gcc/ada/gcc-interface -quiet -nostdinc -dumpbase ada.ads
-O2 -g -gnatpg -gnata -mcpu=v9 -gnatO ada/ada.o
/vol/gcc/src/gcc-hg/gcc/ada/ada.ads
Starting program: /vol/gccsrc/obj/gcc-4.4.0-20081002/11-gcc-v9/gcc/gnat1 -I-
-I. -Iada -I/vol/gcc/src/gcc-hg/gcc/ada
-I/vol/gcc/src/gcc-hg/gcc/ada/gcc-interface -quiet -nostdinc -dumpbase ada.ads
-O2 -g -gnatpg -gnata -mcpu=v9 -gnatO ada/ada.o
/vol/gcc/src/gcc-hg/gcc/ada/ada.ads
warning: Temporarily disabling breakpoints for unloaded shared library
"/usr/lib/sparcv9/ld.so.1"

Program received signal SIGSEGV, Segmentation fault.
0x0000000100866de8 in targparm.get_target_parameters (system_text=0x1021454a0,
source_first=0, source_last=9005) at
/vol/gcc/src/gcc-hg/gcc/ada/targparm.adb:253
Current language:  auto; currently ada
(gdb) where
#0  0x0000000100866de8 in targparm.get_target_parameters
(system_text=0x1021454a0, source_first=0, source_last=9005) at
/vol/gcc/src/gcc-hg/gcc/ada/targparm.adb:253
#1  0x000000010089980c in gnat1drv () at
/vol/gcc/src/gcc-hg/gcc/ada/gnat1drv.adb:318
#2  0x000000010023d1e8 in gnat_parse_file (set_yydebug=0) at
/vol/gcc/src/gcc-hg/gcc/ada/gcc-interface/misc.c:208
#3  0x0000000100eff9d8 in compile_file () at
/vol/gcc/src/gcc-hg/gcc/toplev.c:968
#4  0x0000000100f043ec in do_compile () at
/vol/gcc/src/gcc-hg/gcc/toplev.c:2190
#5  0x0000000100f044c8 in toplev_main (argc=18, argv=0xffffffff7ffff438) at
/vol/gcc/src/gcc-hg/gcc/toplev.c:2222
#6  0x000000010089b584 in main (argc=18, argv=0xffffffff7ffff438) at
/vol/gcc/src/gcc-hg/gcc/main.c:35


-- 
           Summary: SEGV compiling ada/ada.ads in stage2
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at gcc dot gnu dot org
 GCC build triplet: sparcv9-sun-solaris2.11
  GCC host triplet: sparcv9-sun-solaris2.11
GCC target triplet: sparcv9-sun-solaris2.11


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


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

* [Bug ada/37799] SIGBUS compiling ada/ada.ads in stage2
  2008-10-10 16:11 [Bug ada/37799] New: SEGV compiling ada/ada.ads in stage2 ro at gcc dot gnu dot org
@ 2008-10-11 20:57 ` ebotcazou at gcc dot gnu dot org
  2008-10-12 19:48 ` [Bug ada/37799] SEGV " ebotcazou at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-10-11 20:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ebotcazou at gcc dot gnu dot org  2008-10-11 20:56 -------
This works for me with GCC 4.4.0 20081011 + GAS 2.18.92 + Sun ld on Solaris 9.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |WAITING
  GCC build triplet|sparcv9-sun-solaris2.11     |sparc64-sun-solaris2.11
   GCC host triplet|sparcv9-sun-solaris2.11     |sparc64-sun-solaris2.11
 GCC target triplet|sparcv9-sun-solaris2.11     |sparc64-sun-solaris2.11
            Summary|SEGV compiling ada/ada.ads  |SIGBUS compiling ada/ada.ads
                   |in stage2                   |in stage2


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


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

* [Bug ada/37799] SEGV compiling ada/ada.ads in stage2
  2008-10-10 16:11 [Bug ada/37799] New: SEGV compiling ada/ada.ads in stage2 ro at gcc dot gnu dot org
  2008-10-11 20:57 ` [Bug ada/37799] SIGBUS " ebotcazou at gcc dot gnu dot org
@ 2008-10-12 19:48 ` ebotcazou at gcc dot gnu dot org
  2008-11-30  9:29 ` ebotcazou at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-10-12 19:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ebotcazou at gcc dot gnu dot org  2008-10-12 19:47 -------
> This works for me with GCC 4.4.0 20081011 + GAS 2.18.92 + Sun ld on Solaris 9.

(botcazou@nile) ~ $ gcc -v
Using built-in specs.
Target: sparc64-sun-solaris2.9
Configured with: /nile.build/botcazou/gcc-head/src/configure
--build=sparc64-sun-solaris2.9
--prefix=/nile.build/botcazou/gcc-head/install_sparc64
--with-as=/nile.build/botcazou/gcc-head/install_sparc64/bin/as
--with-gmp=/nile.build/botcazou/gcc-head/install_sparc64
--with-gmp-lib=/nile.build/botcazou/gcc-head/install_sparc64/lib/sparcv9
--with-mpfr=/nile.build/botcazou/gcc-head/install_sparc64
--with-mpfr-lib=/nile.build/botcazou/gcc-head/install_sparc64/lib/sparcv9
--enable-languages=c,ada --disable-nls
Thread model: posix
gcc version 4.4.0 20081011 for GNAT Pro 6.2.0w (20081010) (GCC)
(botcazou@nile) ~ $ gnatmake -f -q ma
(botcazou@nile) ~ $ file ma
ma:             ELF 64-bit MSB executable SPARCV9 Version 1, dynamically
linked, not stripped
(botcazou@nile) ~ $ gnatmake -f -q ma -m32 --RTS=sparcv7
(botcazou@nile) ~ $ file ma
ma:             ELF 32-bit MSB executable SPARC Version 1, dynamically linked,
not stripped


-- 


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


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

* [Bug ada/37799] SEGV compiling ada/ada.ads in stage2
  2008-10-10 16:11 [Bug ada/37799] New: SEGV compiling ada/ada.ads in stage2 ro at gcc dot gnu dot org
  2008-10-11 20:57 ` [Bug ada/37799] SIGBUS " ebotcazou at gcc dot gnu dot org
  2008-10-12 19:48 ` [Bug ada/37799] SEGV " ebotcazou at gcc dot gnu dot org
@ 2008-11-30  9:29 ` ebotcazou at gcc dot gnu dot org
  2008-12-02 21:39 ` ro at techfak dot uni-bielefeld dot de
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-11-30  9:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ebotcazou at gcc dot gnu dot org  2008-11-30 09:27 -------
Works for me on Solaris 10 as well.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME


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


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

* [Bug ada/37799] SEGV compiling ada/ada.ads in stage2
  2008-10-10 16:11 [Bug ada/37799] New: SEGV compiling ada/ada.ads in stage2 ro at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-11-30  9:29 ` ebotcazou at gcc dot gnu dot org
@ 2008-12-02 21:39 ` ro at techfak dot uni-bielefeld dot de
  2008-12-02 21:42 ` ro at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2008-12-02 21:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ro at techfak dot uni-bielefeld dot de  2008-12-02 21:38 -------
Subject: Re:  SEGV compiling ada/ada.ads in stage2

ebotcazou at gcc dot gnu dot org writes:

> Works for me on Solaris 10 as well.

I've just tried again on current mainline (trunk revision 142371) on
Solaris 11 (snv_103), both with Sun as and GNU as 2.19, and get the same
error in both cases.

The compilers were configured as follows:

Target: sparc-sun-solaris2.11
Configured with: /vol/gcc/src/gcc-dist/configure
CC=/vol/gcc/obj/gcc-4.4.0-20081202/11-gcc-v9/gccv9
--with-gmp-include=/vol/gcc/obj/gmp-4.2.1-v9
--with-gmp-lib=/vol/gcc/obj/gmp-4.2.1-v9/.libs
--with-mpfr-include=/vol/gcc/obj/mpfr-2.3.2-v9
--with-mpfr-lib=/vol/gcc/obj/mpfr-2.3.2-v9/.libs --with-gnu-as
--with-as=/vol/gcc/lib/gas-2.19 --enable-languages=c,ada --prefix=/vol/gcc
--with-local-prefix=/vol/gcc --disable-nls
Thread model: posix
gcc version 4.4.0 20081202 (experimental) [trunk revision 142371] (GCC) 

resp.

Target: sparc-sun-solaris2.11
Configured with: /vol/gcc/src/gcc-dist/configure
CC=/vol/gcc/obj/gcc-4.4.0-20081202/11-gcc-v9/gccv9
--with-gmp-include=/vol/gcc/obj/gmp-4.2.1-v9
--with-gmp-lib=/vol/gcc/obj/gmp-4.2.1-v9/.libs
--with-mpfr-include=/vol/gcc/obj/mpfr-2.3.2-v9
--with-mpfr-lib=/vol/gcc/obj/mpfr-2.3.2-v9/.libs --enable-languages=c,ada
--prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls
Thread model: posix
gcc version 4.4.0 20081202 (experimental) [trunk revision 142371] (GCC) 

I'm currently running bootstraps on Solaris 10 (both with Sun as and GNU as
2.19) to verify if this makes a difference.

        Rainer


-- 


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


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

* [Bug ada/37799] SEGV compiling ada/ada.ads in stage2
  2008-10-10 16:11 [Bug ada/37799] New: SEGV compiling ada/ada.ads in stage2 ro at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-12-02 21:39 ` ro at techfak dot uni-bielefeld dot de
@ 2008-12-02 21:42 ` ro at gcc dot gnu dot org
  2008-12-02 22:30 ` ro at techfak dot uni-bielefeld dot de
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ro at gcc dot gnu dot org @ 2008-12-02 21:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ro at gcc dot gnu dot org  2008-12-02 21:39 -------
Still crashes for me.


-- 

ro at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|WORKSFORME                  |


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


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

* [Bug ada/37799] SEGV compiling ada/ada.ads in stage2
  2008-10-10 16:11 [Bug ada/37799] New: SEGV compiling ada/ada.ads in stage2 ro at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-12-02 21:42 ` ro at gcc dot gnu dot org
@ 2008-12-02 22:30 ` ro at techfak dot uni-bielefeld dot de
  2008-12-03  8:59 ` ebotcazou at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2008-12-02 22:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from ro at techfak dot uni-bielefeld dot de  2008-12-02 22:28 -------
Subject: Re:  SEGV compiling ada/ada.ads in stage2

ro at techfak dot uni-bielefeld dot de writes:

> I'm currently running bootstraps on Solaris 10 (both with Sun as and GNU as
> 2.19) to verify if this makes a difference.

It doesn't: I get exactly the same error.

        Rainer


-- 


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


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

* [Bug ada/37799] SEGV compiling ada/ada.ads in stage2
  2008-10-10 16:11 [Bug ada/37799] New: SEGV compiling ada/ada.ads in stage2 ro at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-12-02 22:30 ` ro at techfak dot uni-bielefeld dot de
@ 2008-12-03  8:59 ` ebotcazou at gcc dot gnu dot org
  2008-12-03 14:33 ` ro at techfak dot uni-bielefeld dot de
  2008-12-03 17:44 ` ebotcazou at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-12-03  8:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from ebotcazou at gcc dot gnu dot org  2008-12-03 08:58 -------
> The compilers were configured as follows:
> 
> Target: sparc-sun-solaris2.11
> Configured with: /vol/gcc/src/gcc-dist/configure
> CC=/vol/gcc/obj/gcc-4.4.0-20081202/11-gcc-v9/gccv9
> --with-gmp-include=/vol/gcc/obj/gmp-4.2.1-v9
> --with-gmp-lib=/vol/gcc/obj/gmp-4.2.1-v9/.libs
> --with-mpfr-include=/vol/gcc/obj/mpfr-2.3.2-v9
> --with-mpfr-lib=/vol/gcc/obj/mpfr-2.3.2-v9/.libs --with-gnu-as
> --with-as=/vol/gcc/lib/gas-2.19 --enable-languages=c,ada --prefix=/vol/gcc
> --with-local-prefix=/vol/gcc --disable-nls
> Thread model: posix
> gcc version 4.4.0 20081202 (experimental) [trunk revision 142371] (GCC) 
> 
> resp.
> 
> Target: sparc-sun-solaris2.11
> Configured with: /vol/gcc/src/gcc-dist/configure
> CC=/vol/gcc/obj/gcc-4.4.0-20081202/11-gcc-v9/gccv9
> --with-gmp-include=/vol/gcc/obj/gmp-4.2.1-v9
> --with-gmp-lib=/vol/gcc/obj/gmp-4.2.1-v9/.libs
> --with-mpfr-include=/vol/gcc/obj/mpfr-2.3.2-v9
> --with-mpfr-lib=/vol/gcc/obj/mpfr-2.3.2-v9/.libs --enable-languages=c,ada
> --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls
> Thread model: posix
> gcc version 4.4.0 20081202 (experimental) [trunk revision 142371] (GCC) 

But these are not 64-bit compilers, see the target triplet.  You need to pass
--build=sparc64-sun-solaris2.11 and start with a 64-bit compiler.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug ada/37799] SEGV compiling ada/ada.ads in stage2
  2008-10-10 16:11 [Bug ada/37799] New: SEGV compiling ada/ada.ads in stage2 ro at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-12-03  8:59 ` ebotcazou at gcc dot gnu dot org
@ 2008-12-03 14:33 ` ro at techfak dot uni-bielefeld dot de
  2008-12-03 17:44 ` ebotcazou at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2008-12-03 14:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from ro at techfak dot uni-bielefeld dot de  2008-12-03 14:31 -------
Subject: Re:  SEGV compiling ada/ada.ads in stage2

ebotcazou at gcc dot gnu dot org writes:

> But these are not 64-bit compilers, see the target triplet.  You need to pass
> --build=sparc64-sun-solaris2.11 and start with a 64-bit compiler.

I fear you're right: it occured to me that the GCC 3.4.3 I started with
didn't have proper multilib support.  I had started with gcc3.4.3 -m64
(which would have been a 64-bit compiler), but forgot to specify the
correct target triplet, though I'm pretty sure I did so when I first
reported the bug.

I've now used a 32-bit gcc 4.4.0 with -m64 as bootstrap compiler and
specified --build=sparcv9-sun-solaris2.10.  This time, the bootstrap
finished, so this has been pilot error ;-(

        Rainer


-- 


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


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

* [Bug ada/37799] SEGV compiling ada/ada.ads in stage2
  2008-10-10 16:11 [Bug ada/37799] New: SEGV compiling ada/ada.ads in stage2 ro at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2008-12-03 14:33 ` ro at techfak dot uni-bielefeld dot de
@ 2008-12-03 17:44 ` ebotcazou at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-12-03 17:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from ebotcazou at gcc dot gnu dot org  2008-12-03 17:42 -------
> I've now used a 32-bit gcc 4.4.0 with -m64 as bootstrap compiler and
> specified --build=sparcv9-sun-solaris2.10.  This time, the bootstrap
> finished, so this has been pilot error ;-(

Thanks for investigating on your side.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME


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


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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-10 16:11 [Bug ada/37799] New: SEGV compiling ada/ada.ads in stage2 ro at gcc dot gnu dot org
2008-10-11 20:57 ` [Bug ada/37799] SIGBUS " ebotcazou at gcc dot gnu dot org
2008-10-12 19:48 ` [Bug ada/37799] SEGV " ebotcazou at gcc dot gnu dot org
2008-11-30  9:29 ` ebotcazou at gcc dot gnu dot org
2008-12-02 21:39 ` ro at techfak dot uni-bielefeld dot de
2008-12-02 21:42 ` ro at gcc dot gnu dot org
2008-12-02 22:30 ` ro at techfak dot uni-bielefeld dot de
2008-12-03  8:59 ` ebotcazou at gcc dot gnu dot org
2008-12-03 14:33 ` ro at techfak dot uni-bielefeld dot de
2008-12-03 17:44 ` ebotcazou 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).