https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109709
--- Comment #3 from Manuel Jacob <me at manueljacob dot de> --- (In reply to Richard Biener from comment #1) > Huh, can you post how it fails? if [ -d ../prev-gcc ]; then \ cd ../prev-gcc && \ make real-install-headers-tar DESTDIR=`pwd`/../gcc/ \ libsubdir=. ; \ else \ set -e; for ml in `cat fixinc_list`; do \ sysroot_headers_suffix=`echo ${ml} | sed -e 's/;.*$//'`; \ multi_dir=`echo ${ml} | sed -e 's/^[^;]*;//'`; \ fix_dir=include-fixed${multi_dir}; \ if ! false && test ! -d `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`; then \ echo The directory that should contain system headers does not exist: >&2 ; \ echo " `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`" >&2 ; \ tooldir_sysinc=`echo "/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.0/../../../../x86_64-pc-linux-gnu/sys-include" | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`; \ if test "x`echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`" = "x${tooldir_sysinc}"; \ then sleep 1; else exit 1; fi; \ fi; \ /bin/sh /build/source/gcc-13.1.0/gcc/../mkinstalldirs ${fix_dir}; \ chmod a+rx ${fix_dir} || true; \ (TARGET_MACHINE='x86_64-pc-linux-gnu'; srcdir=`cd /build/source/gcc-13.1.0/gcc; ${PWDCMD-pwd}`; \ SHELL='/bin/sh'; MACRO_LIST=`${PWDCMD-pwd}`/macro_list ; \ gcc_dir=`${PWDCMD-pwd}` ; \ export TARGET_MACHINE srcdir SHELL MACRO_LIST && \ cd ../build-x86_64-pc-linux-gnu/fixincludes && \ /bin/sh ./fixinc.sh "${gcc_dir}/${fix_dir}" \ `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta` ); \ done; \ fi make[4]: Entering directory '/build/build/prev-gcc' (cd `${PWDCMD-pwd}`/include-fixed ; \ tar -cf - .; exit 0) | (cd /build/build/prev-gcc/../gcc/./include-fixed; tar xpf - ) /bin/sh: line 2: tar: command not found /bin/sh: line 2: tar: command not found make[4]: *** [Makefile:4028: real-install-headers-tar] Error 127 make[4]: Leaving directory '/build/build/prev-gcc' make[3]: *** [Makefile:3309: stmp-fixinc] Error 2 make[3]: Leaving directory '/build/build/gcc' make[2]: *** [Makefile:5013: all-stage2-gcc] Error 2 make[2]: Leaving directory '/build/build' make[1]: *** [Makefile:27012: stage2-bubble] Error 2 make[1]: Leaving directory '/build/build' make: *** [Makefile:1080: all] Error 2