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

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

工作和技术 crifan 4862浏览

[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”

79 queries in 0.561 seconds, using 19.20MB memory