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

2021-02-16 Thread Abhijeet Salunke
Thanks for the answer Dan Willemsen.. And Yes it was my mistake when I said
I am using El Capitan actually I have updated the system and currently its
Mac OS X Catalina. I am working with Linux VM as suggested by you.

On Wed, Feb 17, 2021 at 3:42 AM 'Dan Willemsen' via Android Building <
android-building@googlegroups.com> wrote:

> Oh, I forgot El Capitan is MacOSX 10.11, which is probably old enough to
> be supported on that branch. But the MacOS 11.1 SDK shouldn't work on that,
> and the screenshot claims that you're running 10.15.7 (Darwin 19.6.0). So
> something doesn't line up here.
>
> Regardless, the Linux VM is probably your 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
>> inverse works, you can build newer android versions with older MacOS
>> versions, though that's not usually interesting except for CI servers)
>>
>> If you really need to build a 4+ year old android version on your Mac,
>> then your best 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 when I run "make" it gives me following error:
>>>
>>> *clang: error: invalid version number in '--mmacosx-version-min=11.1'*
>>>
>>> My configuration is as follows:
>>> - Mac OS X El Capitan
>>> - Xcode 12.4
>>> - Mac OS X 11.1 SDK
>>> - JDK 1.8
>>>
>>> I have been stuck on this issue for while can anyone help me with these.
>>> I have also attached screenshot.
>>>
>>> This is my first time building a Android.
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the "Android
>>> Building" mailing list.
>>> To post to this group, send email to android-building@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-building+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-building?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Building" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to android-building+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/android-building/4fdeb00d-070b-41a3-bcc6-90b8c61b2151n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/CALQgHdmvbh0uoXcBuoC3jwFbG%3Dt3goaipSpnqpsayfsW0jMrbQ%40mail.gmail.com
> 
> .
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CAGi07figSdzWke7ypNEiEQ52Q-WmE3K9USH5TVR1RNRwpEkmUA%40mail.gmail.com.


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 at 9:29 AM min chang 
wrote:

> I need to add Android.mk to AndroidStudio and use for ndk-build.
> It seems that ndk-build cannot read Android.bp.
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/e0f3482b-aa11-4598-b49d-3741141d9f10n%40googlegroups.com
> 
> .
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALQgHdkXua5SmgaCWWjLWXcvTZBvk5Sd8Prr6FDUMiTRKymjTA%40mail.gmail.com.


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 build, and we expect to be removing
> support for it in master in the coming months (support will most likely
> still be in this years release, but not next years).
>
> whether goma not work well for android build ??? and now 2021 year support
> better ???
> https://chromium.googlesource.com/infra/goma/client/
> https://chromium.googlesource.com/infra/goma/server/
>
> 在2020年3月4日星期三 UTC+8 上午5:57:32 写道:
>
>> The build team does not recommend using Goma -- it does not work
>> particularly well with the Android build, and we expect to be removing
>> support for it in master in the coming months (support will most likely
>> still be in this years release, but not next years).
>>
>> RBE is the replacement, but it's still evolving at the moment. Many of
>> our CI builds have switched to it (they never used Goma), but only a
>> handful of developers have used it so far. If you're interested in this,
>> I'd highly recommend asking your TAM about it (or if you don't have one,
>> contact me and I can try to route your request to the right team).
>>
>> For what we're doing (other than Goma/RBE), the majority of our CI builds
>> are done on n1-standard-64
>> 
>> machines with SSD persistent disks. Depending on your
>> limitations/requirements, the newer C2/N2 machine 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-...@googlegroups.com> wrote:
>>
>>> Hi Alexander
>>>
>>> Internally Android developers use goma. The thread below has pointers to
>>> the client and server. It is built on GCP.
>>>
>>>
>>> https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/eOtBzosZtd8
>>>
>>> Kind regards
>>> Orion
>>>
>>> On Sun, 1 Mar 2020 at 22:39, alexander zhu  wrote:
>>>
 Hi,

 I faced one problem, i have tried to solve it many days.


 AOSP compile on one powerful physical server(36U128G) is fast .
 Because my company has so many people need to compile AOSP on the server,so
 it is busy all the time , and I do not have money to buy more.But the VM I
 can request more.So I want to use VM on the cloud to compile AOSP.

 I have some distribute compile experiences in other c/c++ projects. So
 I'm thinking is there any way to compile AOSP in distribute way?exp: use
 many VMs for one AOSP build.

 I noticed there had topic long time ago :
 https://groups.google.com/forum/#!searchin/android-building/distcc%7Csort:date/android-building/_YJNwvq6FtY/EENyTx4Elk4J

 I tried distcc , but failed . AOSP switching to clang, but distcc
 support clang not ok.
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926884


 So, I want to know ,AOSP in google , how to solve the long build time
 ?use more powerful physical server? or you have your own distribute
 compile solution?

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

 ---
 You received this message because you are subscribed to the Google
 Groups "Android Building" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to android-buildi...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/android-building/e3dd71e8-e452-48e2-8686-c51e359cbf5c%40googlegroups.com
 
 .

