最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

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

工作和技术 crifan 4572浏览 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. 对我有用
    恒实速214年前 (2011-06-30)回复
82 queries in 0.184 seconds, using 22.12MB memory