Hi, Thanks for the quick response, just before this was approved by moderation I got it working, I simply deleted everything and then ran repo init and repo sync again and eventually it worked, thank goodness. Still have no idea what the issue was, but at least it's fixed now. I actually have another few (Hopefully simple) questions, to avoid spam I'll just ask them here: I've shifted from trying to compile all of Android to just compiling Bionic for an ARM64 phone, I was trying to follow the instructions and ran lunch aosp_arm64_only_phone-aosp_current-user in the root repository, but it errored saying:
build/make/core/product_config.mk:226: error: Cannot locate config makefile for product "aosp_arm64_only_phone" Is this the correct target for a phone with an ARM64 processor? I don't have a specific phone in mind so this should hopefully work for any ARM64 phone. I omitted cf as the instructions say it's optional and only for when you want to run it on a cuttlefish emulator. Also, is there an mm target to install Bionic to a specific directory, akin to the --prefix= option in many configure scripts which instruct make install to place the compiled binaries in that directory? And is there a way to use a custom compiler binary when compiling Bionic besides just the prebuilt clang in the AOSP repository? I'm doing some experimentation here, fully accept that this may be unsupported, but I just would like to know if I can just export CC and CXX before running any commands to change the compiler used to my own. Thanks for the help, have a good day! best regards, Julian On Tuesday, December 30, 2025 at 4:18:30 AM UTC+8 Dan Willemsen wrote: > Something has gone very wrong in your sync -- build/make has existed ever > since Android 8 in 2017 (at which point build/core became a symlink to > build/make/core). I'd recommend you verify your sync procedures in > https://source.android.com/docs/setup/download > > - Dan > > On Mon, Dec 29, 2025 at 3:11 PM Julian Waters <[email protected]> wrote: > >> Hi all, >> >> I'm trying to compile Android following the instructions at >> https://source.android.com/docs/setup/build/building but running source >> build/envsetup.sh in the platform directory always returns "Couldn't locate >> the top of the tree. Always source build/envsetup.sh from the root of the >> tree." without fail. Trying to run the command from anywhere else just >> leads to bash not being able to find envsetup.sh at all, so that's out of >> the question. Some digging into the source code reveals that the script is >> looking for build/make/core/envsetup.mk but no such file exists in the >> entire source tree, only build/core/envsetup.mk so this will always >> fail. But I seem to be the only one who cannot compile Android at all, it >> works for everyone else despite the file not existing, otherwise this >> strange code would've been changed long ago. Is there anything I am doing >> wrong running the command? Thanks in advance! >> >> best regards, >> Julian >> >> -- >> -- >> You received this message because you are subscribed to the "Android >> Building" mailing list. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> 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 [email protected]. >> To view this discussion visit >> https://groups.google.com/d/msgid/android-building/da48daf2-a5ff-4785-8868-7b44d1ed920bn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/android-building/da48daf2-a5ff-4785-8868-7b44d1ed920bn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/android-building/6bec4a3f-1430-459c-bbb3-e9f91cd8a97fn%40googlegroups.com.
