- Edited
Hi all, new GOS-user here. I chose GOS for privacy mainly but security also and the sandboxing of Google Play. I am trying to build GOS myself but the process fails. I can't really understand why. It seems like something wasn't built earlier in the process but when I search for "failed:" or "error" I either get no other usable hits or way too many because "error" occurs in a lot of classes and the log file is 650mb. So I have cut out the last part of the log containing the only errors I could reasonably find. I hope someone can point me in the right direction.
FAILED: out/target/product/husky/obj/PACKAGING/target_files_intermediates/husky-target_files.zip.list
ls: out/target/product/husky/vendor_kernel_ramdisk: No such file or directory
ls: out/target/product/husky/data: No such file or directory
2024-05-26 19:30:16 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2024-05-26 19:30:16 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2024-05-26 19:30:16 - common.py - WARNING : Failed to read ODM/etc/build.prop
2024-05-26 19:30:16 - common.py - WARNING : Failed to read ODM/build.prop
2024-05-26 19:30:16 - common.py - WARNING : Failed to read build.prop for partition odm
2024-05-26 19:30:16 - common.py - WARNING : Failed to read ODM_DLKM/etc/build.prop
2024-05-26 19:30:16 - common.py - WARNING : Failed to read ODM_DLKM/build.prop
2024-05-26 19:30:16 - common.py - WARNING : Failed to read build.prop for partition odm_dlkm
2024-05-26 19:30:16 - common.py - WARNING : Failed to read IMAGES/boot.img
2024-05-26 19:30:16 - common.py - WARNING : Failed to read IMAGES/init_boot.img
2024-05-26 19:30:16 - add_img_to_target_files.py - INFO :
++++ boot ++++
2024-05-26 19:30:16 - common.py - INFO : building image from target_files BOOT...
2024-05-26 19:30:16 - common.py - INFO : Running: "out/host/linux-x86/bin/mkbootimg --kernel /home/user/GOS14/out/target/product/husky/obj/PACKAGING/target_files_intermediates/husky-target_files/BOOT/kernel --cmdline --header_version 4 --os_version 14 --os_patch_level 2024-05-05 --output /home/user/GOS14/out/soong/.temp/tmp29hfd4c7"
2024-05-26 19:30:16 - common.py - INFO :
2024-05-26 19:30:16 - common.py - INFO : Running: "/home/user/GOS14/out/host/linux-x86/bin/avbtool add_hash_footer --image /home/user/GOS14/out/soong/.temp/tmp29hfd4c7 --partition_size 67108864 --partition_name boot --salt 7c12f474ff8f22ac05503618be63470464beb83d6242dc436f813cc8cca264a7 --prop com.android.build.boot.os_version:14 --prop com.android.build.boot.fingerprint:google/husky/husky:14/AP1A.240505.005/2024052400:user/test-keys --prop com.android.build.boot.security_patch:2024-05-05"
2024-05-26 19:30:16 - common.py - INFO :
2024-05-26 19:30:17 - add_img_to_target_files.py - INFO :
++++ init_boot ++++
2024-05-26 19:30:17 - common.py - INFO : building image from target_files INIT_BOOT...
2024-05-26 19:30:17 - common.py - INFO : Running: "/home/user/GOS14/out/host/linux-x86/bin/mkbootfs -f /home/user/GOS14/out/target/product/husky/obj/PACKAGING/target_files_intermediates/husky-target_files/META/init_boot_filesystem_config.txt -n /home/user/GOS14/out/target/product/husky/obj/PACKAGING/target_files_intermediates/husky-target_files/META/ramdisk_node_list /home/user/GOS14/out/target/product/husky/obj/PACKAGING/target_files_intermediates/husky-target_files/INIT_BOOT/RAMDISK"
2024-05-26 19:30:17 - common.py - INFO : Running: "/home/user/GOS14/out/host/linux-x86/bin/lz4 -l -12 --favor-decSpeed"
2024-05-26 19:30:17 - common.py - INFO : Running: "out/host/linux-x86/bin/mkbootimg --header_version 4 --os_version 14 --os_patch_level 2024-05-05 --ramdisk /home/user/GOS14/out/soong/.temp/tmpv44e9mn4 --output /home/user/GOS14/out/soong/.temp/tmph518i24s"
2024-05-26 19:30:17 - common.py - INFO :
2024-05-26 19:30:17 - common.py - INFO : Running: "/home/user/GOS14/out/host/linux-x86/bin/avbtool add_hash_footer --image /home/user/GOS14/out/soong/.temp/tmph518i24s --partition_size 0x800000 --partition_name init_boot --prop com.android.build.init_boot.os_version:14 --prop com.android.build.init_boot.fingerprint:google/husky/husky:14/AP1A.240505.005/2024052400:user/test-keys --prop com.android.build.init_boot.security_patch:2024-05-05"
2024-05-26 19:30:17 - common.py - INFO :
2024-05-26 19:30:17 - add_img_to_target_files.py - INFO :
++++ vendor_boot ++++
2024-05-26 19:30:17 - common.py - INFO : building image from target_files VENDOR_BOOT...
2024-05-26 19:30:17 - common.py - INFO : Running: "/home/user/GOS14/out/host/linux-x86/bin/mkbootfs /home/user/GOS14/out/target/product/husky/obj/PACKAGING/target_files_intermediates/husky-target_files/VENDOR_BOOT/RAMDISK"
2024-05-26 19:30:17 - common.py - INFO : Running: "/home/user/GOS14/out/host/linux-x86/bin/lz4 -l -12 --favor-decSpeed"
2024-05-26 19:30:24 - common.py - INFO : Running: "out/host/linux-x86/bin/mkbootimg --vendor_cmdline bootloader.pixel.MTE_FORCE_ON exynos_drm.load_sequential=1 g2d.load_sequential=1 samsung_iommu_v9.load_sequential=1 swiotlb=noforce disable_dma32=on earlycon=exynos4210,0x10870000 console=ttySAC0,115200 androidboot.console=ttySAC0 printk.devkmsg=on cma_sysfs.experimental=Y cgroup_disable=memory rcupdate.rcu_expedited=1 rcu_nocbs=all swiotlb=1024 cgroup.memory=nokmem sysctl.kernel.sched_pelt_multiplier=4 kasan=off at24.write_timeout=100 log_buf_len=1024K bootconfig --header_version 4 --os_version 14 --os_patch_level 2024-05-05 --vendor_ramdisk /home/user/GOS14/out/soong/.temp/tmps2wvxc8o --vendor_boot /home/user/GOS14/out/soong/.temp/tmp2t0pjoqv --vendor_bootconfig /home/user/GOS14/out/target/product/husky/obj/PACKAGING/target_files_intermediates/husky-target_files/VENDOR_BOOT/vendor_bootconfig"
2024-05-26 19:30:24 - common.py - INFO :
2024-05-26 19:30:24 - common.py - INFO : Running: "/home/user/GOS14/out/host/linux-x86/bin/avbtool add_hash_footer --image /home/user/GOS14/out/soong/.temp/tmp2t0pjoqv --partition_size 0x04000000 --partition_name vendor_boot --prop com.android.build.vendor_boot.fingerprint:google/husky/husky:14/AP1A.240505.005/2024052400:user/test-keys"
2024-05-26 19:30:24 - common.py - INFO :
2024-05-26 19:30:24 - add_img_to_target_files.py - INFO :
++++ vendor_kernel_boot ++++
2024-05-26 19:30:24 - common.py - INFO : building image from target_files VENDOR_KERNEL_BOOT...
2024-05-26 19:30:24 - common.py - INFO : Running: "/home/user/GOS14/out/host/linux-x86/bin/mkbootfs /home/user/GOS14/out/target/product/husky/obj/PACKAGING/target_files_intermediates/husky-target_files/VENDOR_KERNEL_BOOT/RAMDISK"
mkbootfs: cannot open directory '/home/user/GOS14/out/target/product/husky/obj/PACKAGING/target_files_intermediates/husky-target_files/VENDOR_KERNEL_BOOT/RAMDISK': No such file or directory
2024-05-26 19:30:24 - common.py - INFO : Running: "/home/user/GOS14/out/host/linux-x86/bin/lz4 -l -12 --favor-decSpeed"
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/user/GOS14/out/host/linux-x86/bin/add_img_to_target_files/__main__.py", line 12, in <module>
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "add_img_to_target_files.py", line 1262, in <module>
File "add_img_to_target_files.py", line 1254, in main
File "add_img_to_target_files.py", line 1000, in AddImagesToTargetFiles
File "common.py", line 2181, in GetVendorKernelBootImage
File "common.py", line 2043, in _BuildVendorBootImage
File "common.py", line 1713, in _MakeRamdisk
AssertionError: mkbootfs of /home/user/GOS14/out/target/product/husky/obj/PACKAGING/target_files_intermediates/husky-target_files/VENDOR_KERNEL_BOOT ramdisk failed
[140515/140677] out/host/linux-x86/bin/sbox --sandbox-path out/soong/.temp --output-dir out/soong/.intermediates/frameworks/base/api/api-stubs-docs-non-updatable/android_common/metalava --manifest out/soong/.intermediates/frameworks/base/api/api-stubs-docs-non-updatable/android_common/metalava.sbox.textproto --write-if-changed
metalava wrote updated baseline to /home/user/GOS14/out/soong/.temp/sbox/dcabbf69fbe8e32ae16e786d21b129ef1759ab95/./out/api_lint_baseline.txt
metalava wrote updated baseline to /home/user/GOS14/out/soong/.temp/sbox/dcabbf69fbe8e32ae16e786d21b129ef1759ab95/./out/last_released_baseline.txt
status: ninja: build stopped: subcommand failed.
verbose: ninja: metric count avg (us) total (ms)
verbose: ninja: .ninja load 1 3519364.0 3519.4
verbose: ninja: .ninja load : split manifest 4 2750.2 11.0
verbose: ninja: .ninja load : parse chunks 4 377172.0 1508.7
verbose: ninja: .ninja load : alloc scope tables 4 1231.2 4.9
verbose: ninja: .ninja load : scope setup 34 3828.1 130.2
verbose: ninja: .ninja load : scope setup : bindings 34 1261.0 42.9
verbose: ninja: .ninja load : scope setup : rules 34 1749.2 59.5
verbose: ninja: .ninja load : edge setup 1 1490844.0 1490.8
verbose: ninja: ConcurrentHashMap rehash 1 31273.0 31.3
verbose: ninja: canonicalize str 1400986 0.2 219.9
verbose: ninja: canonicalize path 11723369 0.1 935.8
verbose: ninja: .ninja load : link edge outputs 1 86013.0 86.0
verbose: ninja: .ninja load : link edge inputs 1 160389.0 160.4
verbose: ninja: .ninja load : default targets 1 252.0 0.3
verbose: ninja: .ninja load : build edge table 1 31111.0 31.1
verbose: ninja: .ninja load : unload files 1 95149.0 95.1
verbose: ninja: node stat 481370 21.7 10465.5
verbose: ninja: .ninja_log load 1 7546.0 7.5
verbose: ninja: ConcurrentHashMap rehash 1 1.0 0.0
verbose: ninja: .ninja_deps load 1 5745.0 5.7
verbose: ninja: dep scan 1 775560.0 775.6
verbose: ninja: dep scan : collect nodes+edges 1 24660.0 24.7
verbose: ninja: dep scan : pre-stat nodes 1 693439.0 693.4
verbose: ninja: eval command 424095 6.4 2697.1
verbose: ninja: hash command 283881 1.0 269.7
verbose: ninja: node lstat 523813 3.0 1580.7
verbose: ninja: dep scan : precompute edge info 1 3065.0 3.1
verbose: ninja: dep scan : main pass 1 50194.0 50.2
verbose: ninja: dep scan : clear pre-stat 1 3651.0 3.7
verbose: ninja: RefreshPriority 1 3155504.0 3155.5
verbose: ninja: StartEdge 143438 495.8 71111.3
verbose: ninja: FinishCommand 140214 292.8 41053.1
verbose: ninja:
verbose: ninja: path->node hash load 0.42 (2810440 entries / 6672726 buckets), 2095540 edges
verbose: ninja: 337166 maj faults, 1492000 min faults, 8369 MiB maxrss, 615 MiB rss