The --arch-override=x86 argument is not sufficient to build an x86 kernel on an amd64 machine. If --makeopts="ARCH=i386" is added it builds the kernel, but not the modules because of an overly restrictive MAKEOPTS protection. Fix attached. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 51799 [details, diff] patch
Also, dietlibc fails. Due to a makefile error. Patch attached.
Created attachment 51801 [details, diff] Dietlibc 0.27 patch
3.1.5 doesn't build dietlibc at all so this isn't an issue any longer; closing bug.