Firefly开源社区

打印 上一主题 下一主题

[Android] android12编译问题

352

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
352

android12编译问题

发表于 2022-8-23 18:31:24      浏览:6418 | 回复:9        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
在编译android12时遇到如下问题:

./FFTools/make.sh -d roc-rk3588s-pc -j8 -l roc_rk3588s_pc-userdebug
上面这条指令出现如下打印信息,请问该怎么解决?

log:

[ 88% 13380/15041] //packages/services/Telecomm:Telecom r8 [common]
Warning: Missing class androidx.palette.graphics.Palette$Builder (referenced from: android.graphics.Bitmap androidx.mediarouter.app.MediaRouteControllerDialog$FetchArtTask.doInBackground(java.lang.Void[]) and 1 other context)
Missing class androidx.palette.graphics.Palette$Swatch (referenced from: android.graphics.Bitmap androidx.mediarouter.app.MediaRouteControllerDialog$FetchArtTask.doInBackground(java.lang.Void[]) and 1 other context)
Missing class androidx.palette.graphics.Palette (referenced from: android.graphics.Bitmap androidx.mediarouter.app.MediaRouteControllerDialog$FetchArtTask.doInBackground(java.lang.Void[]) and 1 other context)
Missing class com.google.common.util.concurrent.ListenableFuture (referenced from: com.google.common.util.concurrent.ListenableFuture androidx.mediarouter.media.MediaRouter$PrepareTransferNotifier.mFuture and 3 other contexts)
Missing class org.jetbrains.annotations.NotNull (referenced from: kotlin.Unit kotlin.Unit.INSTANCE and 179 other contexts)
Missing class org.jetbrains.annotations.Nullable (referenced from: okio.Segment okio.Buffer.head and 18 other contexts)
11:00:58 ninja failed with: exit status 1


1.txt

4.16 KB, 下载次数: 2, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

352

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
352
发表于 2022-8-24 11:20:47        只看该作者  沙发
已解决,环境问题
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2022-8-24 11:23:03        只看该作者  板凳
首先确认一下,编译机器的内存是否够16GB, 同时再进行编译试一下有没有明显的fail 出错
回复

使用道具 举报

352

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
352
发表于 2022-8-26 09:37:25        只看该作者  地板
目前编译rk3588s是没有问题的,但是编译rk3588的时候又报错了.

[ 89% 116583/130348] //external/e2fsprogs/misc:mke2fs link mke2fs
FAILED: out/soong/.intermediates/external/e2fsprogs/misc/mke2fs/android_arm64_armv8-a/unstripped/mke2fs
prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang++ out/soong/.intermediates/bionic/libc/crtbegin_dynamic/android_arm64_armv8-a/crtbegin_dynamic.o @out/soong/.intermediates/external/e2fsprogs/misc/mke2fs/android_arm64_armv8-a/unstripped/mke2fs.rsp out/soong/.intermediates/external/libcxx/libc++_static/android_arm64_armv8-a_static/libc++_static.a out/soong/.intermediates/external/libcxxabi/libc++demangle/android_arm64_armv8-a_static/libc++demangle.a -Wl,--start-group prebuilts/clang/host/linux-x86/clang-r416183b1/lib64/clang/12.0.7/lib/linux/libclang_rt.builtins-aarch64-android.a -Wl,--end-group out/soong/.intermediates/external/e2fsprogs/lib/ext2fs/libext2fs/android_arm64_armv8-a_shared/libext2fs.so out/soong/.intermediates/external/e2fsprogs/lib/blkid/libext2_blkid/android_arm64_armv8-a_shared/libext2_blkid.so out/soong/.intermediates/external/e2fsprogs/misc/libext2_misc/android_arm64_armv8-a_shared/libext2_misc.so out/soong/.intermediates/external/e2fsprogs/lib/uuid/libext2_uuid/android_arm64_armv8-a_shared/libext2_uuid.so out/soong/.intermediates/external/e2fsprogs/lib/support/libext2_quota/android_arm64_armv8-a_shared/libext2_quota.so out/soong/.intermediates/external/e2fsprogs/lib/et/libext2_com_err/android_arm64_armv8-a_shared/libext2_com_err.so out/soong/.intermediates/external/e2fsprogs/lib/e2p/libext2_e2p/android_arm64_armv8-a_shared/libext2_e2p.so out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_shared_current/libc.so out/soong/.intermediates/bionic/libm/libm/android_arm64_armv8-a_shared_current/libm.so out/soong/.intermediates/bionic/libdl/libdl/android_arm64_armv8-a_shared_current/libdl.so out/soong/.intermediates/bionic/libc/crtend_android/android_arm64_armv8-a/obj/bionic/libc/arch-common/bionic/crtend.o -o out/soong/.intermediates/external/e2fsprogs/misc/mke2fs/android_arm64_armv8-a/unstripped/mke2fs -target aarch64-linux-android10000 -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined-version -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_stripped.a -Wl,--exclude-libs,libunwind_llvm.a -Wl,--exclude-libs,libunwind.a -Wl,--icf=safe -fuse-ld=lld -Wl,--pack-dyn-relocs=android+relr -Wl,--no-undefined -Wl,--hash-style=gnu -Wl,-z,separate-code -Wl,-z,max-page-size=4096  -Wl,--exclude-libs=libclang_rt.builtins-aarch64-android.a  -pie -nostdlib -Bdynamic -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,-dynamic-linker,/system/bin/linker64
ld.lld: error: out/soong/.intermediates/external/e2fsprogs/misc/mke2fs/android_arm64_armv8-a/obj/external/e2fsprogs/misc/util.o:1: unclosed comment in
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2022-8-26 09:57:05        只看该作者  5#
zz123456 发表于 2022-8-26 09:37
目前编译rk3588s是没有问题的,但是编译rk3588的时候又报错了.

