Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* MinGW build failure for GDB 8.2.90 with source-highlight
@ 2019-03-07 14:36 Eli Zaretskii
  2019-03-07 16:59 ` Simon Marchi
  2019-03-11 14:18 ` Eli Zaretskii
  0 siblings, 2 replies; 15+ messages in thread
From: Eli Zaretskii @ 2019-03-07 14:36 UTC (permalink / raw)
  To: gdb-patches

I've rebuilt the 8.2.90 pretest today on MinGW with source-highlight,
and the link step failed with this error message:

       CXXLD  gdb.exe
     d:/usr/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: source-cache.o: in function `ZNSt13basic_filebufIcSt11char_traitsIcEED4Ev':
     d:/usr/lib/gcc/mingw32/6.3.0/include/c++/fstream:239: undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::rpl_close()'
     d:/usr/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: source-cache.o: in function `ZNSt14basic_ifstreamIcSt11char_traitsIcEE8rpl_openEPKcSt13_Ios_Openmode':
     d:/usr/lib/gcc/mingw32/6.3.0/include/c++/fstream:597: undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::rpl_open(char const*, std::_Ios_Openmode)'
     d:/usr/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: source-cache.o: in function `ZNSt13basic_filebufIcSt11char_traitsIcEED4Ev':
     d:/usr/lib/gcc/mingw32/6.3.0/include/c++/fstream:239: undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::rpl_close()'
     collect2.exe: error: ld returned 1 exit status
     Makefile:1888: recipe for target `gdb.exe' failed
     make[2]: *** [gdb.exe] Error 1
     make[2]: Leaving directory `/d/usr/eli/utils/gdb-8.2.90/gdb'
     Makefile:8831: recipe for target `all-gdb' failed
     make[1]: *** [all-gdb] Error 2
     make[1]: Leaving directory `/d/usr/eli/utils/gdb-8.2.90'
     Makefile:856: recipe for target `all' failed
     make: *** [all] Error 2

The rpl_open and rpl_close thingies come from Gnulib: in the MinGW
build it replaces 'open' and 'close' with its versions by using
#define.  Then when we include <fstream> in source-cache.c, the C++
compiler barfs.

Is this a Gnulib bug that I should report to its developers, or is
this our problem?  Perhaps we should simply #undef these two symbols
before including <fstream>?


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2019-03-12 17:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-07 14:36 MinGW build failure for GDB 8.2.90 with source-highlight Eli Zaretskii
2019-03-07 16:59 ` Simon Marchi
2019-03-07 17:11   ` Pedro Alves
2019-03-07 18:09     ` Simon Marchi
2019-03-07 18:20       ` Pedro Alves
2019-03-07 18:24         ` Simon Marchi
2019-03-07 20:29         ` Eli Zaretskii
2019-03-07 20:13   ` Eli Zaretskii
2019-03-11 14:18 ` Eli Zaretskii
2019-03-12  2:31   ` Simon Marchi
2019-03-12 10:52     ` Pedro Alves
2019-03-12 13:43       ` Simon Marchi
2019-03-12 15:49     ` Eli Zaretskii
2019-03-12 16:29       ` Simon Marchi
2019-03-12 17:53         ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox