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] 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] 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 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] 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] 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

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] 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] 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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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] error.GitError: Cannot checkout platform/build/blueprint: Cannot initialize work tree for platform/build/blueprint

2022-01-04 Thread 'Dan Willemsen' via Android Building
is was mentioned, > that Google will no longer maintain the blueprint Git repository. > The standalone github project <https://github.com/google/blueprint> is no longer maintained, but it is still actively used within Android <https://android.googlesource.com/platform/build/blueprint/+l

Re: [android-building] Android envsetup.sh overrides pre-set TARGET_BUILD_TYPE env variable!

2022-01-04 Thread 'Dan Willemsen' via Android Building
serdebug && m dist - Dan On Tue, Jan 4, 2022 at 2:41 PM Abhayadev S wrote: > Hi, > > I am using a master build script to trigger the android build and the > master script does the following steps, > > *source build/envsetup.sh && lunch * > > Now in my ma

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 &

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] 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] 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] 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

[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] Error while building Android 12 for a signed image

2021-10-13 Thread 'Dan Willemsen' via Android Building
re no longer getting that protection. It would be a better idea to mark that as a known failure until you do the real testing on the release image (especially since in this case it'll also complain about you running an 'eng' build). - Dan On Wed, Oct 13, 2021 at 12:20 AM Salini Venate wrote: &

Re: [android-building] Android bootstrap fails with Golang panic

2021-10-06 Thread 'Dan Willemsen' via Android Building
It looks like this was an issue in "VSDK"-based trees that are using a vendor snapshot, and was fixed in master (but not in Android 12): https://android-review.googlesource.com/q/topic:vendor_snapshot-192647618 You can either try to cherry-pick that topic, or disable the VSDK. - Dan O

Re: [android-building] post install step for cc_binary

2021-10-04 Thread 'Dan Willemsen' via Android Building
) to $DIST_DIR (defaults to out/dist/) after a build, but you'd still need something wrapping the build to put them where you wanted, so that may or may not simplify things. - Dan On Mon, Oct 4, 2021 at 12:13 PM Abhayadev S wrote: > > Hi, > > I have a cc_binary module (name myBin) defin

Re: [android-building] cc_binary module name and binary name

2021-10-04 Thread 'Dan Willemsen' via Android Building
tps://android.googlesource.com/platform/build/soong/+/master/README.md#namespaces> and the same module name(myBin) so that only one will ever be exported to Make at a time, that can be chosen through PRODUCT_SOONG_NAMESPACES (PRODUCT_PACKAGES would just have myBin in either case). - Dan On Mon, Oct 4, 2021 at 12

Re: [android-building] ninja error while upgrading external/v8 in Nougat due to Android.bp

2021-09-14 Thread 'Dan Willemsen' via Android Building
Android.bp (and the Soong build system in general) wasn't really supported until Android-O, so an Android.bp will be ignored in Nougat. (There was some prototype support in Nougat under a USE_SOONG flag, but I really doubt that'll work for you) - Dan On Tue, Sep 14, 2021 at 4:19 PM Saurabh

Re: [android-building] Creating Symbolic Links in the /vendor partition

2021-08-27 Thread 'Dan Willemsen' via Android Building
tall a "/vendor/bin/foo -> /vendor/bin/my_binary" symlink whenever my_binary is installed. Then in your product makefile (no need to add libmylibrary, as it will get installed as a dependency): PRODUCT_PACKAGES += my_binary - Dan On Thu, Aug 26, 2021 at 10:49 AM Curt Schwaderer w

Re: [android-building] build android q version on ubuntu 18.04 all cpu at low priority

2021-08-27 Thread 'Dan Willemsen' via Android Building
argument list here <https://cs.android.com/android/platform/superproject/+/master:build/soong/ui/build/sandbox_linux.go;drc=0506361a60215defc5098a6253fdc8f51371ce88;l=158> . - Dan On Wed, Aug 18, 2021 at 10:40 AM Longping Tang wrote: > Hi Dan > I want to increase priority when building aos

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] Re: How to build AOSP with 8GB RAM

