Re: [android-building] Adding dependencies for Header Libraries

2019-10-17 Thread 'Dan Willemsen' via Android Building
enerated_headers: ["my_genrule_type_module"], export_generated_headers: ["my_genrule_type_module"], } - Dan On Wed, Oct 16, 2019 at 9:58 AM Vinayak Soni wrote: > Hi, > > Suppose my header library depends on another module to be compiled first. > For other mo

Re: [android-building] sub_dir unrecognized property

2019-10-17 Thread 'Dan Willemsen' via Android Building
ntrol who uses files within your directory (via visibility), and tools like `mma` and `atest` are more likely to be able to handle "build/test everything in this directory" properly. - Dan On Thu, Oct 17, 2019 at 9:35 AM Akanksha wrote: > Hello, I am trying to convert Android.mk to An

Re: [android-building] How to add relative path for srcs:[] in Android.bp

2019-10-17 Thread 'Dan Willemsen' via Android Building
a `soong_namespace {}` definition, but that means you weren't using that Android.bp in the first place). - Dan On Tue, Oct 15, 2019 at 8:27 AM wrote: > hello, > say in a Android.bp file srcs:["../../../a.cpp"] > I am getting the error Path is outside directory

Re: [android-building] writing header libraries in Android.bp

2019-10-17 Thread 'Dan Willemsen' via Android Building
under a directory. I had written some about this in our best practices doc: https://android.googlesource.com/platform/build/soong/+/master/docs/best_practices.md#headers - Dan On Mon, Oct 14, 2019 at 9:46 AM REGURI AKANKSHA wrote: > How to write headers in Android.bp? > > say Android.mk h

Re: [android-building] How to add relative path for srcs:[] in Android.bp

2019-10-17 Thread 'Dan Willemsen' via Android Building
tibility-device-util-axt", ], sdk_version: "test_current", min_sdk_version: "26", } In this case, it may have been possible to instead refactor the common file into a library that would be used instead (and then only compiling the files once instead of 2 times

Re: [android-building] Re: How to install prebuilt_apps?

2019-10-25 Thread 'Dan Willemsen' via Android Building
The best thing to do is to leave them in Android.mk for now, converting them next year when you integrate the R release (which is what master will be). - Dan On Fri, Oct 25, 2019, 8:31 AM seekers here wrote: > Thanks Dan. > I am using a branch of Android Q code. So Now whats the so

Re: [android-building] sub_dir as module descriptor

2019-10-25 Thread 'Dan Willemsen' via Android Building
properties here: https://ci.android.com/builds/latest/branches/aosp-build-tools/targets/linux/view/soong_build.html (this is based on master, if you're working on Q, not everything here may work -- there's a local copy in $OUT_DIR/soong/docs/soong_build.html). - Dan On Fri, Oct 25, 2019 at 12:52 AM

Re: [android-building] Re: Java error building AOSP 10

2019-11-23 Thread 'Dan Willemsen' via Android Building
Yep, I've reproduced this on minimal installs of both ArchLinux and Ubuntu. `apt install fontconfig` fixes it on Ubuntu. On Arch, I had to install fontconfig and a font (I tried ttf-droid) before it started working. - Dan On Sat, Nov 23, 2019 at 7:41 PM Daniel Fullmer wrote: > I believe I

Re: [android-building] AOSP sepolicy_tests_intermediates/sepolicy_tests error on building using MAC Catalina

2019-11-23 Thread 'Dan Willemsen' via Android Building
library, then statically in the dlopened libsepolwrap.so). I've got a fix here: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1173528 - Dan On Sat, Nov 23, 2019 at 6:15 PM Dr. Dhanyu Eshaka wrote: > No moved back to Mojave . MAC OSX 10.14 > I think those errors has

Re: [android-building] Java error building AOSP 10

