This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Oh dear. I regret to inform you that commit 7a9dac5b3cc3b50f9733deef0a606c28b099ed1f might be unfortunate [gdb-8.1-branch]
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-buildbot at sergiodj dot net
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 5 Jan 2018 11:25:40 +0400
- Subject: Re: Oh dear. I regret to inform you that commit 7a9dac5b3cc3b50f9733deef0a606c28b099ed1f might be unfortunate [gdb-8.1-branch]
- Authentication-results: sourceware.org; auth=none
- References: <7a9dac5b3cc3b50f9733deef0a606c28b099ed1f-gdb-8.1-branch-breakage@gdb-build>
> It is a matter of great regret and sadness to inform you that commit:
>
> Set development mode to "off" by default.
> 7a9dac5b3cc3b50f9733deef0a606c28b099ed1f
>
> might have made GDB unwell. Since I am just your Butler BuildBot,
> I kindly ask that a human superior officer double-check this.
>
> Please note that if you are reading this message on gdb-patches, there might
> be other builders broken.
The patch controls the configure variab1e "development". Looking
at the configure.ac script, I found that the selftest tests
are only activated when it is set:
if $development; then
AC_DEFINE(GDB_SELF_TEST, 1,
[Define if self-testing features should be enabled])
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS)"
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS)"
fi
I assume the error is related to the above, since it's a link
failure related to selftests...
| [...]
| ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a -L./../zlib -lz ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -ldl -ldl -lncursesw -lm -ldl -lguile-2.0 -lgc -lpthread -ldl -lutil -lm -lpython2.7 -lexpat -llzma -lbabeltrace -lbabeltrace-ctf -lipt ../libiberty/libiberty.a build-gnulib/import/libgnu.a -ldl -Wl,--dynamic-list=../../binutils-gdb/gdb/proc-service.list
| selftest.o: In function `selftests::run_tests(char const*)':
| /home/gdb-buildbot-2/fedora-x86-64-4/fedora-x86-64/build/gdb/../../binutils-gdb/gdb/common/selftest.c:97: undefined reference to `selftests::reset()'
| collect2: error: ld returned 1 exit status
I think re-starting the build from scratch will make the problem
disappear.
--
Joel