This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH][PR build/23568] Fix gdb-7.12.1 MinGW/MSYS build issue
On 08/29/2018 05:24 PM, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
>
>>> And I know, the MinGW/MSYS original project is maintained but almost
>>> deprecated in favour of MinGW-w64/MSYS2 project. But I really need XP
>>> support for my needs.
>>> I proposed this patch because it's really simple and not intrusive,
>>> but you're right, how many people uses that old MinGW/MSYS project?
>
> Simon> If the missing definition is indeed a mingw bug, but there is really
> Simon> no way of getting a new mingw release with that fixed because the
> Simon> project is unmaintained (but still useful to some people), I would not
> Simon> be against a patch like what you proposed. I would however add a
> Simon> clear comment for why this is needed, so that if some day we
> Simon> officially decide not to support this mingw, we can remove it.
>
> Also, is there any downside to the original patch?
> If not then I think we might as well accept it, subject to Simon's
> request here.
AFAICT, we don't know for sure whether it's necessary on the master
branch. The issue reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=23583>
seems similar, but the patch will not fix it, making it pointless on its own.
It's possible that identifying a fix for the gnulib side may reveal
a different fix for the gdb side accordingly.
SiZiOUS can you try building the git master branch, or a recent
snapshot? See:
https://sourceware.org/gdb/current/
For example:
ftp://sourceware.org/pub/gdb/snapshots/current/gdb-8.2.50.20180829.tar.xz
The best would be current git master (or wait for a snapshot tomorrow),
because we just updated the gnulib copy in our tree.
Also, why do we need the #ifndef? Would unconditionally
include winerr.h cause problems?
Thanks,
Pedro Alves