make[1]: Entering directory `/usr/src/linux-2.4.13/arch/ppc/kernel'
make[1]: `checks' is up to date.
make[1]: Leaving directory `/usr/src/linux-2.4.13/arch/ppc/kernel'
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/usr/src/linux-2.4.13/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DUTS_MACHINE='"ppc"' -c -o init/version.o init/version.c
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.13/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring " -C kernel
make[1]: Entering directory `/usr/src/linux-2.4.13/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.13/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.13/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -c -o fork.o fork.c
fork.c: In function `copy_mm':
fork.c:360: fixed or forbidden register 68 (0) was spilled for class CR0_REGS.
This may be due to a compiler bug or to impossible asm
statements or clauses.
cpp: output pipe has been closed
make[2]: *** [fork.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.13/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.13/kernel'
make: *** [_dir_kernel] Error 2
Nico Schottelius writes:
> I tried to compile the 2.4.13 kernel on a ppc.
> It failed. The output indicates it is possible bad asm or a compiler
> error. What is it ?
You need a newer gcc, I recommend 2.95.3 or 2.95.4.
Paul.