When building with gdb on MinGW64 with simulators enabled, I get the following warning: ../../gdb-13.2/sim/m32c/opc2c.c: In function 'main': ../../gdb-13.2/sim/m32c/opc2c.c:541:10: warning: implicit declaration of function 'getline' [-Wimplicit-function-declaration] 541 | while (getline (&linebuf, &len, in) >= 0) | ^~~~~~~ And it fails to link: ld.exe: m32c/opc2c.o:opc2c.c:(.text.startup+0x123): undefined reference to `getline' collect2.exe: error: ld returned 1 exit status make[1]: *** [Makefile:3343: m32c/opc2c.exe] Error 1
Reported initially in https://sourceware.org/bugzilla/show_bug.cgi?id=28476. Still present in 13.2.
the top-level configurey already supports building subdirs for the --build system. so i posted some patches to leverage that and link them in to our build-time tools. https://sourceware.org/pipermail/gdb-patches/2023-October/203256.html https://sourceware.org/pipermail/gdb-patches/2023-October/203257.html https://sourceware.org/pipermail/gdb-patches/2023-October/203258.html
As of 14.1, this is still broken.