Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827824 - cross-x86_64-w64-mingw32/gcc-11.2.0: fatal error: sys/mman.h: No such file or directory
Summary: cross-x86_64-w64-mingw32/gcc-11.2.0: fatal error: sys/mman.h: No such file or...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-11-29 07:29 UTC by James Beddek
Modified: 2022-05-13 06:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cross-x86_64-w64-mingw32-info.log (cross-x86_64-w64-mingw32-info.log,18.62 KB, text/plain)
2021-11-29 07:29 UTC, James Beddek
Details
cross-x86_64-w64-mingw32-gcc-stage1.log.xz (cross-x86_64-w64-mingw32-gcc-stage1.log.xz,46.69 KB, application/x-xz)
2021-11-29 07:30 UTC, James Beddek
Details
gcc-config.logs.tar.xz (gcc-config.logs.tar.xz,57.27 KB, application/x-xz)
2021-11-29 07:31 UTC, James Beddek
Details

Note You need to log in before you can comment on or make changes to this bug.
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