Discussion:
[Bug build/23067] New: gdb/regcache.c:1791:52: error: ‘bfd_mach_sh5’ was not declared in this scope
dilyan.palauzov at aegee dot org
2018-04-16 09:08:40 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23067

Bug ID: 23067
Summary: gdb/regcache.c:1791:52: error: ‘bfd_mach_sh5’ was not
declared in this scope
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: dilyan.palauzov at aegee dot org
Target Milestone: ---

Most recent binutils-gdb.git code fails compiling with:

make[2]: Leaving directory '/root/binutils/sim'
make[2]: Entering directory '/root/binutils/gdb'
CONFIG_HEADERS=config.h:config.in \
CONFIG_COMMANDS="default depdir" \
CONFIG_FILES= \
CONFIG_LINKS= \
/bin/sh config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
config.status: executing depdir commands
make[3]: Entering directory '/root/binutils/gdb'
make[4]: Entering directory '/root/binutils/gdb/build-gnulib'
make[5]: Entering directory '/root/binutils/gdb/build-gnulib'
make[6]: Entering directory '/root/binutils/gdb/build-gnulib/import'
make all-recursive
make[7]: Entering directory '/root/binutils/gdb/build-gnulib/import'
make[8]: Entering directory '/root/binutils/gdb/build-gnulib/import'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/root/binutils/gdb/build-gnulib/import'
make[7]: Leaving directory '/root/binutils/gdb/build-gnulib/import'
make[6]: Leaving directory '/root/binutils/gdb/build-gnulib/import'
make[5]: Leaving directory '/root/binutils/gdb/build-gnulib'
make[4]: Leaving directory '/root/binutils/gdb/build-gnulib'
make[3]: Leaving directory '/root/binutils/gdb'
CXX regcache.o
/git/binutils-gdb/gdb/regcache.c: In function ‘void
selftests::cooked_write_test(gdbarch*)’:
/git/binutils-gdb/gdb/regcache.c:1791:52: error: ‘bfd_mach_sh5’ was not
declared in this scope
&& gdbarch_bfd_arch_info (gdbarch)->mach == bfd_mach_sh5
^~~~~~~~~~~~
/git/binutils-gdb/gdb/regcache.c:1791:52: note: suggested alternative:
‘bfd_mach_sh’
&& gdbarch_bfd_arch_info (gdbarch)->mach == bfd_mach_sh5
^~~~~~~~~~~~
bfd_mach_sh
make[2]: *** [Makefile:1615: regcache.o] Error 1
make[2]: Leaving directory '/root/binutils/gdb'
make[1]: *** [Makefile:10439: all-gdb] Error 2
make[1]: Leaving directory '/root/binutils'
make: *** [Makefile:850: all] Error 2

binutils is ./configure'd with
export CFLAGS="-O3 -pipe"
export CXXFLAGS="-O3 -pipe"
export LDFLAGS="-Wl,-O1,-s -fuse-ld=gold"
/git/binutils-gdb/configure --enable-threads --with-system-zlib
--with-system-readline --with-python=/usr/local/bin/python3
--enable-compressed-debug-sections=gold,ld --enable-gold

using 7.3.1 20180406
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-04-19 09:22:59 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23067

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |tromey at sourceware dot org
Resolution|--- |FIXED
Target Milestone|--- |8.2

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I think this was fixed here:

https://sourceware.org/ml/gdb-patches/2018-04/msg00309.html
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...