2019-11-23 Thread 'Dan Willemsen' via Android Building
That's strange, I've got no idea why you're hitting it, but that we haven't seen it anywhere else. I've filed https://issuetracker.google.com/145064117 with my findings so far. - Dan On Sat, Nov 23, 2019 at 6:15 PM Brian Moore wrote: > > I've been building AOSP for my pixel devices for

Re: [android-building] Android.bp file copy issue

2019-10-09 Thread 'Dan Willemsen' via Android Building
Then make will only create a single installation rule. (I haven't tried it, but it should work -- this is how we handle more complicated modules that need to be different per device) - Dan On Wed, Oct 9, 2019 at 3:58 PM 'Kyle Cai' via Android Building < android-building@googlegroups.com> wrot

Re: [android-building] Android.bp file copy issue

2019-10-09 Thread 'Dan Willemsen' via Android Building
of the two rules). - Dan On Wed, Oct 9, 2019 at 1:09 PM 'Kyle Cai' via Android Building < android-building@googlegroups.com> wrote: > Hi, > > I'm not sure if this is the right place to ask about android.bp files. > Here is an issue that I'm seeing and I can't figure out why I'm see

Re: [android-building] Unable to compile wpa_supplicant in AOSP-10 (Android Q) by running make command in root foleder of AOSP.

2019-10-04 Thread 'Dan Willemsen' via Android Building
it with `m wpa_supplicant` - Dan On Thu, Oct 3, 2019 at 12:53 PM sachin verma wrote: > Hi All, > > I have done some changes in > external/wpa_supplicant_8/wpa_supplicant/hs20_supplicant.c file and then > compiling it by running make command in AOSP root directory, after > complet

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

2020-03-03 Thread 'Dan Willemsen' via Android Building
achine families may be more efficient. For local developers, we're generally buying fast desktops -- 2x Intel Xeon GOLD 6154 processor (18-core Skylake, up to 3.70 GHz) with 192 GB RAM and a few TB of SSDs. - Dan On Sun, Mar 1, 2020 at 11:52 PM 'Orion Hodson' via Android Building < android

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

2020-03-03 Thread 'Dan Willemsen' via Android Building
Oh, and for developer builds (and many frequent CI builds), we're almost always using incremental builds, so the clean build times are somewhat less limiting. If you're often doing clean builds or very large builds, that's probably one of the first things to look at. - Dan On Tue, Mar 3, 2020

Re: [android-building] Build failure in local environment

2020-03-03 Thread 'Dan Willemsen' via Android Building
://source.android.com/devices/tv/reference-tv-app I believe the launcher team sometimes does development with gradle, but I have no idea what the state is on that, especially on AOSP. - Dan On Mon, Mar 2, 2020 at 9:21 PM GUNASEELAN N wrote: > Hi, > I tried to build the Aosp Launcher3 application in my

Re: [android-building] Re: android10.0.0_rxx : lunch qemu_trusty_arm64-userdebug fails

2020-03-02 Thread 'Dan Willemsen' via Android Building
+Matthew Maurer Do we have any documentation on this target? I think the last time we talked about this target it was only minimally functional. - Dan On Mon, Mar 2, 2020 at 12:51 PM Julien Robin wrote: > I succeeded to find a workaround for the issue I signaled here, editing > device/g

Re: [android-building] Using device/generic/qemu/qemu_x86_64.mk files for QEMU

2020-03-02 Thread 'Dan Willemsen' via Android Building
These are the instructions on how to use the android emulator (with qemu): https://source.android.com/setup/create/avd - Dan On Mon, Feb 24, 2020 at 1:58 PM Julien Robin wrote: > Hi folks, > > I need a little bit of help on building something working on QEMU (on any > architectu

