Toybrick

编译rk356x kernel 出错 arm-linux-gnueabi-gcc: error: unrecognized comman...

LiuYang

注册会员

积分
57
楼主
发表于 2022-7-21 15:50:40    查看: 3306|回复: 1 | [复制链接]    打印 | 只看该作者
arm-linux-gnueabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
scripts/Makefile.build:333: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/extract-cert
scripts/Makefile.build:637: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  CC      kernel/bounds.s
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
arm-linux-gnueabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
Kbuild:21: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
make[1]: *** Waiting for unfinished jobs....
  YACC    scripts/dtc/dtc-parser.tab.h
  LEX     scripts/dtc/dtc-lexer.lex.c
  UPD     include/generated/timeconst.h
Makefile:1244: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
  YACC    scripts/dtc/dtc-parser.tab.c
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
Makefile:1210: recipe for target 'scripts' failed
make: *** [scripts] Error 2
ERROR: Running build_kernel failed!
ERROR: exit code 2 from line 656:
    make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS


回复

使用道具 举报

feelthat

注册会员

积分
114
沙发
发表于 2022-9-28 16:25:19 | 只看该作者
search all build scripts and remove -mgeneral-regs-only
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表