Re: [android-building] product_config.mk syntax error ?

2021-12-21 Thread 'Dan Willemsen' via Android Building
It appears that make & ckati both treat that as "" == "," (when $(TARGET_BUILD_VARIANT) is `user`), so that case never triggers. I've posted a removal of the second comma here: https://android-review.googlesource.com/c/platform/build/+/1931200/ Thanks, Dan On Tue,

Re: [android-building] Raw ninja build log (not hashes)

2021-12-28 Thread 'Dan Willemsen' via Android Building
the same when you run it on the command line yourself. - Dan On Tue, Dec 28, 2021 at 6:52 PM Арсений Марьин wrote: > I want to obtain ninja build log with actual bash commands (not hashes). > Is it possible? > > -- > -- > You received this message because you are subscribed to the &

[android-building] Re: building cts/vts

2021-11-17 Thread 'Dan Willemsen' via Android Building
uild does use `lunch aosp_arm64`/etc, as the generically built test apps are expected to be compatible with any device with the same general architecture (arm vs x86 -- if the build system supported it, we'd have a single CTS/VTS build including all architectures). - Dan On Wednesday, Novembe

Re: [android-building] AOSP Compile Time

2021-10-27 Thread 'Dan Willemsen' via Android Building
oducts, targets, and options. - Dan On Wed, Oct 27, 2021 at 3:50 AM William Durham wrote: > With a SN550 1tb nvme home directory and 500gb nvme for my out directory, > core i5 10600k, 32gb ram, from a fresh sync, no ccache, its 2hrs or so here > > On Tue, Oct 26, 2021 at 4:32 P

Re: [android-building] Re: building cts/vts

2021-11-29 Thread 'Dan Willemsen' via Android Building
with those instructions. Our CI builds tend to be `userdebug`, so I wouldn't be surprised if that's what the shipping CTS binaries are built with, but they could also be built with `user` -- it really shouldn't make a difference. - Dan On Mon, Nov 29, 2021 at 7:49 PM Yeong Jian wrote: > Hello

Re: [android-building] Re: Run shell script before include $(BUILD_PREBUILT)

2021-12-13 Thread 'Dan Willemsen' via Android Building
own every build as we serially execute every one of these every time (even if there's nothing to build). - Dan On Mon, Dec 13, 2021 at 2:49 PM Paulo Maia wrote: > Have you tried using $(shell) ? > RESULT:= $(shell ($(LOCAL_PATH)/yourscript.sh)) > > Also you I think

Re: [android-building] Finding target based on source files

2021-12-13 Thread 'Dan Willemsen' via Android Building
, not automatically. Test capacity is also a concern, and you'll find TEST_MAPPING files throughout AOSP that attempt to say which tests should be run when files under them are changed. Here are the docs for these: https://source.android.com/compatibility/tests/development/test-mapping - Dan On Mon, Dec 13

Re: [android-building] Build faild randomly caused by resouce copy race condition during apk buiding

2021-07-20 Thread 'Dan Willemsen' via Android Building
One fix for this is to move over to using an Android.bp to build your app rather than an Android.mk  But I also submitted a fix for this into aosp/master last week: https://android-review.googlesource.com/c/platform/build/+/1764131 - Dan On Tue, Jul 20, 2021 at 9:42 AM raymond@gmail.com

Re: [android-building] Android 9 compilation error in Ubuntu 18.04.

2022-03-10 Thread 'Dan Willemsen' via Android Building
The error isn't in this log snippet, look for a section starting with "FAILED:". Newer versions have an out/error.log file with the errors, but Android 9 is too old for that. - Dan On Thu, Mar 10, 2022 at 2:43 AM hani wrote: > I compiled it into a VMWare environment on

Re: [android-building] Building ADB and Fastboot results in huge binaries

2022-01-19 Thread 'Dan Willemsen' via Android Building
you are using (different clang version / using `strip` instead of `llvm-strip` / etc). - Dan On Wed, Jan 19, 2022 at 6:25 PM Noah Andrews wrote: > When I build ADB and Fastboot for Windows, I get binaries that are many > times larger than the binaries available for download from

Re: [android-building] Compilation error while following codelab

2022-04-15 Thread 'Dan Willemsen' via Android Building
works/opt/telephony/+/2042785> that was submitted in the same topic. - Dan On Fri, Apr 15, 2022 at 8:31 AM Hassan Rom wrote: > Hello all, > > I'm following this codelab https://source.android.com/setup/start but I'm > getting the compilation error below: > > Any

Re: [android-building] libncurses5 package missing from Ubuntu 23.10+

2023-09-29 Thread 'Dan Willemsen' via Android Building
Try https://android-review.googlesource.com/c/platform/prebuilts/clang/host/linux-x86/+/2760210 instead On Fri, Sep 29, 2023 at 1:37 PM xstefen wrote: > > Would love to but one does not simply walk into *.corp.google.com > On Friday, September 22, 2023 at 6:59:09 PM UTC-5 Stephen Hines wrote:

Re: [android-building] Missing blueprints

2022-05-17 Thread 'Dan Willemsen' via Android Building
Did your `repo sync` finish successfully? It sounds like the build/blueprint project is missing or corrupted. - Dan On Tue, May 17, 2022 at 9:08 PM Red wrote: > red@Red-LINUX:~/source$ lunch > > You're building on Linux > > Warning: Cannot display lunch menu. > > Note:

Re: [android-building] Re: Build AOSP 11 with Google RBE service

2022-07-05 Thread 'Dan Willemsen' via Android Building
w which services claim support or have been tested with Android builds, but in theory it should be possible to make many of them work. - Dan On Mon, Jul 4, 2022 at 11:58 AM John Delight wrote: > Thanks Amith for the clarification. According to build logs in below link, > you are using RBE i

Re: [android-building] Re: Lunch combo options not shown

2022-06-15 Thread 'Dan Willemsen' via Android Building
There are also a variety of log files under out/dumpvars-* that may help find an error during the dumping of the list (it may show up better if you try to use an explicit target instead of the menu fallback: `lunch aosp_arm-eng`) - Dan On Wed, Jun 15, 2022 at 11:57 AM Thilo Jäggi wrote

Re: [android-building] Addr2line support in Android-13 release

2022-06-03 Thread 'Dan Willemsen' via Android Building
We've been moving away from GCC and GNU Binutils over to Clang+llvm tools. It looks like there's a version of llvm-addr2line in prebuilts/clang/host/linux-x86/llvm-binutils-stable/llvm-addr2line - Dan On Fri, Jun 3, 2022 at 4:21 PM Bala Ramasamy wrote: > Hi All, > We are trying

Re: [android-building] AOSP build time vs CPU core count (up to 56)

2022-06-06 Thread 'Dan Willemsen' via Android Building
d/community/remote-execution-services): `lunch aosp_arm64-userdebug; USE_RBE=true m` takes 18m46s - Dan On Wed, Jun 1, 2022 at 4:21 PM Christian Gagneraud wrote: > Hi all, > > We're looking into reducing our build time. > The first benchmark we did was to measure build time of aosp_

Re: [android-building] Re: dex2oatd fails due to unexpected mmap address

2022-07-28 Thread 'Dan Willemsen' via Android Building
generally attempts to avoid. - Dan On Thu, Jul 28, 2022 at 2:32 PM Michael Goffioul wrote: > This seems to be due to the kernel update on the build host, which > switched from 5.17 to 5.18. Because the error is related to unexpected mmap > address, and there was a recent kern

Re: [android-building] platform/system/bpf is not reachable

2022-08-01 Thread 'Dan Willemsen' via Android Building
There were some problems in our git infra, I believe they've mostly been resolved now, so please try again. Thanks, Dan On Mon, Aug 1, 2022 at 12:09 PM Amit Pundir wrote: > Hi Team, > > I'm not able to sync AOSP lately because platform/system/bpf is not > reac

Re: [android-building] Re: dex2oatd fails due to unexpected mmap address

2022-09-28 Thread 'Dan Willemsen' via Android Building
You can try this change, which was backported to Android 9 (P): https://android-review.googlesource.com/c/platform/art/+/2226578/ - Dan On Wed, Aug 24, 2022 at 5:50 PM Michael Goffioul wrote: > On Sun, Aug 14, 2022 at 8:30 AM Michael Goffioul < > michael.goffi...@gmail.c

Re: [android-building] Cannot build Android 13 with audio.a2dp.default module

2022-09-13 Thread 'Dan Willemsen' via Android Building
audio.a2dp.default is now part of the bluetooth mainline module <https://source.android.com/docs/core/architecture/modular-system>, and cannot be installed independently. It will be embedded in the mainline module instead. - Dan On Tue, Sep 13, 2022 at 6:11 PM Michael Goffioul wrote:

Re: [android-building] Mirror manifest contains unavailable repo

2022-08-04 Thread 'Dan Willemsen' via Android Building
This repo has been removed from the manifest in https://android-review.googlesource.com/2176262 - Dan On Thu, Aug 4, 2022 at 7:33 PM Al Sutton wrote: > Hey folks, > > The mirror manifest has a change[1] which adds a repo which isn't > available from the AOSP servers. > >

Re: [android-building] How to include external header files in cc_binary build

2023-01-09 Thread 'Dan Willemsen' via Android Building
ibraries -- cases where there are no source files, and everything you need is in the header files. So this is outside the expected use cases, which may cause problems as the build system evolves in the future (though misuses of this are fairly common). - Dan On Mon, Jan 9, 2023 at 2:28 PM Ne

Re: [android-building] How to build aapt2 for macOS?

2023-03-20 Thread 'Dan Willemsen' via Android Building
is Xcode and/or the xcode command line tools, but most of the same instructions for Linux should work otherwise. Then to build aapt2, you just need to run something like: source build/envsetup.sh lunch aosp_arm-eng m aapt2 - Dan On Mon, Mar 20, 2023 at 11:21 PM Chen Dai wrote: > He

Re: [android-building] Re: missing and no known rule to make it

2023-03-03 Thread 'Dan Willemsen' via Android Building
that the sap-api-java-static library is missing or not configured correctly. - Dan On Fri, Mar 3, 2023 at 2:08 PM Mutyala N V Durga Ashok wrote: > Hi Dan / Krishna, > > ninja: error: > '/home/vamsi/ctos/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes-header

Re: [android-building] Encountered PHONY error on owners.mk when first full-building of aosp

2023-04-04 Thread 'Dan Willemsen' via Android Building
at the root of the source tree) - Dan On Tue, Apr 4, 2023 at 10:23 AM 김민경 wrote: > I reset my aosp workspace. > For it, I did repo init and sync and tried first building. > > But it fails with this e

