Re: Time for a MinGW-GDB Upgrade?
Eli Zaretskii <eliz-mXXj517/[email protected]> Thu, 16 Jul 2020 19:39:50 +0300
| Newsgroups | gmane.comp.gnu.mingw.user |
|---|---|
| Message-ID | <[email protected]> |
> From: Keith Marshall <[email protected]> > Date: Wed, 15 Jul 2020 21:10:29 +0100 > > In message > https://osdn.net/projects/mingw/lists/archive/users/2020-July/000584.html, > Eli Zaretskii indicated that, pursuant to resolution of an issue with > the build of GCC-9.2.0, (subsequently resolved), GDB can be readily > built with MinGW. FTR, I was building snapshots of what will shortly become GDB 10.1. > In file included from ../../src/gdb-9.2/bfd/archive.c:134: > ../../src/gdb-9.2/bfd/sysdep.h:185:11: fatal error: libintl.h: > No such file or directory > 185 | # include <libintl.h> > | ^~~~~~~~~~~ > compilation terminated. > > This arises because, rather than having libintl in my default GCC search > path, I have it in a /mingw staging path, whence my GCC build procedure > accesses it via a "--with-libintl-prefix=/mingw" configuration option. > > Given that GDB's configuration procedure has every appearance of being a > cobbled-together derivative of GCC's, I specified this same option in my > GDB configuration, but sadly, it has no effect! Maybe it's worth reporting to [email protected], as a potential bug. if the GDB developers have good reasons not to support this option, they will tell; otherwise I think it's reasonable to expect it be supported, given the common configuration machinery. > I can kludge around this GDB bug, by passing "CPPFLAGS=-I/mingw" through > the process environment[1], when running make: > > CPPFLAGS=-I/mingw make > > but the alternative, (and possibly more natural): > > make CPPFLAGS=-I/mingw > > does *not* work; in this latter case, CPPFLAGS does not propagate to the > subdirectory makefiles. I think the canonical ways of doing this is to set CPPFLAGS when running 'configure', i.e. CPPFLAGS=-I/mingw ./configure ... Did you try that? _______________________________________________ MinGW-Users mailing list [email protected] This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.osdn.me/mailman/listinfo/mingw-users Also: mailto:[email protected]?subject=unsubscribe