最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

[fixed]cc1: error: unrecognized command line option “-mlittle-endian”

工作和技术 crifan 2473浏览 0评论

[fixed]cc1: error: unrecognized command line option "-mlittle-endian"

For later download to s3c2410x board which emulated by skyeye, so I build the Linux kernel :
make ARCH=arm
but got error:
……
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
……

google then find the reason is can not find the cross compile tools, mine is arm-linux-uclibc-XXXX
then I found that, although I have add the needed export the variable into .bashrc:

export PATH=$PATH:/usr/crifan/develop/buildroot/buildroot/build_arm/staging_dir/usr/bin

export CROSS_COMPILE="arm-linux-uclibc-"

and change the arch and cross coompile in makefile:

#ARCH   ?= $(SUBARCH)
ARCH = arm
#CROSS_COMPILE ?=
CROSS_COMPILE = arm-linux-uclibc-

but forgot to close the terminal and restrat it to let the environment variable to take effect,
so close and restart the terminal, then do:
make ARCH=arm
then can continue build….

转载请注明:在路上 » [fixed]cc1: error: unrecognized command line option “-mlittle-endian”

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

  1. 对我有用
    恒实速29年前 (2011-06-30)回复
70 queries in 0.111 seconds, using 18.89MB memory