I'm attempting to build using the steps on the AOSP website, however the builds appear to be failing after about an 2 and a half - 3 hours with the following:
selinux_fc = (str) out/target/product/sailfish/obj/PACKAGING/target_files_intermediates/aosp_sailfish-target_files-eng.aaron/META/file_contexts.bin
squashfs_sparse_flag = (str) -s
system_root_image = (str) true
system_verity_block_device = (str) /dev/block/bootdevice/by-name/system
tool_extensions = (str) device/google/marlin/sailfish/../common
userdata_size = (int) 10737418240
vendor_verity_block_device = (str) /dev/block/bootdevice/by-name/vendor
verity = (str) true
verity_fec = (str) true
verity_key = (str) build/target/product/security/verity
verity_signer_cmd = (str) verity_signer
running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt -out /tmp/key-ucSeBO.key
running: brillo_update_payload generate --payload /tmp/payload-45UjbA.bin --target_image out/target/product/sailfish/obj/PACKAGING/target_files_intermediates/aosp_sailfish-target_files-eng.aaron.zip
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1443, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1321, in main
source_file=OPTIONS.incremental_source)
File "./build/tools/releasetools/ota_from_target_files", line 1028, in WriteABOTAPackageWithBrilloScript
p1 = common.Run(cmd, stdout=log_file, stderr=subprocess.STDOUT)
File "/media/storage/android/build/make/tools/releasetools/common.py", line 115, in Run
return subprocess.Popen(args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
ninja: build stopped: subcommand failed.
00:52:33 ninja failed with: exit status 1
build/core/
main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
#### make failed to build some targets (03:08:02 (hh:mm:ss)) ####
I'm not totally sure what is causing the build to fail...but if anyone has any advice I'd be very appreciative.