Package: gprbuild
Version: 1.2.0-3
Severity: normal

Hello. The following session illustrates the bug. I guess it concerns
gprbuild and not gtkada, since gnatmake compiles. Removing any line in
any file avoids the crash.

$ cat example.gpr
with "gtkada2";
project Example is
  for Main use ("hello.adb");
  package Builder is
     for Default_Switches ("Ada") use
       (
        "-s"                      --  recompile if flags changed
       );
  end Builder;
end Example;
$ cat hello.adb
with Gdk.Event;
procedure Hello is
begin
   null;
end Hello;
$ gprbuild example.gpr
creating auto.cgpr
gcc-4.4 -c hello.adb -o hello.o

Execution terminated by unhandled exception
Exception name: ADA.IO_EXCEPTIONS.USE_ERROR
Message: s-fileio.adb:1012
Call stack traceback locations:
0x7f1d764757da 0x7f1d763abc65 0x4d8c2b 0x4e4a3a 0x407168 0x7f1d75ce1abb 0x4068d7
$ gnatmake -P example.gpr
gcc-4.4 -c -I- -gnatA /tmp/examples/tutorial/helloworld/bug/hello.adb
gnatbind -shared -I- -x /tmp/examples/tutorial/helloworld/bug/hello.ali
gnatlink /tmp/examples/tutorial/helloworld/bug/hello.ali -shared-libgcc 
-L/usr/lib -lgtkada2 -o /tmp/examples/tutorial/helloworld/bug/hello

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gprbuild depends on:
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  libgcc1                       1:4.4.2-9  GCC support library
ii  libgnat-4.4                   4.4.3-1    Runtime library for GNU Ada applic
ii  libxmlada3.2                  3.2-4      XML/Ada, a full XML suite for Ada 

Versions of packages gprbuild suggests:
ii  g++-4.4                       4.4.2-9    The GNU C++ compiler
ii  gcc-4.4                       4.4.2-9    The GNU C compiler
pn  gfortran-4.4                  <none>     (no description available)
ii  gnat-4.4                      4.4.3-1    The GNU Ada compiler
ii  gprbuild-doc                  1.2.0-3    a multi-language extensible build 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to