Firefly开源社区

12
发表新贴
打印 上一主题 下一主题

[Android] ROC-RK3568-PC最新安卓11源码编译错误

29

积分

0

威望

0

贡献

技术小白

积分
29

ROC-RK3568-PC最新安卓11源码编译错误

发表于 2021-8-1 09:12:53      浏览:16271 | 回复:12        打印      只看该作者   [复制链接] 楼主
其他都按维基上做了,出现以下错误是什么原因呢?谢谢
[ 96% 100944/105018] //frameworks/base:api-stubs-docs metalava merged [common]
......
lint_report.txt --lints-as-errors --warnings-as-errors --baseline:api-lint frameworks/base/api/lint-baseline.txt --update-baseline:api-lint out

/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/api_lint_baseline.txt --error-message:api-lint $'************************************************************\nYour API changes are triggering API Lint warnings or errors.\nTo make these errors go away, fix the code according to the\nerror and/or warning messages above.\n\nIf it is not possible to do so, there are workarounds:\n\n1. You can suppress the errors with @SuppressLint("<id>")\n2. You can update the baseline by executing the following\n   command:\n       cp \\\n       "'"$PWD"$'/out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/api_lint_baseline.txt" \\\n       "'"$PWD"$'/frameworks/base/api/lint-baseline.txt"\n   To submit the revised baseline.txt to the main Android\n   repository, you will need approval.\n************************************************************\n' --check-compatibility:api:released prebuilts/sdk/30/public/api/android.txt --check-compatibility:removed:released prebuilts/sdk/30/public/api/removed.txt --baseline:compatibility:released out/soong/.intermediates/prebuilts/sdk/public-api-incompatibilities-with-last-released/gen/incompatibilities.txt --update-baseline:compatibility:released out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/last_released_baseline.txt --error-message:compatibility:released $'\n******************************\nYou have tried to change the API from what has been previously released in\nan SDK.  Please fix the errors listed above.\n******************************\n' && out/soong/host/linux-x86/bin/soong_zip -write_if_changed -jar -o out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/api-stubs-docs-stubs.srcjar -C out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/stubsDir -D out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/stubsDir && touch out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/api_lint.timestamp && touch out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/check_last_released_api.timestamp && rm -rf out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/srcjars
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at com.intellij.util.containers.ContainerUtil.newHashMap(ContainerUtil.java:33)
    at com.intellij.openapi.util.UnprotectedUserDataHolder.putUserData(UnprotectedUserDataHolder.java:32)
    at com.intellij.lang.impl.PsiBuilderImpl.putUserData(PsiBuilderImpl.java:1738)
    at com.intellij.lang.java.parser.JavaParserUtil.setLanguageLevel(JavaParserUtil.java:114)
    at com.intellij.lang.java.parser.JavaParserUtil.createBuilder(JavaParserUtil.java:153)
    at com.intellij.psi.impl.source.tree.JavaElementType$ICodeBlockElementType.parseContents(JavaElementType.java:154)
    at com.intellij.psi.impl.source.tree.LazyParseableElement.lambda$ensureParsed$0(LazyParseableElement.java:206)
    at com.intellij.psi.impl.source.tree.LazyParseableElement$$Lambda$213/0x0000000100506440.run(Unknown Source)
    at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:553)
    at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:205)
    at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:254)
    at com.intellij.psi.impl.source.tree.LazyParseablePsiElement.getFirstChild(LazyParseablePsiElement.java:90)
    at com.intellij.psi.impl.source.tree.LazyParseablePsiElement.acceptChildren(LazyParseablePsiElement.java:104)
    at com.intellij.psi.JavaRecursiveElementVisitor.visitElement(JavaRecursiveElementVisitor.java:43)
    at com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:52)
    at com.intellij.psi.impl.source.tree.java.PsiCodeBlockImpl.accept(PsiCodeBlockImpl.java:212)
    at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200)
    at com.intellij.psi.impl.source.JavaStubPsiElement.acceptChildren(JavaStubPsiElement.java:117)
    at com.intellij.psi.JavaRecursiveElementVisitor.visitElement(JavaRecursiveElementVisitor.java:43)
    at com.intellij.psi.JavaElementVisitor.visitMethod(JavaElementVisitor.java:164)
    at com.intellij.psi.impl.source.PsiMethodImpl.accept(PsiMethodImpl.java:286)
    at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200)
    at com.intellij.psi.impl.source.JavaStubPsiElement.acceptChildren(JavaStubPsiElement.java:117)
    at com.intellij.psi.JavaRecursiveElementVisitor.visitElement(JavaRecursiveElementVisitor.java:43)
    at com.intellij.psi.JavaElementVisitor.visitClass(JavaElementVisitor.java:40)
    at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:469)
    at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200)
    at com.intellij.psi.impl.source.JavaStubPsiElement.acceptChildren(JavaStubPsiElement.java:117)
    at com.intellij.psi.JavaRecursiveElementVisitor.visitElement(JavaRecursiveElementVisitor.java:43)
    at com.intellij.psi.JavaElementVisitor.visitClass(JavaElementVisitor.java:40)
    at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:469)
    at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200)
01:14:52 ninja failed with: exit status 1

#### failed to build some targets (16:29:45 (hh:mm:ss)) ####




回复

使用道具 举报

1万

积分

18

威望

20

贡献

神级创客

Rank: 8Rank: 8

积分
10851

突出贡献

发表于 2021-8-2 09:17:40        只看该作者  沙发
系统具体的版本和配置是多少,https://wiki.t-firefly.com/Core- ... ompile_android.html安装包是否有缺漏。
是否有修改过代码,具体的提交是多少
回复