Re: [android-building] execute envsetup.sh

2023-04-13 Thread 'Dan Willemsen' via Android Building
ugh it does mean that some git operations will need network access to fetch missing objects on demand. If you don't care about the history, an alternative to that is `--depth=1` (there can be issues around updating a tree that's created like that, so in general I don't suggest it) - Dan On Thu, Apr

Re: [android-building] building lunch #48

2023-08-02 Thread 'Dan Willemsen' via Android Building
. The art docs on how to use it are here: https://cs.android.com/android/platform/superproject/main/+/main:art/test/README.chroot.md - Dan On Wed, Aug 2, 2023 at 11:13 AM Donald Harter wrote: > I am trying to build this but get errors l

Re: [android-building] Re: How to compile the user version for Android 12?

2023-08-02 Thread 'Dan Willemsen' via Android Building
> > I think by "user", you mean "release". > Just to clarify, it is "user". There used to be a "release" vs "debug" choice too, but that hasn't existed or done anything for many years. And yes, the list you see in the `lunch` menu is just a small selection of targets someone thought would be

Re: [android-building] How to do Incremental build with updated compiler flags

2023-08-03 Thread 'Dan Willemsen' via Android Building
ths, and the path change will trigger a command line change, and thus proper incremental builds. - Dan On Thu, Aug 3, 2023 at 9:06 AM Vijay Ede wrote: > Hi, > I want to check if we have an option to do incremental build after we > change C/C++ compiler flags in the build configuration file

