http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54281
Bug #: 54281 Summary: [4.8 Regression] Fails to bootstrap with --disable-nls Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: rgue...@gcc.gnu.org With --disable-nls intl.h does #ifdef ENABLE_NLS #include <libintl.h> extern void gcc_init_libintl (void); extern size_t gcc_gettext_width (const char *); #else /* Stubs. */ # undef textdomain # define textdomain(domain) (domain) # undef bindtextdomain # define bindtextdomain(domain, directory) (domain) # undef gettext # define gettext(msgid) (msgid) which wrecks an included libintl.h: extern char *(__const char *__msgid) throw () __attribute__ ((__format_arg__ (1))); and g++ rightfully complains. We end up including libintl.h through gcc/double-int.h #include <gmp.h> #include <iosfwd> (here from GCC 4.1) #include <bits/c++locale.h> #include <libintl.h>