Running a Guix build of master (f002f8a0e76bd5abd60ef6809b1ff2b4c2d56071) using:
0HOSTS="aarch64-linux-gnu" ./contrib/guix/guix-build
on aarch64 hardware (Alpine Docker container, running on Apple M1) currently fails with the following:
0cc1: error: no include path in which to search for stdc-predef.h
1/gnu/store/lzf5zg0diw2bhh2qji4bl2v46wd8pylc-bash-minimal-5.1.8/bin/bash ../../gcc-10.3.0/gcc/../move-if-change tmp-macro_list macro_list
2echo timestamp > s-macro_list
3rm -rf include-fixed; mkdir include-fixed
4chmod a+rx include-fixed
5if [ -d ../prev-gcc ]; then \
6 cd ../prev-gcc && \
7 make real-install-headers-tar DESTDIR=`pwd`/../gcc/ \
8 libsubdir=. ; \
9else \
10 set -e; for ml in `cat fixinc_list`; do \
11 sysroot_headers_suffix=`echo ${ml} | sed -e 's/;.*$//'`; \
12 multi_dir=`echo ${ml} | sed -e 's/^[^;]*;//'`; \
13 fix_dir=include-fixed${multi_dir}; \
14 if ! false && test ! -d `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`; then \
15 echo The directory that should contain system headers does not exist: >&2 ; \
16 echo " `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`" >&2 ; \
17 tooldir_sysinc=`echo "/gnu/store/bp869rrz2z24yvjyma9kkj0alzxvqkc2-gcc-cross-sans-libc-aarch64-linux-gnu-10.3.0-lib/lib/gcc/aarch64-linux-gnu/10.3.0/../../../../../../../aarch64-linux-gnu/sys-include" | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`; \
18 if test "x`echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`" = "x${tooldir_sysinc}"; \
19 then sleep 1; else exit 1; fi; \
20 fi; \
21 /gnu/store/lzf5zg0diw2bhh2qji4bl2v46wd8pylc-bash-minimal-5.1.8/bin/bash ../../gcc-10.3.0/gcc/../mkinstalldirs ${fix_dir}; \
22 chmod a+rx ${fix_dir} || true; \
23 (TARGET_MACHINE='aarch64-unknown-linux-gnu'; srcdir=`cd ../../gcc-10.3.0/gcc; ${PWDCMD-pwd}`; \
24 SHELL='/gnu/store/lzf5zg0diw2bhh2qji4bl2v46wd8pylc-bash-minimal-5.1.8/bin/bash'; MACRO_LIST=`${PWDCMD-pwd}`/macro_list ; \
25 gcc_dir=`${PWDCMD-pwd}` ; \
26 export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
27 cd ../build-aarch64-unknown-linux-gnu/fixincludes && \
28 /gnu/store/lzf5zg0diw2bhh2qji4bl2v46wd8pylc-bash-minimal-5.1.8/bin/bash ./fixinc.sh "${gcc_dir}/${fix_dir}" \
29 `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta` ); \
30 rm -f ${fix_dir}/syslimits.h; \
31 if [ -f ${fix_dir}/limits.h ]; then \
32 mv ${fix_dir}/limits.h ${fix_dir}/syslimits.h; \
33 else \
34 cp ../../gcc-10.3.0/gcc/gsyslimits.h ${fix_dir}/syslimits.h; \
35 fi; \
36 chmod a+r ${fix_dir}/syslimits.h; \
37 done; \
38fi
39The directory that should contain system headers does not exist:
40 /usr/include
41make[3]: *** [Makefile:3172: stmp-fixinc] Error 1
42make[3]: *** Waiting for unfinished jobs....
43make[3]: Leaving directory '/tmp/guix-build-gcc-cross-sans-libc-aarch64-linux-gnu-10.3.0.drv-0/build/gcc'
44make[2]: *** [Makefile:4688: all-stage1-gcc] Error 2
45make[2]: Leaving directory '/tmp/guix-build-gcc-cross-sans-libc-aarch64-linux-gnu-10.3.0.drv-0/build'
46make[1]: *** [Makefile:18381: stage1-bubble] Error 2
47make[1]: Leaving directory '/tmp/guix-build-gcc-cross-sans-libc-aarch64-linux-gnu-10.3.0.drv-0/build'
48make: *** [Makefile:946: all] Error 2