Bug 14998 - Ada compiler error during ncurses build
Summary: Ada compiler error during ncurses build
Status: RESOLVED DUPLICATE of bug 14997
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 3.3.3
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-17 21:15 UTC by E. Stuart Hicks
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
1/5 (12.48 KB, text/plain)
2004-04-17 21:15 UTC, E. Stuart Hicks
Details
2/5 (1000 bytes, text/plain)
2004-04-17 21:16 UTC, E. Stuart Hicks
Details
3/5 (1.89 KB, text/plain)
2004-04-17 21:16 UTC, E. Stuart Hicks
Details
4/5 (5.30 KB, text/plain)
2004-04-17 21:16 UTC, E. Stuart Hicks
Details
5/5 (4.37 KB, text/plain)
2004-04-17 21:17 UTC, E. Stuart Hicks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description E. Stuart Hicks 2004-04-17 21:15:10 UTC
During a build of ncurses 5.4 with Ada support I get:

<blah blah blah>

make[2]: Entering directory `/root/build/ncurses-5.4/Ada95/src'
gnatmake -O3 -gnatpn  -I. -I. -c -o terminal_interface-curses-
menus.o ./terminal_interface-curses-menus.adb
gcc -c -I./ -O3 -gnatpn -I. -I. -I- ./terminal_interface-curses-menus.adb
+===========================GNAT BUG DETECTED==============================+
| 3.3.3 (sparcv9-sun-solaris2) in expand_expr, at expr.c:7512              |
| Error detected at /usr/local/lib/gcc-lib/sparcv9-sun-
solaris2/3.3.3/adainclude/i-c.ads:42:33|
| 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

./terminal_interface-curses-menus.adb
./terminal_interface-curses-menus.ads
./terminal_interface-curses.ads
./terminal_interface.ads
./terminal_interface-curses-aux.ads

compilation abandoned
gnatmake: "./terminal_interface-curses-menus.adb" compilation error
make[2]: *** [terminal_interface-curses-menus.o] Error 4
make[2]: Leaving directory `/root/build/ncurses-5.4/Ada95/src'
make[2]: Entering directory `/root/build/ncurses-5.4/Ada95/samples'
gnatmake -a -A. -A../src -A./../src tour -cargs -O3 -gnatpn  -I. -largs -
L../../lib -L../lib -lform -lmenu -lpanel -lncurses     -R /root/build/ncurses-
5.4/lib:/usr/local/lib  -lAdaCurses 
gnatmake -a -A. -A../src -A./../src rain -cargs -O3 -gnatpn  -I. -largs -
L../../lib -L../lib -lform -lmenu -lpanel -lncurses     -R /root/build/ncurses-
5.4/lib:/usr/local/lib  -lAdaCurses 
gcc -c -I. -I../src -I./../src -O3 -gnatpn -I. rain.adb
status.ads:55:56: "SIGINT" not declared in "Names"
gnatmake: "rain.adb" compilation error
make[2]: *** [rain] Error 4
make[2]: Leaving directory `/root/build/ncurses-5.4/Ada95/samples'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/build/ncurses-5.4/Ada95'
make: *** [all] Error 2
[root@lurch ncurses-5.4]# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparcv9-sun-solaris2/3.3.3/specs
Configured with: ../configure --enable-languages=all --disable-nls --with-
ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as sparcv9-sun-solaris2
Thread model: posix
gcc version 3.3.3

Configure was just ./configure --enable-shared; make

As per bug #14997 I tried removing the -O3 from the compile line and just got 
the same thing.
Comment 1 E. Stuart Hicks 2004-04-17 21:15:49 UTC
Created attachment 6104 [details]
1/5
Comment 2 E. Stuart Hicks 2004-04-17 21:16:04 UTC
Created attachment 6105 [details]
2/5
Comment 3 E. Stuart Hicks 2004-04-17 21:16:20 UTC
Created attachment 6106 [details]
3/5
Comment 4 E. Stuart Hicks 2004-04-17 21:16:55 UTC
Created attachment 6107 [details]
4/5
Comment 5 E. Stuart Hicks 2004-04-17 21:17:06 UTC
Created attachment 6108 [details]
5/5
Comment 6 Andrew Pinski 2004-04-17 21:19:23 UTC
This is a dup of bug 14997 which looks like Ada front-end bug.

*** This bug has been marked as a duplicate of 14997 ***
Comment 7 E. Stuart Hicks 2004-04-17 21:20:25 UTC
Well, like I said at the bottom, removing the optimizer flag didn't fix this 
one so I figured it might be something different