src/makemake.in detects mips64, so it creates arimips64.c (as is clear from your log) not arimips.c. please try to run in full 64-bit mode or full 32-bit mode.