2021-07-13 Thread 'Dan Willemsen' via Android Building
javadoc tag, not an annotation / etc), so it cannot be disabled. - Dan On Tue, Jul 13, 2021 at 9:56 PM Ravishankar S wrote: > This process given below (for the Droid documentation build) does not work > for AOSP11 build! We have to use the method given below: > > > https://forum.xda-develope

[android-building] Re: Platform development on MacOS isn't supported as of June 22, 2021.

2021-07-08 Thread 'Dan Willemsen' via Android Building
efactoring those so that you don't need to build a system image in order to build the platform/build-tools zips. - Dan On Thursday, July 8, 2021 at 2:47:43 PM UTC-7 connor.t...@gmail.com wrote: > I saw this message - "*Important: Platform development on MacOS isn't > supported as of

Re: [android-building] ABI update Failed

2021-06-22 Thread 'Dan Willemsen' via Android Building
commands in an AOSP tree, where they would work). If you didn't make changes to the ABI, you'd want to debug that issue further rather than attempting to update the ABI to fix your build issue. - Dan On Tue, Jun 22, 2021 at 10:09 PM figs개발자 wrote: > Hi All > > i have a problem with the A

Re: [android-building] Re: Including Library in AOSP/frameworks/base/core

2021-06-22 Thread 'Dan Willemsen' via Android Building
ct/+/master:external/bouncycastle/srcgen_platform/generate_android_src.sh> used for bouncycastle are doing differently. - Dan On Tue, Jun 22, 2021 at 10:10 PM Yolo Pucky wrote: > So I actually got a solution to my problem mentioned on 09.06.2021. > However, I have another problem now, that

Re: [android-building] How to fix or avoid “Android.mk: error: ”libxyz (native:vendor) can not link against libgui.vendor (native:vndk_private)"?

2021-06-22 Thread 'Dan Willemsen' via Android Building
other VNDK libraries that are exposed to /vendor code. - Dan On Tue, Jun 22, 2021 at 10:10 PM Vitaly Bortz wrote: > Hi all, > Is there a modifiable condition[s]/rule[s] which I could change to allow > linking between two given libraries types and prevent the "can not link &g

Re: [android-building] Build error for target db845c-userdebug

2021-06-22 Thread 'Dan Willemsen' via Android Building
That doesn't actually look like the error -- there should be a line starting with `FAILED:` earlier in your console. You can always look at the dedicated error log after the build too, in out/error.log, which should only contain errors (not other build output that finished after the error). - Dan

Re: [android-building] clang++.real stack dump llvm when building nougat-86 android-x86

2021-06-22 Thread 'Dan Willemsen' via Android Building
in clang too, but that's rarer (and with clang & code that old, not all that useful to track down). - Dan On Tue, Jun 22, 2021 at 10:12 PM sazer kpla wrote: > Android Building > > [ 0% 13/29446] //external/llvm/lib/LTO:libLLVMLTO clang++ LTOModule.cpp > FAILED: > out/s

Re: [android-building] Re: Build problem

2021-06-15 Thread 'Dan Willemsen' via Android Building
If that doesn't work, try rebuilding the blob files, my understanding is that they've been fixed. Thanks, Dan On Tue, Jun 15, 2021 at 3:34 PM cptl...@gmail.com wrote: > In vendor/qcom/redfin/proprietary/Android.mk: > > There are several lines that say: > *LOCAL_NOTICE_FILE :=

Re: [android-building] AOSP on aws a1 instance (arm)

2021-06-08 Thread 'Dan Willemsen' via Android Building
/arm64, but that's for cross-compiling binaries for that configuration on an x86-64 system. - Dan On Tue, Jun 8, 2021 at 7:27 PM kkh wrote: > Hi, > > Anyone manage to build AOSP on arm host? After repo sync on > android-11.0.0_r35, did the source envsetup.sh and lunch command, b

Re: [android-building] how to distribute android 10/11 ?

2021-05-14 Thread 'Dan Willemsen' via Android Building
t in Android 12 either. You could always attempt to revert those removals in your own tree, but I don't know how complex that could be. RBE works with significantly more of the build actions than GOMA ever did. - Dan On Fri, May 14, 2021 at 3:37 PM Ruben Wu wrote: > Hi Dan, > While I un

