编译 Linux内核时,发现如下错误:
gcc: error: unrecognized argument in option ‘-mabi=64’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: 0: No such file or directory
gcc: error: unrecognized command line option ‘-G’
gcc: error: unrecognized command line option ‘-mno-abicalls’
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
Checking missing-syscalls for O32
CC kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=64’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: 0: No such file or directory
gcc: error: unrecognized command line option ‘-G’
gcc: error: unrecognized command line option ‘-mno-abicalls’
/sqf/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
/sqf/kernel/arch/mips/Makefile:333: recipe for target 'archprepare' failed
make: *** [archprepare] Error 2
环境:
交叉编译版本gcc version 4.7.2 (Ingenic 2016.11)
疑问:
既然是交叉编译环境,怎么会出来gcc命令出错呢?这种出错时因为什么地方有错误?是/bin的路径没有添加正确还是交叉编译链的版本不对或者是其他?
请先 登录 后评论