[ 89% 116583/130348] //external/e2fspro ...

在 .bashrc 添加export LC_ALL=C 看是否可以
回复

使用道具 举报

352

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
352
发表于 2022-8-26 11:30:46        只看该作者  6#
jpchen 发表于 2022-8-26 09:57
在 .bashrc 添加export LC_ALL=C 看是否可以

每次编译android都需要很长时间,最后才知道编译有没有成功.请问android12编译一般多久?有没有什么办法能加快编译速度
回复

使用道具 举报

2129

积分

20

威望

24

贡献

中级创客

Rank: 4

积分
2129
发表于 2022-8-26 11:40:24        只看该作者  7#
zz123456 发表于 2022-8-26 11:30
每次编译android都需要很长时间,最后才知道编译有没有成功.请问android12编译一般多久?有没有什么办法能 ...


回复

使用道具 举报

352

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
352
发表于 2022-8-26 13:15:24        只看该作者  8#
硬件: 内存16G 磁盘剩余空间大于250G

修改环境还是一样报错:

FAILED: out/soong/.intermediates/external/e2fsprogs/misc/mke2fs/android_arm64_armv8-a/unstripped/mke2fs
prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang++ out/soong/.intermediates/bionic/libc/crtbegin_dynamic/android_arm64_armv8-a/crtbegin_dynamic.o @out/soong/.intermediates/external/e2fsprogs/misc/mke2fs/android_arm64_armv8-a/unstripped/mke2fs.rsp out/soong/.intermediates/external/libcxx/libc++_static/android_arm64_armv8-a_static/libc++_static.a out/soong/.intermediates/external/libcxxabi/libc++demangle/android_arm64_armv8-a_static/libc++demangle.a -Wl,--start-group prebuilts/clang/host/linux-x86/clang-r416183b1/lib64/clang/12.0.7/lib/linux/libclang_rt.builtins-aarch64-android.a -Wl,--end-group out/soong/.intermediates/external/e2fsprogs/lib/ext2fs/libext2fs/android_arm64_armv8-a_shared/libext2fs.so out/soong/.intermediates/external/e2fsprogs/lib/blkid/libext2_blkid/android_arm64_armv8-a_shared/libext2_blkid.so out/soong/.intermediates/external/e2fsprogs/misc/libext2_misc/android_arm64_armv8-a_shared/libext2_misc.so out/soong/.intermediates/external/e2fsprogs/lib/uuid/libext2_uuid/android_arm64_armv8-a_shared/libext2_uuid.so out/soong/.intermediates/external/e2fsprogs/lib/support/libext2_quota/android_arm64_armv8-a_shared/libext2_quota.so out/soong/.intermediates/external/e2fsprogs/lib/et/libext2_com_err/android_arm64_armv8-a_shared/libext2_com_err.so out/soong/.intermediates/external/e2fsprogs/lib/e2p/libext2_e2p/android_arm64_armv8-a_shared/libext2_e2p.so out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_shared_current/libc.so out/soong/.intermediates/bionic/libm/libm/android_arm64_armv8-a_shared_current/libm.so out/soong/.intermediates/bionic/libdl/libdl/android_arm64_armv8-a_shared_current/libdl.so out/soong/.intermediates/bionic/libc/crtend_android/android_arm64_armv8-a/obj/bionic/libc/arch-common/bionic/crtend.o -o out/soong/.intermediates/external/e2fsprogs/misc/mke2fs/android_arm64_armv8-a/unstripped/mke2fs -target aarch64-linux-android10000 -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined-version -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_stripped.a -Wl,--exclude-libs,libunwind_llvm.a -Wl,--exclude-libs,libunwind.a -Wl,--icf=safe -fuse-ld=lld -Wl,--pack-dyn-relocs=android+relr -Wl,--no-undefined -Wl,--hash-style=gnu -Wl,-z,separate-code -Wl,-z,max-page-size=4096  -Wl,--exclude-libs=libclang_rt.builtins-aarch64-android.a  -pie -nostdlib -Bdynamic -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,-dynamic-linker,/system/bin/linker64
ld.lld: error: out/soong/.intermediates/external/e2fsprogs/misc/mke2fs/android_arm64_armv8-a/obj/external/e2fsprogs/misc/util.o:1: unclosed comment in a linker script
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
12:26:28 ninja failed with: exit status 1

图片.png (32.73 KB, 下载次数: 1058)

图片.png

2022-08-26 13-12-11屏幕截图.png (29.29 KB, 下载次数: 1039)

2022-08-26 13-12-11屏幕截图.png
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2022-8-26 14:20:49        只看该作者  9#
zz123456 发表于 2022-8-26 13:15
硬件: 内存16G 磁盘剩余空间大于250G

修改环境还是一样报错:

编译的时间主要看服务器性能,服务器好一点整体编译第一次编译都有可能5-6小时,差一些可能要12小时或是更久
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2022-8-26 14:31:55        只看该作者  10#
zz123456 发表于 2022-8-26 13:15
硬件: 内存16G 磁盘剩余空间大于250G

修改环境还是一样报错:

出现如下这种问题,有可能是你编译的过程中,手动中断,其他中断导致,需要make clean 后再重新编译
ld.lld: error: out/soong/.intermediates/external/e2fsprogs/misc/mke2fs/android_arm64_armv8-a/obj/external/e2fsprogs/misc/util.o:1: unclosed comment in a linker script
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
12:26:28 ninja failed with: exit status 1
回复

使用道具 举报

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

本版积分规则

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