Re: [android-building] Missing "deployagent.inc" in standalone ADB build

2021-05-04 Thread 'Dan Willemsen' via Android Building
We've got a public code search site that can help find these: https://cs.android.com/search?q=deployagent.inc==android%2Fplatform%2Fsuperproject -- in this case, it's defined in packages/modules/adb/Android.bp. - Dan On Mon, Apr 26, 2021 at 9:07 AM Daniel Caruso wrote: > Hi

Re: [android-building] How to avoid soong_build run in every build

2021-04-13 Thread 'Dan Willemsen' via Android Building
soong.log and compare timestamps of the files in out/soong/build.ninja.d to see what's triggering soong_build to run. - Dan On Mon, Apr 12, 2021 at 8:52 AM Mikael Björklund < mikael.bjorkl...@vidhance.com> wrote: > I have an AOSP tree were out/soong/.bootstrap/bin/soong_build > out/soo

Re: [android-building] How to run AOSP module in a verbose mode?

2021-03-03 Thread 'Dan Willemsen' via Android Building
You can see a list of all the commands run in the out/verbose.log.gz file after a build completes (at least on modern builds -- for older builds specify `showcommands` on the command line) - Dan On Wed, Mar 3, 2021 at 3:06 PM anands...@gmail.com wrote: > Hi All, > > I am debugging

Re: [android-building] Re: Soong build system install & use

2021-02-22 Thread 'Dan Willemsen' via Android Building
se. If you are trying a platform build, have you successfully downloaded the code and built something without any changes? - Dan On Fri, Feb 19, 2021 at 9:16 AM Akshay Sakare wrote: > Hello, > May be this document will help you > https://android.googlesource.com/platform/build/soo

Re: [android-building] Is there tool like androidmk to convert Android.bp to Android.mk?

2021-02-16 Thread 'Dan Willemsen' via Android Building
It would be simple enough to write one that handles a few use cases, but no, I don't know of one. The Android.mk that ndk-build uses was never the same format as the Android.mk used by the platform builds -- they just happened to share some names (and both used make). - Dan On Wed, Feb 3, 2021

Re: [android-building] how to distribute android 10/11 ?

2021-02-16 Thread 'Dan Willemsen' via Android Building
GOMA support has been removed on the AOSP master branch, and has been replaced with RBE. - Dan On Wed, Feb 3, 2021 at 9:30 AM 唐木村 wrote: > @Dan Willemsen > > >>> The build team does not recommend using Goma -- it does not work > particularly well with the Android

Re: [android-building] [Help] clang error while building on Mac OS X El Capitan

2021-02-16 Thread 'Dan Willemsen' via Android Building
best bet -- platform builds on Mac aren't entirely full-featured anyways (close enough for most development, but a handful of things can be missing). - Dan On Tue, Feb 16, 2021 at 2:07 PM Dan Willemsen wrote: > Older versions of Android don't build with newer versions of MacOS (the > i

Re: [android-building] [Help] clang error while building on Mac OS X El Capitan

2021-02-16 Thread 'Dan Willemsen' via Android Building
bet is probably to use a Linux virtual machine. That may be faster anyways. - Dan On Wed, Feb 3, 2021 at 9:30 AM Abhijeet Salunke wrote: > I have setup my Mac OS X for building Android. I am able to execute > following commands > - source build/envsetup.sh > - lunch > But w

Re: [android-building] android-9.0.0_r8 build error

2020-11-09 Thread 'Dan Willemsen' via Android Building
it working. - Dan On Mon, Nov 9, 2020 at 8:13 AM Arthur Clark wrote: > this is output message: > > > PLATFORM_VERSION_CODENAME=REL > PLATFORM_VERSION=9 > TARGET_PRODUCT=aosp_x86 > TARGET_BUILD_VARIANT=eng > TARGET_BU

Re: [android-building] Not able to build with OUT_DIR?

2020-11-05 Thread 'Dan Willemsen' via Android Building
This is definitely a bug, I uploaded a fix here: https://android-review.googlesource.com/c/platform/build/soong/+/1489596 - Dan On Thu, Nov 5, 2020 at 8:30 AM Yongqin Liu wrote: > Hi, All > > I want to build hikey960 with the default aosp tree with OUT_DIR specified, > but I g

Re: [android-building] Establishing a build environment

2020-09-30 Thread 'Dan Willemsen' via Android Building
is still standardized on Ubuntu 14.04 because it still needs to build some older versions of Android, which is why that text around "tested internally" is still there. Our developers are on a version of Debian Testing <https://en.wikipedia.org/wiki/GLinux> that is much more up to date

Re: [android-building] Replacement for BUILD_BROKEN_PHONY and phony-rebuild in android R

2020-08-11 Thread 'Dan Willemsen' via Android Building
) $(MAKE) -C $(PRIVATE_SRCDIR) O=$$(cd $(PRIVATE_OUT); pwd) ... (If you can guarantee that nothing later in the build will change KERNEL_SRCDIR/KERNEL_OUT, then you wouldn't need to use the PRIVATE_* indirection, but it's generally a good idea to do so to prevent issues in the future) - Dan On T

