Android 6.0源码编译及烧录到真机过程记录(2)

Creating filesystem with parameters: Size: 1073741824 Block size: 4096 Blocks per group: 32768 Inodes per group: 8192 Inode size: 256 Journal blocks: 4096 Label: system Blocks: 262144 Block groups: 8 Reserved block group size: 63 Created filesystem with 1511/65536 inodes and 93478/262144 blocks Install system fs image: out/target/product/hammerhead/system.img out/target/product/hammerhead/system.img+out/target/product/hammerhead/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=1096212480 blocksize=135168 total=367728881 reserve=11083776 #### make completed successfully (01:12:44 (hh:mm:ss)) #### ninjame@ubuntu1604:~/aosp$ du -sh out/ 22G out/ 

编译问题记录:

问题1:
pp frameworks/base/tools/aidl/aidl_language_y.y build/core/binary.mk:609: recipe for target 'out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp' failed make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] 断开的管道 make: *** 正在等待未完成的任务.... Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l frameworks/base/tools/aidl/aidl_language_l.l:55: warning, 无法匹配规则 flex-2.5.39:严重内部错误,exec of /usr/bin/m4 failed build/core/binary.mk:646: recipe for target 'out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp' failed make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 1 make: *** Deleting file 'out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp' 注: 某些输入文件使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: 某些输入文件使用了未经检查或不安全的操作。 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 解决办法:

1 更换软件源为阿里云

为了更快的安装软件,我们需要更换软件源为国内的软件源,这里推荐使用Ubuntu官方指定的国内软件源阿里云,具体方法是:

sudo gedit /etc/apt/sources.list

在文件最前面加入下面代码:

deb .aliyun.com/ubuntu/ quantal main restricted universe multiverse deb .aliyun.com/ubuntu/ quantal-security main restricted universe multiverse deb .aliyun.com/ubuntu/ quantal-updates main restricted universe multiverse deb .aliyun.com/ubuntu/ quantal-proposed main restricted universe multiverse deb .aliyun.com/ubuntu/ quantal-backports main restricted universe multiverse deb-src .aliyun.com/ubuntu/ quantal main restricted universe multiverse deb-src .aliyun.com/ubuntu/ quantal-security main restricted universe multiverse deb-src .aliyun.com/ubuntu/ quantal-updates main restricted universe multiverse deb-src .aliyun.com/ubuntu/ quantal-proposed main restricted universe multiverse deb-src .aliyun.com/ubuntu/ quantal-backports main restricted universe multiverse

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/13887.html