Building Android 7 AOSP [Errno 2] No such file or directory

2,291 views
Skip to first unread message

Aaron Rieder

unread,
Apr 17, 2017, 5:06:34 PM4/17/17
to Android Building
Good Morning All,

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_size               = (int) 2147483648
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.

Thank you!

Dan Willemsen

unread,
Apr 17, 2017, 5:21:23 PM4/17/17
to android-...@googlegroups.com, Tao Bao
It looks like brillo_update_payload is missing -- for some reason we don't seem to have a dependency on that tool. Does running `m -j brillo_update_payload` then running your build again fix the issue? You may need to run "m -j otatools" if something else is missing too.

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vishnu M J

unread,
Aug 30, 2019, 1:37:36 PM8/30/19
to Android Building
Hi

Have you got it to work. I am having this same with building Android 7.

Tao Bao

unread,
Aug 30, 2019, 2:27:33 PM8/30/19
to android-...@googlegroups.com
For the particular failure, it was looking for delta_generator but failed. Try `m -j otatools` to build all the required tools before calling ota_from_target_files.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages