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

            Bug ID: 106271
           Summary: Bootstrap on RISC-V on Ubuntu 22.04 LTS:
                    bits/libc-header-start.h: No such file or directory
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org
  Target Milestone: ---

I thought I would give the new gcc92 machine a spin and tried
bootstrapping gcc on it.

Configure was done with

../Gcc/configure --disable-multilib --prefix=$HOME
--enable-languages=c,c++,fortran

and the last few lines of output were

/home/tkoenig/trunk-bin/./gcc/xgcc -B/home/tkoenig/trunk-bin/./gcc/
-B/home/tkoenig/riscv64-unknown-linux-gnu/bin/
-B/home/tkoenig/riscv64-unknown-linux-gnu/lib/ -isystem
/home/tkoenig/riscv64-unknown-linux-gnu/include -isystem
/home/tkoenig/riscv64-unknown-linux-gnu/sys-include   -fno-checking -g -O2 -O2 
-g -O2 -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include  -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector  -fPIC -I. -I. -I../.././gcc -I../../../Gcc/libgcc
-I../../../Gcc/libgcc/. -I../../../Gcc/libgcc/../gcc
-I../../../Gcc/libgcc/../include  -DHAVE_CC_TLS   -o _ashrdi3.o -MT _ashrdi3.o
-MD -MP -MF _ashrdi3.dep -DL_ashrdi3 -c ../../../Gcc/libgcc/libgcc2.c
-fvisibility=hidden -DHIDE_EXPORTS
In file included from ../../../Gcc/libgcc/../gcc/tsystem.h:87,
                 from ../../../Gcc/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>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../Gcc/libgcc/../gcc/tsystem.h:87,
                 from ../../../Gcc/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.
compilation terminated.
In file included from ../../../Gcc/libgcc/../gcc/tsystem.h:87,
                 from ../../../Gcc/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.
make[3]: *** [Makefile:501: _negdi2.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:501: _lshrdi3.o] Error 1
make[3]: *** [Makefile:501: _ashldi3.o] Error 1
In file included from ../../../Gcc/libgcc/../gcc/tsystem.h:87,
                 from ../../../Gcc/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.
make[3]: *** [Makefile:501: _ashrdi3.o] Error 1

Reply via email to