>>> --
>>> --
>>> You received this message because you are subscribed to the "Android
>>> Building" mailing list.
>>> To post to this group, send email to android-...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-buildi...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-building?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Building" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to android-buildi...@googlegroups.com.
>>>
>> To view this discussion on 

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

2021-02-16 Thread 'Dan Willemsen' via Android Building
Oh, I forgot El Capitan is MacOSX 10.11, which is probably old enough to be
supported on that branch. But the MacOS 11.1 SDK shouldn't work on that,
and the screenshot claims that you're running 10.15.7 (Darwin 19.6.0). So
something doesn't line up here.

Regardless, the Linux VM is probably your 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
> inverse works, you can build newer android versions with older MacOS
> versions, though that's not usually interesting except for CI servers)
>
> If you really need to build a 4+ year old android version on your Mac,
> then your best 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 when I run "make" it gives me following error:
>>
>> *clang: error: invalid version number in '--mmacosx-version-min=11.1'*
>>
>> My configuration is as follows:
>> - Mac OS X El Capitan
>> - Xcode 12.4
>> - Mac OS X 11.1 SDK
>> - JDK 1.8
>>
>> I have been stuck on this issue for while can anyone help me with these.
>> I have also attached screenshot.
>>
>> This is my first time building a Android.
>>
>> --
>> --
>> You received this message because you are subscribed to the "Android
>> Building" mailing list.
>> To post to this group, send email to android-building@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-building+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-building?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Android Building" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-building+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-building/4fdeb00d-070b-41a3-bcc6-90b8c61b2151n%40googlegroups.com
>> 
>> .
>>
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALQgHdmvbh0uoXcBuoC3jwFbG%3Dt3goaipSpnqpsayfsW0jMrbQ%40mail.gmail.com.


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

2021-02-16 Thread 'Dan Willemsen' via Android Building
Older versions of Android don't build with newer versions of MacOS (the
inverse works, you can build newer android versions with older MacOS
versions, though that's not usually interesting except for CI servers)

If you really need to build a 4+ year old android version on your Mac, then
your best 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 when I run "make" it gives me following error:
>
> *clang: error: invalid version number in '--mmacosx-version-min=11.1'*
>
> My configuration is as follows:
> - Mac OS X El Capitan
> - Xcode 12.4
> - Mac OS X 11.1 SDK
> - JDK 1.8
>
> I have been stuck on this issue for while can anyone help me with these. I
> have also attached screenshot.
>
> This is my first time building a Android.
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/4fdeb00d-070b-41a3-bcc6-90b8c61b2151n%40googlegroups.com
> 
> .
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALQgHdmmnDFLbFVB-eokPm6-12tXzsk1nFmpAuVqB4atN%2BGCGw%40mail.gmail.com.