https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86630
Bug ID: 86630 Summary: gcc/graphite.c build failure on AIX 5.2 and 5.3 Product: gcc Version: 5.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: bugzilla-gcc at thewrittenword dot com Target Milestone: --- I tried building gcc-5.5.0 on AIX 5.2 and 5.3 as follows: $ gtar Jxf gcc-5.5.0.tar.xz $ cd gcc-5.5.0 $ mkdir .obj $ cd .obj $ PATH=/opt/TWWfsw/gcc49/bin:$PATH /opt/fsw/bash42/bin/bash \ ../configure SHELL=/opt/fsw/bash42/bin/bash \ CONFIG_SHELL=/opt/fsw/bash42/bin/bash LDR_CNTRL=MAXDATA=0x70000000 \ LDFLAGS="-Wl,-brtl -Wl,blibpath:/opt/TWWfsw/libisl016/lib:\ /opt/TWWfsw/libgmp61/lib:/opt/TWWfsw/libmpc10/lib:\ /opt/TWWfsw/libmpfr31/lib:/usr/lib" --enable-nls \ --with-included-gettext --enable-shared --enable-threads \ --enable-languages="c,c++,fortran,lto" --with-gmp=/opt/TWWfsw/libgmp61 \ --with-isl=/opt/TWWfsw/libisl016 --with-mpc=/opt/TWWfsw/libmpc10 \ --with-mpfr=/opt/TWWfsw/libmpfr31 --with-local-prefix=/tmp/gcc5 \ --prefix=/tmp/gcc5 ... $ PATH=/opt/TWWfsw/gcc49/bin:$PATH LDR_CNTRL=MAXDATA=0x70000000 \ SHELL=/opt/fsw/bin/bash CONFIG_SHELL=/opt/fsw/bin/bash gmake ... The build failed with the following: g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I/opt/build/china/gcc-5.5.0/gcc -I/opt/build/china/gcc-5.5.0/gcc/. -I/opt/build/china/gcc-5.5.0/gcc/../include -I./../intl -I/opt/build/china/gcc-5.5.0/gcc/../libcpp/include -I/opt/TWWfsw/libgmp61/include -I/opt/TWWfsw/libmpfr31/include -I/opt/TWWfsw/libmpc10/include -I/opt/build/china/gcc-5.5.0/gcc/../libdecnumber -I/opt/build/china/gcc-5.5.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/build/china/gcc-5.5.0/gcc/../libbacktrace -I/opt/TWWfsw/libisl016/include -o graphite.o -MT graphite.o -MMD -MP -MF ./.deps/graphite.TPo /opt/build/china/gcc-5.5.0/gcc/graphite.c In file included from /opt/build/china/gcc-5.5.0/gcc/system.h:1116:0, from /opt/build/china/gcc-5.5.0/gcc/graphite.c:45: /opt/build/china/gcc-5.5.0/gcc/wide-int.h: In member function 'void generic_wide_int<T>::dump() const': /opt/build/china/gcc-5.5.0/gcc/hwint.h:110:38: error: expected ')' before 'PRIx64' #define HOST_WIDE_INT_PRINT_HEX "%#" PRIx64 ^ /opt/build/china/gcc-5.5.0/gcc/wide-int.h:870:22: note: in expansion of macro 'HOST_WIDE_INT_PRINT_HEX' fprintf (stderr, HOST_WIDE_INT_PRINT_HEX ",", val[len - 1 - i]); ^ /opt/build/china/gcc-5.5.0/gcc/hwint.h:110:38: error: expected ')' before 'PRIx64' #define HOST_WIDE_INT_PRINT_HEX "%#" PRIx64 ^ /opt/build/china/gcc-5.5.0/gcc/wide-int.h:871:20: note: in expansion of macro 'HOST_WIDE_INT_PRINT_HEX' fprintf (stderr, HOST_WIDE_INT_PRINT_HEX "], precision = %d\n", ^ gmake[3]: *** [graphite.o] Error 1 gmake[3]: Leaving directory `/opt/build/china/gcc-5.5.0/.obj/gcc'