https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64839
Bug ID: 64839 Summary: libsanitizer shouldn't require <rpc/xdr.h> Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl 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 glibc stopped installing rpc headers by default back in 2011: versions 2.14 and 2.15 never install them, versions 2.16 and higher require the configuration option --enable-obsolete-rpc. Most distros still install the headers for backwards compatibility, but on systems that use default glibc, building libsanitizer, and thus GCC, fails with ../../../../gcc/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:134:21: fatal error: rpc/xdr.h: No such file or directory Given that libsanitizer doesn't actually use anything from the header other than as a sanity check, the build shouldn't fail if the header is missing. GCC is configured with ../gcc/configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --prefix=$HOME/gcc-run --enable-languages=c,c++ and re-checked today with sources from: commit 31aebeec4f215f444c96c0dbc333c4eff3f7809a Author: ienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed Jan 28 11:46:44 2015 +0000 Version 4.9.2 builds just fine.