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

Bug 890636

Summary: sys-devel/gcc-12.2.1_p20221231 fails during bootstrap stage 2: cannot find bits/libc-header-start.h
Product: Gentoo/Alt Reporter: Bob Dröge <b.e.droge>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: UNCONFIRMED ---    
Severity: normal CC: riscv, toolchain
Priority: Normal    
Version: unspecified   
Hardware: riscv   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: GCC build logs

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:
/usr/include/riscv64-linux-gnu/bits/libc-header-start.h


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