On Wed, 12 Jan 2022 at 18:39, Thomas Sobczynski <tsobczynski@xxxxxxxxxx> wrote: > > Thanks much for the pointers thus far. I am now trying to take this in three chunks: build native GCC11 on GNU/Linux, then use that to build GCC11 on/for GNU/Linux targeting ARM, then use the previous two to build GCC11 on GNU/Linux for Windows targeting ARM. > > The first step completes, so I have an installed GCC 11 native toolchain for Linux. > > The second step doesn't finish; getting hung up on configuring libstdc++. > > The tail of the build output leading up to the error: > > > > checking for ISO C99 support to TR1 in <stdint.h>... no > checking for ISO C99 support to TR1 in <math.h>... no > no > no > checking stdbool.h usability... no > checking stdbool.h presence... yes > configure: WARNING: stdbool.h: present but cannot be compiled > configure: WARNING: stdbool.h: check for missing prerequisite headers? > configure: WARNING: stdbool.h: see the Autoconf documentation > configure: WARNING: stdbool.h: section "Present But Cannot Be Compiled" > configure: WARNING: stdbool.h: proceeding with the compiler's result > checking for stdbool.h... no > checking stdalign.h usability... no > checking stdalign.h presence... yes > configure: WARNING: stdalign.h: present but cannot be compiled > configure: WARNING: stdalign.h: check for missing prerequisite headers? > configure: WARNING: stdalign.h: see the Autoconf documentation > configure: WARNING: stdalign.h: section "Present But Cannot Be Compiled" > configure: WARNING: stdalign.h: proceeding with the compiler's result > checking for stdalign.h... no > checking for the value of EOF... configure: error: computing EOF failed > make[2]: *** [Makefile:13316: configure-target-libstdc++-v3] Error 1 > make[2]: Leaving directory '/home/tsobczynski/Compiler/build-linux-cross' > make[1]: *** [Makefile:968: all] Error 2 > make[1]: Leaving directory '/home/tsobczynski/Compiler/build-linux-cross' This is fixed by the patch for PR 103866 that I already referred you to. Either build the Git master branch, or backport the fix to gcc-11. But I'm repeating myself now.