搜索

430

主题

515

帖子

2134

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2134
QQ
发表于 2020-8-6 12:08:33 4218 浏览 1 回复

Android 编译报错 /bin/sh: 1: bc: not found

在服务器上编译Android9.0 出现一个错误:/bin/sh: 1: bc: not found

这是因为 bc 没有安装,bc 是字符终端下的一个计算器。
ubuntu 下命令安装:
  1. sudo apt install bc
复制代码





手机微信同号:13682654092
回复

使用道具 举报

451

主题

663

帖子

5297

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
5297
QQ
发表于 2022-2-10 10:51:22
  1. [DCT_INFO]: Start to generate cust_dtsi file...
  2. [DCT_INFO]: Generate cust_dtsi file successfully!
  3. [DCT_INFO]: DWS file path is /mt8788_v5.196/kernel-4.4/drivers/misc/mediatek/dws/mt6771/tb8788p1_64_bsp.dws
  4. [DCT_INFO]: Gen files path is /mt8788_v5.196/out/target/product/tb8788p1_64_bsp/obj/KERNEL_OBJ/arch/arm64/boot/dts/tb8788p1_64_bsp
  5. [DCT_INFO]: Log files path is /mt8788_v5.196/out/target/product/tb8788p1_64_bsp/obj/KERNEL_OBJ/arch/arm64/boot/dts/tb8788p1_64_bsp
  6. [DCT_INFO]: Parameter is cust_dtsi
  7. [DCT_INFO]: chip id: MT6771
  8. [DCT_INFO]: Chip ID : MT6771
  9. [DCT_INFO]: Project Info: tb8788p1_64_bsp
  10. [DCT_INFO]: Start to generate cust_dtsi file...
  11. [DCT_INFO]: Generate cust_dtsi file successfully!
  12.   Using /mt8788_v5.196/kernel-4.4 as source for kernel
  13.   HOSTCC  scripts/dtc/dtc.o
  14.   HOSTCC  scripts/genksyms/genksyms.o
  15.   CC      kernel/bounds.s
  16.   HOSTCC  scripts/dtc/flattree.o
  17.   SHIPPED scripts/genksyms/parse.tab.c
  18.   SHIPPED scripts/genksyms/lex.lex.c
  19.   CHK     include/generated/timeconst.h
  20.   SHIPPED scripts/genksyms/keywords.hash.c
  21. /bin/sh: 1: bc: not found
  22. make[2]: *** [include/generated/timeconst.h] Error 127
  23. make[1]: *** [prepare0] Error 2
  24. make[1]: *** Waiting for unfinished jobs....
  25.   HOSTCC  scripts/dtc/fstree.o
  26.   CC      scripts/mod/empty.o
  27.   HOSTCC  scripts/mod/mk_elfconfig
  28.   HOSTCC  scripts/dtc/data.o
  29.   SHIPPED scripts/genksyms/parse.tab.h
  30.   HOSTCC  scripts/selinux/genheaders/genheaders
  31.   HOSTCC  scripts/genksyms/parse.tab.o
  32.   CC      scripts/mod/devicetable-offsets.s
复制代码
手机微信同号:13682654092
回复

使用道具 举报

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

本版积分规则


登录或注册
快速回复 返回顶部 返回列表