Maciej, > This change (not posted to `gcc-patches' for some reason) has caused a > regression in the form of a build failure with the `riscv-linux-gnu' > target (and for the record the `x86_64-linux-gnu' build/host running GCC > 8.3.0): > > ali.adb:34:28: warning: use clause for package "GNAT" has no effect > ali.adb:35:28: warning: use clause for package "Dynamic_HTables" has no effect > ali.adb:155:52: "Bucket_Range_Type" is undefined (more references follow) > ali.adb:158:27: "Dynamic_Hash_Tables" is undefined > ali.adb:173:30: "Sig_Map" is undefined (more references follow) > gnatmake: ".../gcc/ada/ali.adb" compilation error > make[3]: *** [../gcc-interface/Makefile:469: gnatmake-re] Error 4 > make[3]: Leaving directory '.../gcc/ada/tools' > make[2]: *** [Makefile:216: gnattools-cross] Error 2 > make[2]: Leaving directory '.../gnattools' > make[1]: *** [Makefile:11224: all-gnattools] Error 2 > > -- that has persisted ever since.
As documented in https://gcc.gnu.org/install/build.html you need a matching native GNAT compiler to build a GNAT cross compiler. If I understood properly, you are using a GCC 8.3.0 as the host compiler to build a GNAT cross compiler, which indeed won't work: you need to first build a native matching compiler and then use this matching compiler to build the cross. Arno