Source: gprbuild
Severity: important

Hello, here are the symptoms visible in the buildd log of libgnatcoll on
kfreebsd-i386, which I could reproduce in a virtual box:

gprbuild -v -j4 -R -v -eS "-XADAFLAGS=-g -O2 -fstack-protector-strong" 
"-XCFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" 
"-XCPPFLAGS=-D_FORTIFY_SOURCE=2" "-XLDFLAGS\
=-Wl,-z,relro -Wl,--as-needed -Wl,-z,defs" -XGNATCOLL_VERSION=1.6 
-XGNATCOLL_PYTHON_VERSION=1.6 -XGNATCOLL_ICONV_VERSION=1.6 
-XGNATCOLL_SQLITE_VERSION=1.6 -XGNATCOLL_READLINE_VERSION=1.6 -XG\
NATCOLL_GMP_VERSION=1.6 -XGNATCOLL_GTK_VERSION=1.6 -XLIBRARY_TYPE=static 
-Pgnatcoll_build -p
GPRBUILD 2014 (unknown)  (i586-kfreebsd-gnu)
Copyright (C) 2004-2014, Free Software Foundation, Inc.
gprconfig --batch -o /home/lbrenta/libgnatcoll-1.6gpl2014/src/obj/auto.cgpr 
--target=x86-freebsd --config=c,, --config=ada,,
gprbuild: could not create 
/home/lbrenta/libgnatcoll-1.6gpl2014/src/obj/auto.cgpr



Note how gprbuild passes --target=x86-freebsd to gprconfig.  I believe
this option is incorrect, it should be --target=i586-kfreebsd-gnu
instead.

Furthermore, gprconfig segfaults immediately even without any options
specified:

$ gdb $(which gprconfig)
Current directory is /usr/bin/
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-kfreebsd-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/gprconfig...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/gprconfig
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[tcsetpgrp failed in terminal_inferior: Operation not permitted]
[tcsetpgrp failed in terminal_inferior: Operation not permitted]
[tcsetpgrp failed in terminal_inferior: Operation not permitted]

Program received signal SIGSEGV, Segmentation fault.
0x08142453 in __gnat_backtrace ()
(gdb) bt
#0  0x08142453 in __gnat_backtrace ()
#1  0x08137f80 in system.traceback.call_chain ()
#2  0x080eeb4b in ada.exceptions.call_chain ()
#3  0x080eef3b in ada.exceptions.complete_occurrence ()
#4  0x080eef58 in ada.exceptions.complete_and_propagate_occurrence ()
#5  0x080eefa8 in __gnat_raise_exception ()
#6  0x08139ca1 in system.val_util.bad_value ()
#7  0x08138986 in system.val_int.scan_integer ()
#8  0x081389b5 in system.val_int.value_integer ()
#9  0x080d5437 in ?? ()
#10 0x080dffd2 in ?? ()
#11 0x0807b51f in ?? ()
#12 0x08077d88 in ?? ()
#13 0x28c89a63 in __libc_start_main (main=0x8077d30, argc=1, argv=0xbfbfd764, 
init=0x81459b0, fini=0x8145a20, rtld_fini=0x281bb3b0 <_dl_fini>, 
stack_end=0xbfbfd75c) at libc-start.c:287
#14 0x08077dea in ?? ()
(gdb) 


The segfault happens even when passing --target=i586-kfreebsd-gnu to
gprconfig.

This bug affects libgnatcoll on kfreebsd-i386, which FTBFS as a result.
This in turn prevents gnat-gps from building.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (10000, 'testing')
Architecture: amd64 (x86_64)

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


-- 
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