我正在一台x64笔记本电脑上构建AOSP 13,该笔记本电脑具有16 GB RAM和第12代Core i7规格。在成功地将我的repo与repo sync
命令同步之后,我只执行了以下标准命令。在构建过程的开始,我得到了以下错误。通过查看互联网资源,每个人都谈到了同步问题。但是,我的同步过程成功完成,没有任何错误或警告。
root@User:/home/user/android13# source build/envsetup.sh
root@User:/home/user/android13# lunch 47
root@User:/home/user/android13# m
16:10:32 ************************************************************
16:10:32 You are building on a machine with 15.3GB of RAM
16:10:32
16:10:32 The minimum required amount of free memory is around 16GB,
16:10:32 and even with that, some configurations may not work.
16:10:32
16:10:32 If you run into segfaults or other errors, try reducing your
16:10:32 -j value.
16:10:32 ************************************************************
16:10:32 Build sandboxing disabled due to nsjail error.
build/make/core/soong_config.mk:209: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has
been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
build/make/core/soong_config.mk:210: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR ha
s been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
TARGET_PRODUCT=aosp_x86_64
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.0-34-generic-x86_64-Ubuntu-22.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=TQ3C.230805.001.B2
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl
hardware/google/camera hardware/google/camera/devices/EmulatedCamera
============================================
[ 1% 3/195] test github.com/google/blueprint/pathtools
FAILED: out/host/linux-x86/bin/go/blueprint-pathtools/test/test.passed
out/host/linux-x86/bin/gotestrunner -p build/blueprint/pathtools -f out/host/lin
ux-x86/bin/go/blueprint-pathtools/test/test.passed -- out/host/linux-x86/bin/go/
blueprint-pathtools/test/test -test.short
--- FAIL: TestGlobEscapes (0.00s)
--- FAIL: TestGlobEscapes/**/* (0.00s)
glob_test.go:571: incorrect matches list:
glob_test.go:571: pattern: "**/*"
glob_test.go:571: got: []string{"a/", "b", "a/a"}
glob_test.go:571: expected: []string{"*", "**/", "?", "a/", "b", "**/*",
"**/a", "**/b/", "**/b/b", "a/a"}
glob_test.go:571: incorrect deps list:
glob_test.go:571: pattern: "**/*"
glob_test.go:571: got: []string{".", "a"}
glob_test.go:571: expected: []string{".", "**", "**/b", "a"}
--- FAIL: TestGlobEscapes/**/\* (0.00s)
glob_test.go:571: incorrect matches list:
glob_test.go:571: pattern: "**/\\*"
glob_test.go:571: got: []string(nil)
glob_test.go:571: expected: []string{"*", "**/*"}
glob_test.go:571: incorrect deps list:
glob_test.go:571: pattern: "**/\\*"
glob_test.go:571: got: []string{".", "a"}
glob_test.go:571: expected: []string{".", "**", "**/b", "a"}
--- FAIL: TestGlobEscapes/\*\*/* (0.00s)
glob_test.go:571: incorrect matches list:
glob_test.go:571: pattern: "\\*\\*/*"
glob_test.go:571: got: []string(nil)
glob_test.go:571: expected: []string{"**/*", "**/a", "**/b/"}
glob_test.go:571: incorrect deps list:
glob_test.go:571: pattern: "\\*\\*/*"
glob_test.go:571: got: []string{"."}
glob_test.go:571: expected: []string{".", "**"}
--- FAIL: TestGlobEscapes/\*\*/**/* (0.00s)
glob_test.go:571: incorrect matches list:
glob_test.go:571: pattern: "\\*\\*/**/*"
glob_test.go:571: got: []string(nil)
glob_test.go:571: expected: []string{"**/*", "**/a", "**/b/", "**/b/b"}
glob_test.go:571: incorrect deps list:
glob_test.go:571: pattern: "\\*\\*/**/*"
glob_test.go:571: got: []string{"."}
glob_test.go:571: expected: []string{".", "**", "**/b"}
FAIL
16:10:32 soong bootstrap failed with: exit status 1
#### failed to build some targets (1 seconds) ####
我执行了repo sync
和m clean
命令几次。但问题依然存在。有谁能帮我解决这个问题吗?
1条答案
按热度按时间pexxcrt21#
问题是将AOSP的源代码从Ubuntu PC物理复制到带有NTFS文件系统的外部硬盘驱动器。我复制了整个AOSP源代码,没有压缩。因此,放在测试目录中的一些文件受到了NTFS文件系统限制的影响。当我把它们复制到我的Ubuntu PC上时,问题就暴露了。这就是为什么
repo sync
和m clean
不能解决这个问题。为了解决这个问题,我从源代码中删除了CTS和test文件夹,并再次执行了
repo sync
命令。在将这些删除的文件夹替换为来自原始文件夹的新文件夹后,构建过程完成,没有任何严重问题。