Re: [android-building] error build referenced by a_bitstr.c:69 (external/boringssl/src/crypto/asn1/a_bitstr.c:

2020-01-22 Thread 'Dan Willemsen' via Android Building
Which version of AOSP are you building? What's your build target? Do you have any local changes? - Dan On Wed, Jan 22, 2020 at 10:49 PM Kiên neiK Lê Trung wrote: > i got stuck build here https://del.dog/gipposirep.txt. anyone encounter > this error. > > -- > -- > You rec

Re: [android-building] I m building for the first time

2020-01-30 Thread 'Dan Willemsen' via Android Building
This is off-topic for this group, as the build error appears to be in non-AOSP code. If I'm reading it right, your kernel is having problems compiling (it can't find an openssl host header). - Dan On Thu, Jan 30, 2020 at 2:02 PM Dnyanesh Mohite wrote: > CHK include/generated/utsrelease.h W

Re: [android-building] Including a prebuilt shared librray in Android.bp

2020-02-07 Thread 'Dan Willemsen' via Android Building
that links to that library. We'd eventually like to get rid of include_dirs (not local_include_dirs). See https://android.googlesource.com/platform/build/soong/+/master/docs/best_practices.md#headers for more discussion around this. - Dan On Fri, Feb 7, 2020 at 11:13 AM Shalini Salomi Bodapati wrote: >

Re: [android-building] Re: Problem when compiling - how to fix?

2020-01-28 Thread 'Dan Willemsen' via Android Building
jopt-simple-4.9 should be defined in prebuilts/tools/common/m2/... https://cs.android.com/android/platform/superproject/+/master:prebuilts/tools/common/m2/repository/net/sf/jopt-simple/jopt-simple/4.9/Android.bp;l=17?q=jopt-simple-4.9=android%2Fplatform%2Fsuperproject - Dan On Tue, Jan 28, 2020

Re: [android-building] running emulator error

2020-02-18 Thread 'Dan Willemsen' via Android Building
For the emulator, you'll need to use aosp_x86, or a similar emulator product, not a physical device product like aosp_bullhead. - Dan On Sat, Feb 15, 2020 at 11:57 AM 张亚琦 <1987zhangy...@gmail.com> wrote: > > *I compiled Android N, but there was an error running the emulator*

Re: [android-building] lunch aosp_coral-userdebug

2020-02-18 Thread 'Dan Willemsen' via Android Building
For the emulator, you'll need to use aosp_x86, or a similar emulator product, not a physical device product like coral. - Dan On Tue, Feb 18, 2020 at 12:27 PM Damir Usmanov wrote: > Hi All. > > I just lunch aosp_coral-userdebug and started emulator. > but it shows black scr

Re: [android-building] dext2oatd missing on macOS Catalina

2020-02-18 Thread 'Dan Willemsen' via Android Building
dex2oat[d] (the host version) is not supported on Mac, so you cannot use WITH_DEXPREOPT=true on a Mac. (Not setting it should be the default) - Dan On Tue, Feb 18, 2020 at 7:15 AM Eric Park wrote: > Hello everyone, > > Trying to build Android Q on macOS Catalina and I keep getting t

Re: [android-building] Can I run cuttlefish Arm64 on x86 PC?

2020-02-18 Thread 'Dan Willemsen' via Android Building
My understanding is that cuttlefish's arm[64] variant is meant to run on an arm64 machine, not an x86 machine. - Dan On Thu, Feb 13, 2020 at 7:30 AM Lawrence Lin wrote: > Dear all, > > I follow the steps on the cuttlefish intro. page, " > https://android.googlesource.

Re: [android-building] “compatibility.mk” in aosp of vts building means

2020-01-16 Thread 'Dan Willemsen' via Android Building
-suite-dependencies=android%2Fplatform%2Fsuperproject - Dan On Thu, Jan 16, 2020 at 9:28 AM Dan Willemsen wrote: > The test_suite_name needs to match the individual module definitions that > set `test_suites: ["vts"]` or `LOCAL_COMPATIBILITY_SUITE := vts`. > > The

Re: [android-building] “compatibility.mk” in aosp of vts building means

