Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 827824

Summary: cross-x86_64-w64-mingw32/gcc-11.2.0: fatal error: sys/mman.h: No such file or directory
Product: Gentoo Linux Reporter: James Beddek <telans>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: CONFIRMED ---    
Severity: normal CC: proteuss, sam, toolchain
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100289
See Also: https://bugs.gentoo.org/show_bug.cgi?id=617766
https://bugs.gentoo.org/show_bug.cgi?id=843989
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: cross-x86_64-w64-mingw32-info.log
cross-x86_64-w64-mingw32-gcc-stage1.log.xz
gcc-config.logs.tar.xz

Description James Beddek 2021-11-29 07:29:55 UTC
Created attachment 756978 [details]
cross-x86_64-w64-mingw32-info.log

In file included from /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-11.2.0/work/gcc-11.2.0/libgcc/libgcov-merge.c:26:
/var/tmp/portage/cross-x86_64-w64-mingw32/gcc-11.2.0/work/gcc-11.2.0/libgcc/libgcov.h:49:10: fatal error: sys/mman.h: No such file or directory
   49 | #include <sys/mman.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:921: _gcov_merge_add.o] Error 1
Comment 1 James Beddek 2021-11-29 07:30:52 UTC
Created attachment 756979 [details]
cross-x86_64-w64-mingw32-gcc-stage1.log.xz
Comment 2 James Beddek 2021-11-29 07:31:44 UTC
Created attachment 756980 [details]
gcc-config.logs.tar.xz
Comment 3 Tee KOBAYASHI 2021-12-01 00:42:10 UTC
FYI, my emerge.log says that stage1 cross-x86_64-w64-mingw32/gcc-11.1.0 was successfully built on my environment (on Jun 10, 2021).

I would recommend you try again with more default-ish USE flags. Or at least with USE=-lto.
Comment 4 James Beddek 2021-12-01 00:46:00 UTC
I've since removed 'lto pgo' from the USE flags, and it still fails for 11.2.0. This is just a bootstrapping failure as known in the upstream bug. Bootstrapping succeeds for 10.3.0-r2, but I'm running into another old bug: https://bugs.gentoo.org/827923 https://bugs.gentoo.org/513706

Cheers