https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68540
Bug ID: 68540 Summary: 6.0 build process broken on Linux Mint, potential include ordering problem Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mar...@mpa-garching.mpg.de Target Milestone: --- Currently, compiling trunk on Linux Mint 17.2 fails. I'm configuring with --disable-multilib --enable-gold --enable-plugins --disable-bootstrap --prefix=$DESTDIR --enable-languages=c++,fortran --enable-target=all --enable-checking=release, and "make" fails with g++ -fno-PIE -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/home/martin/gcc/gcc -I/home/martin/gcc/gcc/. -I/home/martin/gcc/gcc/../include -I/home/martin/gcc/gcc/../libcpp/include -I/home/martin/gcc/gcc/../libdecnumber -I/home/martin/gcc/gcc/../libdecnumber/bid -I../libdecnumber -I/home/martin/gcc/gcc/../libbacktrace -o graphite.o -MT graphite.o -MMD -MP -MF ./.deps/graphite.TPo /home/martin/gcc/gcc/graphite.c In file included from /usr/include/c++/4.8/bits/basic_ios.h:37:0, from /usr/include/c++/4.8/ios:44, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from /usr/include/isl/int.h:17, from /usr/include/isl/ctx.h:16, from /usr/include/isl/list.h:13, from /usr/include/isl/aff_type.h:4, from /usr/include/isl/local_space.h:4, from /usr/include/isl/constraint.h:13, from /home/martin/gcc/gcc/graphite.c:56: /usr/include/c++/4.8/bits/locale_facets.h:240:53: error: macro "toupper" passed 2 arguments, but takes just 1 toupper(char_type *__lo, const char_type* __hi) const ^ /usr/include/c++/4.8/bits/locale_facets.h:269:53: error: macro "tolower" passed 2 arguments, but takes just 1 tolower(char_type* __lo, const char_type* __hi) const ^ /usr/include/c++/4.8/bits/locale_facets.h:812:53: error: macro "toupper" passed 2 arguments, but takes just 1 toupper(char_type *__lo, const char_type* __hi) const ^ /usr/include/c++/4.8/bits/locale_facets.h:845:53: error: macro "tolower" passed 2 arguments, but takes just 1 tolower(char_type* __lo, const char_type* __hi) const [...] I manage to bootstrap successfully on other (homegrown) distributions, but since other gcc branches build OK, I suspect a problematic change on trunk regarding the inclusion order of headers.