https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100289

--- Comment #25 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jan-Benedict Glaw from comment #21)
> But the basic question is: Should a first build pass --disable-gcov (glibc's
> failure to provide this) or should GCC detect that there's (not yet) no
> sys/mman.h (GCC problem)?

Given

#if HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif

the question is how we'd arrive at the conclusion that we have a sys/mman.h
and whether the test that did so used appropriate context.  The configure
from the attached log is the following, I'm not sure how --with-sysroot and
--without-headers --with-newlib interact.  The more interesting log file
would have been that of the libgcc (target) configure, the attached is for the
toplevel (host).

  $
/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/build/gcc-11.1.0/libgcc/configure
--srcdir=/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/build/gcc-11.1.0/libgcc
--cache-file=./config.cache --with-cross-host=x86_64-linux-gnu
--prefix=/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/toolchain
--bindir=/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/toolchain/bin
--sbindir=/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/toolchain/sbin
--sysconfdir=/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/toolchain/etc
--libexecdir=/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/toolchain/lib
--localstatedir=/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/toolchain/var
--disable-static --enable-shared
--with-sysroot=/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot
--with-zstd=/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/toolchain
--with-gnu-as --with-gnu-ld --enable-plugin --enable-lto --enable-gold
--enable-ld=default --with-linker-hash-style=gnu --disable-multilib
--disable-nls --enable-checking=release
--with-default-libstdcxx-abi=gcc4-compatible --without-ppl --without-cloog
--disable-libada --disable-libmudflap --disable-libatomic --disable-libitm
--disable-libquadmath --disable-libgomp --disable-libmpx --disable-libssp
--enable-__cxa_atexit --disable-libsanitizer --enable-cloog-backend=isl
--disable-shared --disable-threads --without-headers --with-newlib
--disable-decimal-float --enable-languages=c,lto
--program-transform-name=s&^&x86_64-libreelec-linux-gnu-&
--disable-option-checking --with-target-subdir=x86_64-libreelec-linux-gnu
--build=x86_64-linux-gnu --host=x86_64-libreelec-linux-gnu
--target=x86_64-libreelec-linux-gnu

Reply via email to