On Sun, 11 Nov 2018, Fredrik Noring wrote: > ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:71:1: > note: in expansion of macro ‘COMPILER_CHECK’ > 71 | COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat)); > | ^~~~~~~~~~~~~~
I guess `struct_kernel_stat_sz' and `sizeof(struct stat)' do not match. You may try making a preprocessed source with the same GCC invocation (possibly with `-dD' added if needed) to see how these items have been defined in your build environment. This may reveal something obvious. Also unless you realise the problem is due to misconfiguration, please file it in GCC bugzilla as a GCC 9 regression (since as you say 8.2.0 builds just fine in your environment). We don't want things to break with new releases. Maciej