Re: [android-building] Replacement for BUILD_BROKEN_PHONY and phony-rebuild in android R

2020-08-10 Thread 'Dan Willemsen' via Android Building
ant as we improve per-action sandboxing to get better incremental builds and remote execution / cross-machine caching of build actions. We're not there yet, but that's the direction we'd like to be heading. - Dan On Wed, Jul 29, 2020 at 9:08 AM Sumit Kumar wrote: > hi all, > i am trying to

Re: [android-building] Add build tag from a blueprint

2020-08-10 Thread 'Dan Willemsen' via Android Building
files (which define things that may not even be used by the current build). What's your use case for setting this in an Android.mk / Android.bp file? - Dan On Mon, Aug 10, 2020 at 1:11 PM Simon Williams < simondavidwilliam...@gmail.com> wrote: > Using Android.mk, I'm able to add a new

Re: [android-building] aosp master code build fail with "FAILED: out/soong/.primary/soong-ui-build/test/test.passed"

2020-08-03 Thread 'Dan Willemsen' via Android Building
I believe this was fixed with https://android-review.googlesource.com/c/platform/build/soong/+/1384901, so sync your tree and that should go away. - Dan On Fri, Jul 31, 2020 at 11:11 AM Suhang Wang wrote: > I sync the latest code, but get fallowing build fail. > > Mac OS Catalin

Re: [android-building] repo sync fails on the latest Ubuntu

2020-07-01 Thread 'Dan Willemsen' via Android Building
Can you file an issue at https://bugs.chromium.org/p/gerrit/issues/entry?template=GoogleSource+Issue ? Thanks On Wed, Jul 1, 2020 at 2:38 PM Sasha Sirotkin wrote: > Tried 10 times already > > On Wed, Jul 1, 2020, 22:25 Ljube Babunski wrote: > >> Try again to sync. >>> >>> -- >> -- >> You

Re: [android-building] Controlling clang-tidy during the builds

2020-06-19 Thread 'Dan Willemsen' via Android Building
variable is set. - Dan On Fri, Jun 19, 2020 at 8:29 AM 'Wesolowski, Krzysztof' via Android Building wrote: > Hello, > > I have pretty big codebase, with most of BP modules specifying tidy: true. > > This codebase is then included in multiple product variants, and tidy > c

[android-building] Re: Custom AVD system images for Android Studio

2020-06-11 Thread Dan Devine
SOLVED Figured this out and got it working...adding for anyone searching after me. Based on experimentation, Android Studio appears to filter the results based on the flagsimply building a 'linux' image on Ubuntu will not satisfy OS X users of Android Studio. Android Studio appears to

[android-building] Custom AVD system images for Android Studio

2020-06-09 Thread Dan Devine
Hello, I'm trying to get my custom AVD image to show up in Android Studio's configured repositories. My goal is to create a custom AVD image on a build server and distribute that image across a team of developers. I'm following the instructions in the AOSP documentation here:

Re: [android-building] Um........Please help me!!!