使用道具 举报

29

积分

0

威望

0

贡献

技术小白

积分
29
发表于 2021-8-2 09:30:55        只看该作者  板凳
zyk 发表于 2021-8-2 09:17
系统具体的版本和配置是多少,https://wiki.t-firefly.com/Core-3568J/prepare_compile_android.html安装包 ...

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=rk3568_firefly_roc_pc
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a55
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-2a
TARGET_2ND_CPU_VARIANT=cortex-a55
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-80-generic-x86_64-Ubuntu-18.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ2A.210505.003
OUT_DIR=out
============================================
按照18.04的软件包推荐安装的
云盘下载的bundle执行了.bundle/update 和git rebase FETCH_HEAD
源码没有修改,直接按照步骤第一次编译的
回复

使用道具 举报

1万

积分

18

威望

20

贡献

神级创客

Rank: 8Rank: 8

积分
10851

突出贡献

发表于 2021-8-2 09:52:03        只看该作者  地板
git log看一下
回复

使用道具 举报

29

积分

0

威望

0

贡献

技术小白

积分
29
发表于 2021-8-2 10:06:44        只看该作者  5#

是这个吗
root@ubuntu:.git# git log
commit 08ee3fd43acca1232809028066f0b3a65f462f52 (HEAD -> firefly)
Author: Firefly <service@t-firefly.com>
Date:   Thu Jul 15 11:40:53 2021 +0800

    remove some unuseful files

commit 4e96d73a0e4cfa830306ae304138a4c3549ee11b
Author: Firefly <service@t-firefly.com>
Date:   Wed Jul 14 18:15:54 2021 +0800

    aosp update to android-11.0.0_r37

commit 4c4a96227b4ad4e82884fef8e04c429a4a9bea90
Author: Firefly <service@t-firefly.com>
Date:   Tue Jun 22 17:02:01 2021 +0800

    improve PCIe SSD compatibility

commit 9b2bb1f64eca2d83f922c7b5ee1f335619cd7fe0
Author: Firefly <service@t-firefly.com>
Date:   Tue Jun 8 15:46:44 2021 +0800

    fix that make uboot ok for rk3566

commit de3d71fb16eebc1d4f6e4d4e3006045f485961d5
Author: zhongw <zw@t-chip.com.cn>
Date:   Fri Jun 4 16:01:57 2021 +0800

    improve os stabilit

commit 609f13f7692e754bc51f61125d6f2dcac714ed49
Author: zhongw <zw@t-chip.com.cn>
Date:   Thu May 13 10:27:35 2021 +0800

    support npu

commit 4608887b389c2798563217728c832dc2d91dd6c3 (grafted)
Author: Firefly <service@t-firefly.com>
Date:   Wed Jan 6 13:07:53 2021 +0800

    Init the Firefly-RK356X Android11.0 SDK
(END)
谢谢
回复

使用道具 举报

1万

积分

18

威望

20

贡献

神级创客

Rank: 8Rank: 8

积分
10851

突出贡献

发表于 2021-8-2 11:01:52        只看该作者  6#
之前没更新有编译过Android11吗,这是第一次编译是吧
回复

使用道具 举报

29

积分

0

威望

0

贡献

技术小白

积分
29
发表于 2021-8-2 11:13:05        只看该作者  7#
zyk 发表于 2021-8-2 11:01
之前没更新有编译过Android11吗,这是第一次编译是吧

是的,不知道android11在18.04上编译成功过么
回复

使用道具 举报

1万

积分

18

威望

20

贡献

神级创客

Rank: 8Rank: 8

积分
10851

突出贡献

发表于 2021-8-2 11:26:28        只看该作者  8#
本帖最后由 zyk 于 2021-8-2 11:28 编辑

我系统18.04.5是可以的,并非虚拟机
zyk@zyk-pc:~$ lsb_release -a
No LSB modules are available.
Distributor ID:        Ubuntu
Description:        Ubuntu 18.04.5 LTS
Release:        18.04
Codename:        bionic

你电脑的配置是多少,交换分区和内存。编译使用哪一个命令
回复

使用道具 举报

29

积分

0

威望

0

贡献

技术小白

积分
29
发表于 2021-8-2 12:27:25        只看该作者  9#
zyk 发表于 2021-8-2 11:26
我系统18.04.5是可以的,并非虚拟机
zyk@zyk-pc:~$ lsb_release -a
No LSB modules are available.

我也不是虚拟机,不过配置比较差了,8G内存,i5-6200U
root@ubuntu:RK356X_Android11.0# free -m
              total        used        free      shared  buff/cache   available
Mem:           7857        2022         147         523        5687        5014
Swap:          7812           1        7811
编译也是按照维基里面的手动编译,uboot和kernel编译过了,安卓编不过:
source build/envsetup.sh
lunch rk3568_firefly_roc_pc-userdebug
make -j4
回复

使用道具 举报

1万

积分

18

威望

20

贡献

神级创客

Rank: 8Rank: 8

积分
10851

突出贡献

发表于 2021-8-2 21:56:30        只看该作者  10#
可以尝试加一条内存条,把swap交换分区搞大一点,安卓比较吃配置
  1. zyk@zyk-pc:~/work/rk356x/Android11.0/proj/kernel$ free -m
  2.               总计         已用        空闲      共享    缓冲/缓存    可用
  3. 内存:       32047       12611        4081         233       15355       18751
  4. 交换:       19530           1       19529
复制代码
回复

使用道具 举报

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

本版积分规则

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