Bug 177687

Summary: gdb gets installed but does not know the EABI version if world is compiled with clang.
Product: Base System Reporter: rz-rpi03
Component: armAssignee: freebsd-arm (Nobody) <freebsd-arm>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: gonzo
Priority: Normal    
Version: 10.0-CURRENT   
Hardware: Any   
OS: Any   

Description rz-rpi03 2013-04-07 10:50:00 UTC
Invoking gdb leads to an internal error:

# gdb telnet
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "armv6-marcel-freebsd"...
/home/rpi/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/arm-tdep.c:2589: internal-error: arm_elf_osabi_sniffer: Unknown ARM EABI version 0x5000000
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

/home/rpi/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/arm-tdep.c:2589: internal-error: arm_elf_osabi_sniffer: Unknown ARM EABI version 0x5000000
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
#

Kernel and world are build on a i386 9.1-STABLE revision 248965 with:

make -C $SRCROOT -DWITH_ARM_EABI kernel-toolchain
make -C $SRCROOT MALLOC_PRODUCTION=yes -DWITH_ARM_EABI buildworld
make -C $SRCROOT KERNCONF=$KERNCONF WITH_FDT=yes -DWITH_ARM_EABI buildkernel

KERNCONF is RPI-B with serial console enabled (RPI-Bsc).

clang is FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221

How-To-Repeat: Build a system like mentioned in the description and invoke dgb.
Comment 1 rz-rpi03 2013-04-25 01:16:51 UTC
The problem is fixed since r249603.

Ralf