2020-05-26 Thread 'Dan Willemsen' via Android Building
, are you able to execute it? - Dan On Tue, May 26, 2020 at 7:57 AM 박종현TV wrote: > I build android-8.1.0_r64 but an error occurred while build > > > pjh@pjh-System-Product-Name:/media/pjh/android/AOSP$ make > /media/pjh/android/AOSP/build/soong/cmd/microfactory/microfactory.bash: 줄 &

Re: [android-building] Re: android.bp privileged prop not work

2020-05-19 Thread 'Dan Willemsen' via Android Building
The Android.bp next to that go file is going to have a dep entry of "soong-cc" (which gives you access to the "android/soong/cc" package). "soong-java" will allow you to reference the "android/soong/java" package. - Dan On Tue, May 19, 2020 at 12:00 AM fan

Re: [android-building] android.bp privileged prop not work

2020-05-18 Thread 'Dan Willemsen' via Android Building
for temporary debugging, you probably want to use the VendorConfig functions instead, so that it can be configured by the product that you're building. - Dan On Mon, May 18, 2020 at 10:35 AM fanx lin wrote: > hi, I am buildding android Q , I want to build a app . and I want to use > build e

Re: [android-building] Issue building AOSP with docker running on Mojave

2020-05-14 Thread 'Dan Willemsen' via Android Building
How much RAM have you given docker? `free -h` shows how much is available. IIRC, unlike on linux, because docker on Mac is a VM, it can't grow to use as much as necessary. Our docs list 16GB as the minimum available to the build. - Dan On Thu, May 14, 2020 at 9:30 AM 6020peaks /\/\/\ <602

Re: [android-building] Re: shared library can't be copied into OTATOOLS

2020-05-07 Thread 'Dan Willemsen' via Android Building
to it, so maybe save it away in your own variable directly after this line: INTERNAL_OTATOOLS_PACKAGE_FILES := \ $(filter $(HOST_OUT)/%,$(call module-installed-files,$(INTERNAL_OTATOOLS_MODULES_WITH_DEPS))) - Dan On Thu, May 7, 2020 at 12:41 AM 임정민 wrote: > I haven't been checking otatools.

Re: [android-building] Re: shared library can't be copied into OTATOOLS

2020-05-06 Thread 'Dan Willemsen' via Android Building
-host.so -rwx-- 2.0 unx16736 bl defN 08-Jan-01 00:00 lib64/libcrypto_utils.so -rwx-- 2.0 unx 199776 bl defN 08-Jan-01 00:00 lib64/libcutils.so ... - Dan On Wed, May 6, 2020 at 4:58 PM 임정민 wrote: > Thanks for quick response. > Why I'm doing this. We use lpunpack including OTA

Re: [android-building] Re: shared library can't be copied into OTATOOLS

2020-05-06 Thread 'Dan Willemsen' via Android Building
ss they're used via `dlopen`). - Dan On Wed, May 6, 2020 at 4:27 PM 임정민 wrote: > I'm checking R OS > And I made something wrong the question. > I need OTATOOLS have shared library > until Q OS there is lines like > -- > 2504# Shar

Re: [android-building] Re: android build take eons

2020-05-04 Thread 'Dan Willemsen' via Android Building
of the build. > And be sure to use make -k to take advantage of all your CPUs. '-k' is keep going, you're thinking of '-j', but that's been the default for a while now. - Dan On Mon, May 4, 2020 at 12:29 PM 'Glenn Kasten' via Android Building < android-building@googlegroups.com> wrote

Re: [android-building] shared library can't be copied into OTATOOLS

2020-05-04 Thread 'Dan Willemsen' via Android Building
-shared-libs-deps. - Dan On Mon, May 4, 2020 at 8:48 AM 임정민 wrote: > Hi I found there are no shared library in ota packages. > > I expect there are some modules and shared libraries. > but only existing were modules like lpunpack. > I hope there are shared libraries such as libbase

Re: [android-building] "Build sandboxing disabled due to nsjail error. This may become fatal in the future."

2020-04-30 Thread 'Dan Willemsen' via Android Building
lso on the list is hiding things like /usr/include from the build, as we never want to use it. Potentially changing what parts of the output tree are read/write vs read-only vs invisible during different parts of the build is another idea I've had. - Dan On Thu, Apr 30, 2020 at 9:43 AM Ricky Ng-A

