crossdev构建mips编译工具链

crossdev --b 2.25.1-r1 --g 4.9.3 --k 4.3 --l 2.22-r4 -P -v -oO /usr/local/portage/layman/ -t mipsel-unkown-linux-gnu --without-headers

cross-mipsel-unkown-linux-gnu/gcc -fortran -sanitize

没有编译是因为-P,写成了-p

昨天没有成功或许是以你为/etc/passwd中root是/sbin/nologon
<2016-7-10>不是,是bug。规避方法如下:

vim /etc/portage/package.use/crossdev.use
cross-mipsel-unkown-linux-gnu/gcc -fortran -sanitize

checking for sysdeps preconfigure fragments... aarch64 alpha arm hppa i386 m68k microblaze mips configure: error: Unable to determine ABI.
回头试试--with-headers,据说--without-headers不给bug支持。

crossdev --b 2.25.1-r1 --g 4.9.3 --k 4.3 --l 2.22-r4 -P -v -oO /usr/local/portage/layman/ -t mips64el-unkown-linux-gnu --without-headers --ex-gdb

vim /etc/portage/package.use/crossdev.use
cross-mips64el-unkown-linux-gnu/gcc -fortran -sanitize

local overlay
/etc/portage/make.conf
PORTDIR_OVERLAY="/usr/local/portage/layman"
/usr/local/portage/layman/
metadata/layout.conf
masters = gentoo
profiles/repo_name
lophyxp

你可能感兴趣的:(gentoo)