Building today's snapshot of GDB with MinGW

Eli Zaretskii
2020-06-29T18:27:45Z

At Joel's request I've built today's (29 June) snapshot of GDB using
mingw.org's MinGW and GCC 9.2.0. There are a few issues I bumped into
related to Gnulib and MinGW runtime (which I recently upgraded to a
newer version), and I'm still working on those. So what's below is an
interim report of issues related to GDB itself:

1. The configure script doesn't allow --with-static-standard-libraries
when GDB is built with source-highlight. Is this limitation going to
stay (and if so, why), or could it be lifted? (I needed to hack the
configure script to get past the error message.)

2. Building in libctf produces the same errors I reported back in
February for GDB 9.1. I thought the libctf developer fixed them
up-stream (or was I dreaming?), so why isn't the fix in our
repository? I fixed those exactly as I fixed them for GDB 9.1.

3. "make TAGS" in the gdb/ directory fails because HFILES_NO_SRCDIR
includes files that no longer exist: gdb_select.h and
tui/tui-windata.h. Once these are removed from the list, TAGS is
built.

4. Running "maint selftests" produces several warnings and failures:

warning: A handler for the OS ABI "Windows" is not built into this configuration of GDB. Attempting to continue with the default i386:x86-64 settings.
warning: A handler for the OS ABI "Windows" is not built into this configuration of GDB. Attempting to continue with the default i386:x64-32 settings.
warning: A handler for the OS ABI "Windows" is not built into this configuration of GDB. Attempting to continue with the default i8086 settings.
warning: A handler for the OS ABI "Windows" is not built into this configuration of GDB. Attempting to continue with the default i386:x86-64:intel settings.
warning: A handler for the OS ABI "Windows" is not built into this configuration of GDB. Attempting to continue with the default i386:x64-32:intel settings.
warning: A handler for the OS ABI "Windows" is not built into this configuration of GDB. Attempting to continue with the default i386:x86-64:nacl settings.
warning: A handler for the OS ABI "Windows" is not built into this configuration of GDB. Attempting to continue with the default i386:x64-32:nacl settings.
Self test failed: self-test failed at unittests/format_pieces-selftests.c:37
Self test failed: self-test failed at utils.c:2971
Self test failed: arch i386:x86-64: Cannot access memory at address 0x0
Self test failed: arch i386:x64-32: Cannot access memory at address 0x0
Self test failed: arch i386:x86-64:intel: Cannot access memory at address 0x0
Self test failed: arch i386:x64-32:intel: Cannot access memory at address 0x0
Self test failed: arch i386:x86-64:nacl: Cannot access memory at address 0x0
Self test failed: arch i386:x64-32:nacl: Cannot access memory at address 0x0
Self test failed: self-test failed at selftest-arch.c:85
warning: Could not recognize version of Intel Compiler in: "Intel(R) foo bar"
Self test failed: Could not convert character to `UTF-8' character set
Self test failed: self-test failed at unittests/scoped_fd-selftests.c:80

Is this something I should investigate? (I have never before run
selftests in the MinGW build, so I have no "prior art" to compare
with.)

That's all for now. HTH.