Re: [android-building] Memory leak?

2020-04-30 Thread 'Dan Willemsen' via Android Building
over its lifetime). next, kati takes ~6GB For some of our larger branches/targets, I've seen peaks at >14GB (~50GB lifetime allocs), with kati using >10GB. - Dan On Thu, Apr 30, 2020 at 12:05 PM Eliane Fonseca wrote: > same problem with 2 processes and I have only 8 GB of phy

Re: [android-building] equivalent flag "optimize" from Android.bp in Android.mk

2020-04-28 Thread 'Dan Willemsen' via Android Building
`LOCAL_PROGUARD_ENABLED := disabled` would be the equivalent of `optimize: { enabled: false }` - Dan On Tue, Apr 28, 2020 at 11:51 AM Kbc K wrote: > Hi Everyone, > > Soong build system "Android.bp" has a useful flag called "optimize" which > allow to disabl

Re: [android-building] Android.mk deprecation status and plan

2020-04-23 Thread 'Dan Willemsen' via Android Building
a jar to put in the bootclasspath; etc. - Dan On Thu, Apr 23, 2020 at 8:58 AM XING WANG wrote: > I checked the doc in build repo > https://cs.android.com/android/platform/superproject/+/master:build/make/Deprecation.md, > Google is coverting the make to soong. > > Will google con

Re: [android-building] repo init python2.7 or python3.6 which one to use?

2020-04-22 Thread 'Dan Willemsen' via Android Building
remove those arguments and be successful, this may be something to bring up in their forums / support channels. - Dan On Wed, Apr 22, 2020 at 9:23 AM Yuvaraj Velumani wrote: > 1. I have my Ubuntu server 16.04.10 installed which has python 2.7.12 and > 3.6.9(I installed it - following pro

Re: [android-building] Replacing acloud prebuilt binary

2020-04-21 Thread 'Dan Willemsen' via Android Building
I believe the prebuilt comes from the python support in the platform build system, not setup.py: source build/envsetup.sh m acloud cp out/host/linux-x86/bin/acloud-dev .../acloud - Dan On Tue, Apr 21, 2020 at 11:16 AM Andre D wrote: > Hello, > > Is it possible to replace the

Re: [android-building] Classes.jar and classes-header.jar with same module name

2020-04-14 Thread 'Dan Willemsen' via Android Building
enames? Why do they share the same module name? - Dan On Tue, Apr 14, 2020 at 8:10 AM Pranitha Reddy < pranitha.alugube...@gmail.com> wrote: > Hello > Say there is module 'X' writtern twice in Android.mk > > include $(CLEAR_VARS) > LOCAL_MODULE

Re: [android-building] Android 11` Preview building failed initially

2020-04-08 Thread 'Dan Willemsen' via Android Building
Sorry, apparently that link didn't work. https://groups.google.com/d/msg/android-building/t-70r0IdkZY/sY_NhNd6AgAJ should work better. - Dan On Tuesday, April 7, 2020 at 9:45:15 AM UTC-7 Dan Willemsen wrote: > Yep, that's not intended to be a buildable tag. See my previous messages: >

Re: [android-building] Android 11` Preview building failed initially

2020-04-07 Thread 'Dan Willemsen' via Android Building
Yep, that's not intended to be a buildable tag. See my previous messages: https://groups.google.com/g/android-building/c/t-70r0IdkZY/m/sY_NhNd6AgAJ - Dan On Tue, Apr 7, 2020 at 9:41 AM Varun Kumar wrote: > Hi Dan Willemsen, > > I have used below branch/tag > > *rep

Re: [android-building] Re: Kotlin illegal reflection when building AOSP

2020-04-06 Thread 'Dan Willemsen' via Android Building
would be adjusting these defaults based on what we detect we're running on) - Dan On Mon, Apr 6, 2020 at 1:11 PM Steve wrote: > The machine has only 8Gb and 5580Mb are available when the build starts > for 'm api-stubs-docs'. Running a single job does not help. > This happens on th

Re: [android-building] Kotlin illegal reflection when building AOSP

2020-04-06 Thread 'Dan Willemsen' via Android Building
t; actions concurrently), but that may still need tweaking. - Dan On Sun, Apr 5, 2020 at 8:27 AM Steve wrote: > Trying to build a standard AOSP on Ubuntu 14.04, target aosp_arm-eng. > The build works fine until the metalava and the use of kotlin, when it > fails with: > > WARNI

