当前位置: 代码迷 >> 单片机 >> 内核移植 编译时失误
  详细解决方案

内核移植 编译时失误

热度:9   发布时间:2016-04-28 15:20:21.0
内核移植 编译时出错
[[email protected] linux]# make dep
rm -f include/asm-arm/arch include/asm-arm/proc
(cd include/asm-arm; ln -sf arch-integrator arch; ln -sf proc-armv proc)
make[1]: Entering directory `/var/ftp/pub/linux/arch/arm/tools'
/var/ftp/pub/linux/scripts/mkdep -D__KERNEL__ -I/var/ftp/pub/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2  -fno-strict-aliasing -fno-common -fno-common -pipe -g -mapcs-32 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float  -- getconstants.c |\
         sed s,getconstants.o,/var/ftp/pub/linux/include/asm-arm/constants.h, > .depend
make all
make[2]: Entering directory `/var/ftp/pub/linux/arch/arm/tools'
arm-linux-gcc -D__KERNEL__ -I/var/ftp/pub/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2  -fno-strict-aliasing -fno-common -fno-common -pipe -g -mapcs-32 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -S -o - getconstants.c > /var/ftp/pub/linux/include/asm-arm/constants.h.tmp.1
cc1: error: unrecognized command line option "-mapcs-32"
cc1: error: unrecognized command line option "-mshort-load-bytes"
make[2]: *** [/var/ftp/pub/linux/include/asm-arm/constants.h] Error 1
make[2]: Leaving directory `/var/ftp/pub/linux/arch/arm/tools'
make[1]: *** [dep] Error 2
make[1]: Leaving directory `/var/ftp/pub/linux/arch/arm/tools'
make: *** [archdep] Error 2


这个咋整啊???在线等

------解决方案--------------------
不懂,如果只是单纯的像编译通过的话看下编译选项把
-mapcs-32
-mshort-load-bytes
删掉看看
  相关解决方案