https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111141
Bug ID: 111141 Summary: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: etienne_lorrain at yahoo dot fr Target Milestone: --- On Ubuntu 22.04.3 LTS,Compiling gcc-13.2.0 by: wget https://ftp.gnu.org/gnu/gcc/gcc-13.2.0/gcc-13.2.0.tar.xz tar xf gcc-13.2.0.tar.xz cd gcc-13.2.0/ ./contrib/download_prerequisites cd .. mkdir gcc_build cd gcc_build ../../gcc-13.2.0/configure --enable-languages=c,c++,fortran time make -j 32 Fails with: In file included from /usr/include/bits/errno.h:26, from /usr/include/errno.h:28, from ../../../../gcc-13.2.0/libgcc/../gcc/tsystem.h:93, from ../../../../gcc-13.2.0/libgcc/generic-morestack.c:32: /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: No such file or directory 1 | #include <asm/errno.h> | ^~~~~~~~~~~~~ compilation terminated. make[5]: *** [../../../../gcc-13.2.0/libgcc/shared-object.mk:14: generic-morestack.o] Error 1 make[5]: Leaving directory '/home/etienne/aaa/gcc_build/x86_64-pc-linux-gnu/32/libgcc' make[4]: *** [Makefile:1214: multi-do] Error 1 make[4]: Leaving directory '/home/etienne/aaa/gcc_build/x86_64-pc-linux-gnu/libgcc' make[3]: *** [Makefile:127: all-multi] Error 2 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/home/etienne/aaa/gcc_build/x86_64-pc-linux-gnu/libgcc' make[2]: *** [Makefile:24671: all-stage1-target-libgcc] Error 2 make[2]: Leaving directory '/home/etienne/aaa/gcc_build' make[1]: *** [Makefile:30190: stage1-bubble] Error 2 make[1]: Leaving directory '/home/etienne/aaa/gcc_build' make: *** [Makefile:1088: all] Error 2 real 1m7.737s user 8m1.657s sys 1m2.220s Host compiler being: $ /usr/bin/gcc --version gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 We do have on host a file: /usr/include/asm-generic/errno.h At some point the "-generic" part was modified by default creating a link "asm -> asm-target", but I am not sure now that 64 bits compiler been able to compile 32 bits, the -generic has or not changed meaning... In short I am not sure that is a GCC bug or a Ubuntu bug...