http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53898
Bug #: 53898
Summary: [4.8 regression] bootstrap failure:
graphite-optimize-isl.c: ISO C forbids an empty
translation unit
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: [email protected]
ReportedBy: [email protected]
Attempting to bootstrap gcc-4.8-20120708 on x86_64-linux with
--disable-build-poststage1-with-cxx and no cloog installed fails for me with:
/mnt/scratch/objdir48/./prev-gcc/xgcc -B/mnt/scratch/objdir48/./prev-gcc/
-B/mnt/scratch/install48/x86_64-unknown-linux-gnu/bin/
-B/mnt/scratch/install48/x86_64-unknown-linux-gnu/bin/
-B/mnt/scratch/install48/x86_64-unknown-linux-gnu/lib/ -isystem
/mnt/scratch/install48/x86_64-unknown-linux-gnu/include -isystem
/mnt/scratch/install48/x86_64-unknown-linux-gnu/sys-include -c -g -O2
-gtoggle -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -I.
-I/mnt/scratch/gcc-4.8-20120708/gcc -I/mnt/scratch/gcc-4.8-20120708/gcc/.
-I/mnt/scratch/gcc-4.8-20120708/gcc/../include
-I/mnt/scratch/gcc-4.8-20120708/gcc/../libcpp/include
-I/home/mikpe/pkgs/linux-x86_64/gmp-5.0.5/include
-I/home/mikpe/pkgs/linux-x86_64/mpfr-3.1.1/include
-I/home/mikpe/pkgs/linux-x86_64/mpc-0.9/include
-I/mnt/scratch/gcc-4.8-20120708/gcc/../libdecnumber
-I/mnt/scratch/gcc-4.8-20120708/gcc/../libdecnumber/bid -I../libdecnumber
/mnt/scratch/gcc-4.8-20120708/gcc/graphite-optimize-isl.c -o
graphite-optimize-isl.o
/mnt/scratch/gcc-4.8-20120708/gcc/graphite-optimize-isl.c:471:0: error: ISO C
forbids an empty translation unit [-Werror=pedantic]
#endif
^
cc1: all warnings being treated as errors
make[3]: *** [graphite-optimize-isl.o] Error 1
make[3]: Leaving directory `/mnt/scratch/objdir48/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/mnt/scratch/objdir48'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/mnt/scratch/objdir48'
make: *** [bootstrap] Error 2
This is a regression from 4.8-20120701 which bootstrapped fine.
Apart from the standard preamble all of graphite-optimize-isl.c is inside an
#ifdef HAVE_cloog. I would suggest either not compiling this file at all when
!HAVE_cloog, or to drop -Werror when compiling it.
For now I'm resuming my build with an
#else
int this_is_silly;
inserted before the trailing #endif.