Re: [android-building] How to do Incremental build with updated compiler flags

2023-08-07 Thread 'Dan Willemsen' via Android Building
ies. Any file listing or presence operations must be going through the soong/blueprint Glob methods, and any reading of environment variables must go through the soong's Config environment functions (Getenv / GetenvWithDefault / IsEnvTrue / etc). - Dan On Mon, Aug 7, 2023 at 2:22 PM Vijay Ede

Re: [android-building] how the dist target is built?

2023-08-07 Thread 'Dan Willemsen' via Android Building
main portion of the build, based on all the goals(/targets) passed into dist-for-goals, here <https://cs.android.com/android/platform/superproject/main/+/main:build/make/core/distdir.mk;drc=45c0c2c9ac5402b629c17fb0e3495b4ce994158a;l=211> . - Dan On Mon, Aug 7, 2023 at 2:23 PM Yongqin Liu

Re: [android-building] Compile zipalign.exe as 64-bit

2023-06-28 Thread 'Dan Willemsen' via Android Building
There is build system support for 64-bit windows binaries, but it's not very well tested. A change like https://android-review.git.corp.google.com/c/platform/build/+/2645079 will produce a 64-bit zipalign.exe. On Wed, Jun 28, 2023 at 3:25 PM 'enh' via Android Building <

Re: [android-building] Re: How to skip robolectric host tests

2023-05-04 Thread 'Dan Willemsen' via Android Building
Just m Settings would work as well, mma builds and installs everything under the directory, which would include building the robotests (even if you disable running them with DISABLE_ROBO_RUN_TESTS) - Dan On Fri, May 5, 2023 at 1:27 AM satur...@gmail.com wrote: > I figured out how to

<    1   2   3