Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890636 - sys-devel/gcc-12.2.1_p20221231 fails during bootstrap stage 2: cannot find bits/libc-header-start.h
Summary: sys-devel/gcc-12.2.1_p20221231 fails during bootstrap stage 2: cannot find bi...
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
Depends on:
Reported: 2023-01-13 09:38 UTC by Bob Dröge
Modified: 2023-01-13 10:05 UTC (History)
2 users (show)

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

GCC build logs (gcc-build-logs.tar.xz,96.19 KB, application/x-xz)
2023-01-13 09:39 UTC, Bob Dröge

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Dröge 2023-01-13 09:38:32 UTC
I'm trying to do a Prefix bootstrap on a Starfive VisionFive 2 (RISC-V), and during the 2nd stage the build of sys-devel/gcc-12.2.1_p20221231 fails due to:

In file included from /nvme/gentoo/tmp/var/tmp/portage/sys-devel/gcc-12.2.1_p20221231/work/gcc-12-20221231/libgcc/../gcc/tsystem.h:87,
                 from /nvme/gentoo/tmp/var/tmp/portage/sys-devel/gcc-12.2.1_p20221231/work/gcc-12-20221231/libgcc/libgcc2.c:27:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
   27 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

The file is available (on the host, at least; I don't know if it should be somewhere in the Prefix build dir?) in:

Reproducible: Always
Comment 1 Bob Dröge 2023-01-13 09:39:11 UTC
Created attachment 848348 [details]
GCC build logs