https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63958
Bug ID: 63958 Summary: [5 Regression] bootstrap failure in the sanitizer libs on sparc-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org seen with r217751 on the trunk libtool: compile: /«PKGBUILDDIR»/build/./gcc/xgcc -B/«PKGBUILDDIR»/build/./gcc/ -B/usr/lib/gcc-snapshot/sparc-linux-gnu/bin/ -B/usr/lib/gcc-snapshot/sparc-linux-gnu/lib/ -isystem /usr/lib/gcc-snapshot/sparc-linux-gnu/include -isystem /usr/lib/gcc-snapshot/sparc-linux-gnu/sys-include -DHAVE_CONFIG_H -I../../../../src/libatomic/config/posix -I../../../../src/libatomic -I. -Wall -Werror -pthread -g -O2 -m64 -MT init.lo -MD -MP -MF .deps/init.Tpo -c ../../../../src/libatomic/init.c -o init.o >/dev/null 2>&1 /«PKGBUILDDIR»/build/./gcc/xgcc -B/«PKGBUILDDIR»/build/./gcc/ -B/usr/lib/gcc-snapshot/sparc-linux-gnu/bin/ -B/usr/lib/gcc-snapshot/sparc-linux-gnu/lib/ -isystem /usr/lib/gcc-snapshot/sparc-linux-gnu/include -isystem /usr/lib/gcc-snapshot/sparc-linux-gnu/sys-include -c -g -O2 -fPIC -W -Wall -gnatpg -nostdinc a-wwboio.adb -o a-wwboio.o In file included from ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:40:0: /usr/include/sparc-linux-gnu/asm/stat.h:60:2: error: 'time_t' does not name a type time_t st_atime; ^ /usr/include/sparc-linux-gnu/asm/stat.h:62:2: error: 'time_t' does not name a type time_t st_mtime; ^ /usr/include/sparc-linux-gnu/asm/stat.h:64:2: error: 'time_t' does not name a type time_t st_ctime; ^ yes In file included from ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:20:0: ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:64:78: error: invalid application of 'sizeof' to incomplete type '__old_kernel_stat' COMPILER_CHECK(struct___old_kernel_stat_sz == sizeof(struct __old_kernel_stat)); ^ ../../../../src/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:272:65: note: in definition of macro 'IMPL_COMPILER_ASSERT' typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1] ^ ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:64:1: note: in expansion of macro 'COMPILER_CHECK' COMPILER_CHECK(struct___old_kernel_stat_sz == sizeof(struct __old_kernel_stat)); ^ ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:67:16: error: 'struct_kernel_stat_sz' was not declared in this scope COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat)); ^ ../../../../src/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:272:65: note: in definition of macro 'IMPL_COMPILER_ASSERT' typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1] ^ ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:67:1: note: in expansion of macro 'COMPILER_CHECK' COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat)); ^ checking for getrlimit... Makefile:447: recipe for target 'sanitizer_platform_limits_linux.lo' failed make[6]: *** [sanitizer_platform_limits_linux.lo] Error 1 make[6]: *** Waiting for unfinished jobs....