When running ./build boot roms x220_8mb the build of the crossgcc-i386 compiler fails with the following in the build log:
./build boot roms x220_8mb
mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_elim.adb -o ada/sem_elim.o mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_eval.adb -o ada/sem_eval.o mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_intr.adb -o ada/sem_intr.o mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_mech.adb -o ada/sem_mech.o mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_prag.adb -o ada/sem_prag.o mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_res.adb -o ada/sem_res.o sem_prag.adb:29449:30: warning: pragma Unreferenced given for "Needs_Wrapper" [enabled by default] make[1]: *** [../../gcc-11.2.0/gcc/ada/gcc-interface/Make-lang.in:139: ada/sem_prag.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/chris/Downloads/build/osbmk/coreboot/default/util/crossgcc/build-i386-elf-GCC/gcc' make: *** [Makefile:4409: all-gcc] Error 2
(sorry, I can't upload attachments for some reason).
However, by doing a separate git clone of the the Coreboot repo, and doing make crossgcc-i386 CPUS=$(nproc) the crossgcc build works without problems.
make crossgcc-i386 CPUS=$(nproc)
System: Arch Linux x86_64
gcc-ada: 12.2.0-1
I have exact same problem.
When running
./build boot roms x220_8mb
the build of the crossgcc-i386 compiler fails with the following in the build log:mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_elim.adb -o ada/sem_elim.o mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_eval.adb -o ada/sem_eval.o mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_intr.adb -o ada/sem_intr.o mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_mech.adb -o ada/sem_mech.o mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_prag.adb -o ada/sem_prag.o mkdir -p ada/ gnatgcc -c -O2 -fomit-frame-pointer -m64 -gnatpg -gnatwGUR -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc-11.2.0/gcc/ada -I../../gcc-11.2.0/gcc/ada/gcc-interface -Iada/libgnat -I../../gcc-11.2.0/gcc/ada/libgnat ../../gcc-11.2.0/gcc/ada/sem_res.adb -o ada/sem_res.o sem_prag.adb:29449:30: warning: pragma Unreferenced given for "Needs_Wrapper" [enabled by default] make[1]: *** [../../gcc-11.2.0/gcc/ada/gcc-interface/Make-lang.in:139: ada/sem_prag.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/chris/Downloads/build/osbmk/coreboot/default/util/crossgcc/build-i386-elf-GCC/gcc' make: *** [Makefile:4409: all-gcc] Error 2
(sorry, I can't upload attachments for some reason).
However, by doing a separate git clone of the the Coreboot repo, and doing
make crossgcc-i386 CPUS=$(nproc)
the crossgcc build works without problems.System: Arch Linux x86_64
gcc-ada: 12.2.0-1
I have exact same problem.