]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
fix the framework error
authorAlan Modra <amodra@gmail.com>
Tue, 30 Jul 2024 22:32:24 +0000 (08:02 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 31 Jul 2024 01:13:05 +0000 (10:43 +0930)
commit52ff9e9d54d1f528eb7645706bb3a67fc535050b
tree7cdc4a8bcfe54766fd50efd7834b2da40383593f
parent762f95fdc65f9fb138d77bed44d77b8fd947dc44
fix the framework error

Running the testsuite for an x86_64-w64-mingw32 target using the
Ubuntu package gcc-mingw-w64-x86-64 version 13.2.0-6ubuntu1+26.1
results in a number of messages:
ERROR: can't decipher gcc version number, fix the framework!

Someone in their wisdom decided this compiler should advertise itself
with a version of 13-win32, breaking the ld testsuite version checks.
(It is also configured using --with-as=/usr/bin/x86_64-w64-mingw32-as
--with-ld=/usr/bin/x86_64-w64-mingw32-ld which renders the -B flag
inoperative for testing the newly built gas and ld.  You'd need to
install binutils over the top of the Ubuntu versions before testing, a
rather unsatisfactory process.)

* testsuite/lib/ld-lib.exp (at_least_gcc_version): Use
preprocessor test of __GNUC__ and __GNUC_MINOR__ rather than
output of gcc --version.  Correct removal of -Wl options.
ld/testsuite/lib/ld-lib.exp