Created attachment 387896 [details] build.log Relevant error: In file included from mips-linux-nat.c:37:0: /usr/include/asm/ptrace.h:32:2: error: unknown type name ‘__u64’ __u64 regs[32]; ^ Likely caused by sys-kernel/linux-headers (of which I have version 3.17).
the mips linux-headers are broken. asm/ptrace.h needs to include linux/types.h.
sent this patch to the mips list: http://sources.gentoo.org/gentoo/src/patchsets/gentoo-headers/3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch?rev=1.1
should be all set now in the tree; thanks for the report! Commit message: Fix mips asm/ptrace.h http://sources.gentoo.org/sys-kernel/linux-headers/linux-headers-3.17-r1.ebuild?rev=1.1