public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/22477] New: GNAT does not compile any Ada files
@ 2005-07-14  6:22 info at softimp dot com dot au
  2005-07-14 17:08 ` [Bug ada/22477] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: info at softimp dot com dot au @ 2005-07-14  6:22 UTC (permalink / raw)
  To: gcc-bugs

GNAT will produce the "Storage Error" below when trying to compile any Ada
source files.

The system is running an up-to-date (as of Thursday 14 July 2005 AEST) Fedora
Core 3 distribution with:
   gcc-3.4.3-22.fc3
   gcc-gnat-3.4.3-22.fc3
   libgnat-3.4.3-22.fc3
   glibc-2.3.5-0.fc3.1
   glibc-common-2.3.5-0.fc3.1

I have included the output of trying to compile GtkAda 2.4.0 from source.

--------------BEGIN ./configure --prefix=/opt/GtkAda ----------------------
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for merge... /usr/bin/merge
checking whether merge works correctly...... yes
checking for diff... /usr/bin/diff
checking for the correct diff option... -u
checking for patch... /usr/bin/patch
checking for the correct patch option... -f
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gnatmake... /usr/bin/gnatmake
checking that your gnat compiler works with a simple example... gcc -c conftest.adb
+===========================GNAT BUG DETECTED==============================+
| 3.4.3 20050227 (Red Hat 3.4.3-22.fc3) (i386-redhat-linux-gnu)            |
| Storage_Error stack overflow (or erroneous memory access)                |
| Error detected at a-textio.ads:53:9                                      |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| 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).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases, 
so please double check that the problem can still 
be reproduced with the set of files listed.

conftest.adb

compilation abandoned
gnatmake: "conftest.adb" compilation error
no
configure: error: /usr/bin/gnatmake test failed at compile time! Check your
configuration.
--------------END ./configure --prefix=/opt/GtkAda ----------------------

-- 
           Summary: GNAT does not compile any Ada files
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: info at softimp dot com dot au
                CC: gcc-bugs at gcc dot gnu dot org
 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=22477


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

* [Bug ada/22477] GNAT does not compile any Ada files
  2005-07-14  6:22 [Bug ada/22477] New: GNAT does not compile any Ada files info at softimp dot com dot au
@ 2005-07-14 17:08 ` pinskia at gcc dot gnu dot org
  2005-07-14 23:00 ` info at softimp dot com dot au
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14 17:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-14 17:08 -------
Can you attach conftest.adb?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug ada/22477] GNAT does not compile any Ada files
  2005-07-14  6:22 [Bug ada/22477] New: GNAT does not compile any Ada files info at softimp dot com dot au
  2005-07-14 17:08 ` [Bug ada/22477] " pinskia at gcc dot gnu dot org
@ 2005-07-14 23:00 ` info at softimp dot com dot au
  2005-07-14 23:06 ` info at softimp dot com dot au
  2005-07-15  9:13 ` charlet at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: info at softimp dot com dot au @ 2005-07-14 23:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From info at softimp dot com dot au  2005-07-14 22:57 -------
(In reply to comment #1)
> Can you attach conftest.adb?

Sure thing.
----------------- BEGIN CONFTEST.ADB ------------------
with Ada.Text_IO;

procedure Conftest is
   Conftest_Ok : Ada.Text_IO.File_Type;
begin
   Ada.Text_IO.Create (File => Conftest_Ok,
                       Name => "$conftest_ok");
   Ada.Text_IO.Close (Conftest_Ok);
end Conftest;
----------------- END CONFTEST.ADB ------------------

-- 


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


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

* [Bug ada/22477] GNAT does not compile any Ada files
  2005-07-14  6:22 [Bug ada/22477] New: GNAT does not compile any Ada files info at softimp dot com dot au
  2005-07-14 17:08 ` [Bug ada/22477] " pinskia at gcc dot gnu dot org
  2005-07-14 23:00 ` info at softimp dot com dot au
@ 2005-07-14 23:06 ` info at softimp dot com dot au
  2005-07-15  9:13 ` charlet at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: info at softimp dot com dot au @ 2005-07-14 23:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From info at softimp dot com dot au  2005-07-14 23:04 -------
Forgot to mention, this problem occurs only with GNAT (gcc C frontend works -
have compiled working kernel modules) on linux kernel 2.6.11-1.35_FC3.  I have
reverted back to 2.6.11-1.14_FC3 and Ada/C frontends work ok.

-- 


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


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

* [Bug ada/22477] GNAT does not compile any Ada files
  2005-07-14  6:22 [Bug ada/22477] New: GNAT does not compile any Ada files info at softimp dot com dot au
                   ` (2 preceding siblings ...)
  2005-07-14 23:06 ` info at softimp dot com dot au
@ 2005-07-15  9:13 ` charlet at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: charlet at gcc dot gnu dot org @ 2005-07-15  9:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From charlet at gcc dot gnu dot org  2005-07-15 09:02 -------
Most likely your new kernel have stack execution disabled.
You would have the same issue with GNU C when using e.g. address of
nested procedures.

I guess at some point we might want to do something in GCC to accomodate
for this possibility under Linux, as we already do under e.g. Solaris if
it becomes standard habit under Linux to disable stack execution.

Arno

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


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


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

end of thread, other threads:[~2005-07-15  9:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14  6:22 [Bug ada/22477] New: GNAT does not compile any Ada files info at softimp dot com dot au
2005-07-14 17:08 ` [Bug ada/22477] " pinskia at gcc dot gnu dot org
2005-07-14 23:00 ` info at softimp dot com dot au
2005-07-14 23:06 ` info at softimp dot com dot au
2005-07-15  9:13 ` charlet 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).