This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/22680] New: [8.1 Regression] undefined reference to `selftests::reset linking gdb


https://sourceware.org/bugzilla/show_bug.cgi?id=22680

            Bug ID: 22680
           Summary: [8.1 Regression] undefined reference to
                    `selftests::reset linking gdb
           Product: gdb
           Version: 8.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: doko at debian dot org
  Target Milestone: ---

the 20180106 snapshot from the 8.1 branch fails to build with:

selftest.o: In function `selftests::run_tests(char const*)':
./build/objdir/gdb/./gdb/common/selftest.c:97: undefined reference to
`selftests::reset()'
collect2: error: ld returned 1 exit status
Makefile:1923: recipe for target 'gdb' failed
make[3]: *** [gdb] Error 1
make[3]: Leaving directory
'/home/packages/gdb/gdb-8.0.90.20180106/build/objdir/gdb'
Makefile:8490: recipe for target 'all-gdb' failed
make[2]: *** [all-gdb] Error 2

gdb is configured as:

CFLAGS="-g -O2 -fdebug-prefix-map=/home/packages/gdb/gdb-8.0.90.20180106=.
-fstack-protector-strong -Wformat -Werror=format-security" CXXFLAGS="-g -O2
-fdebug-prefix-map=/home/packages/gdb/gdb-8.0.90.20180106=.
-fstack-protector-strong -Wformat -Werror=format-security"
CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-Bsymbolic-functions
-Wl,-z,relro" PYTHON="" /home/packages/gdb/gdb-8.0.90.20180106/./configure
--build=x86_64-linux-gnu --prefix=/usr --includedir="\${prefix}/include"
--mandir="\${prefix}/share/man" --infodir="\${prefix}/share/info"
--sysconfdir=/etc --localstatedir=/var --libexecdir="\${prefix}/lib/gdb"
--disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules
--host=x86_64-linux-gnu --disable-gdbtk --disable-shared
--with-pkgversion='Ubuntu 8.0.90.20180106-0ubuntu1'
--srcdir=/home/packages/gdb/gdb-8.0.90.20180106 --disable-readline
--with-system-readline --with-expat --with-system-zlib --without-lzma
--without-guile --without-babeltrace --disable-werror --with-babeltrace
--with-system-gdbinit=/etc/gdb/gdbinit --build=x86_64-linux-gnu --enable-tui
--with-lzma --with-python=python3

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]