2020-01-16 Thread 'Dan Willemsen' via Android Building
pendencies=package:%5Eandroid$ https://source.corp.google.com/android/build/make/core/definitions.mk;cl=master;l=2899?q=COMPATIBILITY.*FILES%20lang:makefile%20case:yes=package:%5Eandroid$ - Dan On Thu, Jan 16, 2020 at 9:23 AM xiang tianyu wrote: > hellp ,can you help me with this

Re: [android-building] Does ccache still works with newer AOSP?

2020-01-20 Thread 'Dan Willemsen' via Android Building
you using incremental builds? (It also only affects 1/3-1/2 of the build, as the rest of the actions are Java/etc) - Dan On Sun, Jan 19, 2020 at 2:41 PM Eliane Fonseca wrote: > I trying to use ccache with newer AOSP (9, 10) to attempt to speed up > compiling time,but it looks like

Re: [android-building] How to add android header files in 'out/soong/ndk/sysroot/usr/include' directory

2020-01-20 Thread 'Dan Willemsen' via Android Building
the libhardware_headers header library to access them. - Dan On Mon, Jan 20, 2020 at 11:13 PM Jay Jeon wrote: > Hi, > > I was trying to use the header files in > './out/soong/ndk/sysroot/usr/include' directory by building some libraries, > but I didn't find some android header files. &g

Re: [android-building] Migrate to python3

2020-01-21 Thread 'Dan Willemsen' via Android Building
uilt python2? > That already happened with Android 10 (Q). - Dan On Tue, Jan 21, 2020 at 8:23 AM XING WANG wrote: > Thanks Dan, > > Please let me clarify further. > > So AOSP will not modify all python2 in the build script to be python3 > compatible(like dict.iteritems), and

Re: [android-building] How to build kernel incrementally

2020-01-03 Thread 'Dan Willemsen' via Android Building
I'm not overly familiar with the kernel build scripts, but it looks like you can set SKIP_MRPROPER=1 to skip the initial `make mrproper` (clean) step. - Dan On Fri, Jan 3, 2020 at 9:14 PM Vova Ivanov wrote: > Having followed the instructions on the Android Open Source Project >

Re: [android-building] when call COMMON_LUNCH_CHOICES in build?

2020-03-12 Thread 'Dan Willemsen' via Android Building
like: $ source build/envsetup.sh $ lunch aosp_crosshatch-eng $ m None of those steps will use COMMON_LUNCH_CHOICES. - Dan On Thu, Mar 12, 2020 at 8:58 AM Bo YU wrote: > Hi, > please correct me if i understood wrong. > In AOSP/build call chains,we know, `source > ao

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

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] 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] 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] 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] 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] 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] 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] 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] "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] 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] 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] 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] 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] 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: 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-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] 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] 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] 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] Android 10 build wmtest with extra jar error

2020-03-19 Thread 'Dan Willemsen' via Android Building
Does my-services.jar contain .class files, or .dex files? java_import_libs is expecting .class files. - Dan On Thu, Mar 19, 2020 at 9:07 AM bersaty wu wrote: > I want to add my own jar to the wmtest apk, so I modify the .bp file like > this: > > static_libs: [ > "frame

Re: [android-building] fatal error happens when I'm trying to include header files

2020-03-20 Thread 'Dan Willemsen' via Android Building
/superproject/+/master:bootable/recovery/updater/Android.mk;drc=2bb374a86d0161700f01b68433063b0b13adc86a;l=25 That being said, I don't know anything about this code, so I don't know if it's valid to use libinstall within the updater executable, since it's normally in the recovery executable. - Dan

Re: [android-building] How to integrate individual packages in cuttlefish

2020-03-23 Thread 'Dan Willemsen' via Android Building
to be on the product image (product_specific: true), and use /product instead of /system. - Dan On Fri, Mar 20, 2020 at 8:47 AM శంకర్ కుమార్ యల్లపు < sankarkumar...@gmail.com> wrote: > Hi, > > I was just trying to integrate our changes into cuttlefish. I am getting > an error called *Offending

[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

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

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

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

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

<    1   2   3   >