Firefly开源社区

打印 上一主题 下一主题

[Linux] ubuntu20.04 编译andorid8.1 报错aarch64-linux-android-gcc: not found

4

积分

0

威望

0

贡献

吃瓜的群众

积分
4

ubuntu20.04 编译andorid8.1 报错aarch64-linux-android-gcc: not found

发表于 2022-5-22 09:18:10      浏览:4955 | 回复:0        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
按照教程进行编译  https://wiki.t-firefly.com/zh_CN ... id8.1_firmware.html


./FFTools/make.sh -j8  编译报错:aarch64-linux-android-gcc: not found 怎么解决?
日志如下:

root@ubuntu:~/proj/roc-rk3399-pc# ./FFTools/make.sh -j8
~/proj/roc-rk3399-pc/u-boot ~/proj/roc-rk3399-pc
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2534:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:767:19: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
  767 |  sprintf(newname, "%s%s", dirname, basename);
      |                   ^~~~~~
scripts/kconfig/confdata.c:767:19: note: assuming directive output of 7 bytes
In file included from /usr/include/stdio.h:867,
                 from scripts/kconfig/zconf.tab.c:84:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 1 or more bytes (assuming 4104) into a destination of size 4097
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from scripts/kconfig/zconf.tab.c:2534:
scripts/kconfig/confdata.c:770:20: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
  770 |   sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
      |                    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from scripts/kconfig/zconf.tab.c:84:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 13 and 4119 bytes into a destination of size 4097
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from scripts/kconfig/zconf.tab.c:2537:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:590:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  590 |     jump->offset = strlen(r->s);
      |     ~~~~~~~~~~~~~^~~~~~~~~~~~~~
scripts/kconfig/menu.c:551:19: note: ‘jump’ was declared here
  551 |  struct jump_key *jump;
      |                   ^~~~
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make: /root/proj/roc-rk3399-pc/u-boot/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
/bin/sh: 1: /root/proj/roc-rk3399-pc/u-boot/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: not found
dirname: missing operand
Try 'dirname --help' for more information.
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
/bin/sh: 1: /root/proj/roc-rk3399-pc/u-boot/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: not found
/bin/sh: 1: /root/proj/roc-rk3399-pc/u-boot/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: not found
make[2]: *** [/root/proj/roc-rk3399-pc/u-boot/scripts/Makefile.autoconf:64: include/autoconf.mk] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/root/proj/roc-rk3399-pc/u-boot/scripts/Makefile.autoconf:40: include/autoconf.mk.dep] Error 1
make[1]: *** [/root/proj/roc-rk3399-pc/u-boot/Makefile:496: silentoldconfig] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
root@ubuntu:~/proj/roc-rk3399-pc# sudo apt install aarch64-linux-android-gcc@latest
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package aarch64-linux-android-gcc@latest
root@ubuntu:~/proj/roc-rk3399-pc# sudo apt install aarch64-linux-android-gcc
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package aarch64-linux-android-gcc
root@ubuntu:~/proj/roc-rk3399-pc#


新建文本文档.txt

3.65 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表