In the line ~414 in gdbserver/Makefile.in which defines distclean targets, etc. Makefile was duplicated for removal, and config.cache is not in the list which makes the distclean not complete, and could confuse folloing configure run. maintainer-clean realclean distclean: clean rm -f Makefile config.status config.h stamp-h config.log rm -f Makefile
The master branch has been updated by Tom Tromey <tromey@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b7c9d393d60957b901418359d2cf5d276bcc5e4b commit b7c9d393d60957b901418359d2cf5d276bcc5e4b Author: Tom Tromey <tromey@adacore.com> Date: Tue Nov 16 09:11:41 2021 -0700 Remove config.cache in gdbserver's "distclean" PR gdb/28586 points out that "make distclean" fails to delete config.cache from gdbserver/. This patch fixes the bug, and removes a duplicate "Makefile" deletion that was also pointed out in the PR.
Thanks for the report. This is fixed now.