ROC-RK3568-PC最新安卓11源码编译错误
其他都按维基上做了,出现以下错误是什么原因呢?谢谢[ 96% 100944/105018] //frameworks/base:api-stubs-docs metalava merged
......
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)) ####
系统具体的版本和配置是多少,https://wiki.t-firefly.com/Core-3568J/prepare_compile_android.html安装包是否有缺漏。
是否有修改过代码,具体的提交是多少 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
源码没有修改,直接按照步骤第一次编译的 git log看一下 zyk 发表于 2021-8-2 09:52
git log看一下
是这个吗
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)
谢谢 之前没更新有编译过Android11吗,这是第一次编译是吧 zyk 发表于 2021-8-2 11:01
之前没更新有编译过Android11吗,这是第一次编译是吧
是的,不知道android11在18.04上编译成功过么 本帖最后由 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
你电脑的配置是多少,交换分区和内存。编译使用哪一个命令 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 sharedbuff/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
可以尝试加一条内存条,把swap交换分区搞大一点,安卓比较吃配置
zyk@zyk-pc:~/work/rk356x/Android11.0/proj/kernel$ free -m
总计 已用 空闲 共享 缓冲/缓存 可用
内存: 32047 12611 4081 233 15355 18751
交换: 19530 1 19529
页:
[1]
2