PowerPC Ada program terminates with internal error (on psim)

avy st astrominger at yahoo.com
Wed Jan 3 18:16:00 UTC 2007


Hello All,

  I just completed a what I hope is a successful build of a Cygwin based Ada supporing toolset (based on gcc-4.1.20060909 snapshot) for PowerPC, and RTEMS 4.6.99.3, psim and ss555 BSP.

  However, when running a simple Ada 'hello' test program, the program runs correctly, and then RTEMS complains about an internal error.  Here is a gdb log that shows the problem (psim BSP):

GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-cygwin --target=powerpc-rtems"...
Connected to the simulator.
Breakpoint 1 at 0x1f3d8
Breakpoint 2 at 0x1dad0
Breakpoint 3 at 0x2912c: file ../../../../../../source/gcc-4.1-20060929/newlib/libc/stdlib/assert.c, line 57.
(gdb) run
Starting program: /home/avy/t.exe 
Hello RTEMS Ada
Breakpoint 1, 0x0001f3d8 in _Internal_error_Occurred ()
(gdb) quit
The program is running.  Exit anyway? (y or n) 

The Ada test program is:

with Ada.Text_io;
procedure T is
begin
  Ada.Text_IO.Put_Line("Hello RTEMS Ada");
end T;
The C hello test progam shows the 'normal, expected' behavior:

GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-cygwin --target=powerpc-rtems"...
Connected to the simulator.
Breakpoint 1 at 0xbb7c
Breakpoint 2 at 0xa274
Breakpoint 3 at 0x13afc: file ../../../../../../source/gcc-4.1-20060929/newlib/libc/stdlib/assert.c, line 57.
(gdb) run
Starting program: /opt/rtems-tools-4.7/powerpc-rtems/psim/lib/rtems-4.7/tests/hello.exe 

*** HELLO WORLD TEST ***
Hello World
*** END OF HELLO WORLD TEST ***
Program exited normally.
(gdb) quit


Any Ideas?
Sincerely
Avy Strominger
astominger at yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20070103/90a4f711/attachment.html>


More information about the users mailing list