Re: [android-building] Android 11` Preview building failed initially

2020-04-02 Thread 'Dan Willemsen' via Android Building
What branch/tag did you use to initialize this source tree? (`repo init ...`) - Dan On Thu, Apr 2, 2020 at 8:57 PM Varun Kumar wrote: > > PLATFORM_VERSION_CODENAME=R > PLATFORM_VERSION=R > TARGET_PRODUCT=aosp_arm64 > TARGET_BU

Re: [android-building] Android Build Teststub -- Linker failed "undefined symbol" Android.bp // maybe missing an include path?

2020-03-31 Thread 'Dan Willemsen' via Android Building
The `libsonic` in Android only includes `sonic.c`: https://cs.android.com/android/platform/superproject/+/master:external/sonic/Android.bp openInputWaveFile and readFromWaveFile are in `wave.c` - Dan On Tue, Mar 31, 2020 at 2:56 PM jrw wrote: > Hello, > > i'm facing an issue with t

Re: [android-building] Re: Dex2oat failed to compile a boot image

2020-03-30 Thread 'Dan Willemsen' via Android Building
skewed significantly between old and new projects. - Dan On Mon, Mar 30, 2020 at 10:10 PM Guoyin Chen wrote: > There are quite a lot of build error with android-preview-2 build. I think > google have several wrong tag on different gits. > > On Tuesday, March 31, 2020 at 8:41:18 AM UT

Re: [android-building] verbose: *kati*: slow included makefiles (1037.829698): art/Android.mk

2020-03-30 Thread 'Dan Willemsen' via Android Building
eps files, which will be shared across all devices in a single output tree. It looks like yours is taking ~4s based on the trace. So your minimum incremental build times are probably ~2x as long as they could be. - Dan On Mon, Mar 30, 2020 at 7:58 AM Yongqin Liu wrote: > Hi, Dan >

Re: [android-building] Disallowed PATH tool "m4", but used by flex

2020-03-30 Thread 'Dan Willemsen' via Android Building
was using flex/bison: https://android-review.googlesource.com/c/platform/external/mesa3d/+/1203548 - Dan On Mon, Mar 30, 2020 at 7:58 AM Michael Goffioul wrote: > I'm experimenting with android-r-preview-2 and found a problem compiling > mesa, which didn't occur with android-10. The error

Re: [android-building] verbose: *kati*: slow included makefiles (1037.829698): art/Android.mk

2020-03-28 Thread 'Dan Willemsen' via Android Building
excessive for that -- it claims that there are ~3M nodes in the cache: verbose: *kati*: 3071468 find nodes One of my AOSP trees (after removing out/) is closer to 1M nodes (~2s), and after a hikey960 build it has ~1.5M nodes (3.4s). - Dan On Sat, Mar 28, 2020 at 8:36 AM Yongqin Liu wrote: >

Re: [android-building] [Android 10] AOSP LibFuzzer example (soong) build problems.

2020-03-26 Thread 'Dan Willemsen' via Android Building
. The [2] module reference you're using is also coming from master, which is why cc_fuzz is showing up as valid. You can get the equivalent docs locally that are specific to your checkout by running `m soong_docs` and browsing to out/soong/docs/soong_build.html (which shouldn't include cc_fuzz). - Dan

[android-building] Re: how to integrate ninja and RBE to support remote build AOSP so fast?

2020-03-23 Thread 'Dan Willemsen' via Android Building
elated to Bazel, and currently integrates with the build similarly to ccache -- as a compiler wrapper. - Dan On Monday, March 23, 2020 at 7:39:55 AM UTC-7 mooo...@gmail.com wrote: > hi, > > Android Building group, > > I noticed that One PPT called "Remote Execution and Cachi

  1   2   3   >