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

2023-03-03 Thread 'Dan Willemsen' via Android Building
The code that prints that out is in ninja
, but
it really won't help to debug it from there -- it has printed everything it
knows.

ninja: error:
> '/home/vamsi/ctos/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes-header.jar',
> needed by
> '/home/vamsi/ctos/out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar',
> missing and no known rule to make it
>

This error message would be far better using Android.bp (the Bluetooth app
here was migrated in Android 11). It's very hard to get the makefiles to
produce a better error, so you have to work backwards from the files being
referenced. In this case the Bluetooth(*_intermediates) app(APPS) is
depending on something from the sap-api-java-static library, but that
doesn't exist. Usually that means 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.jar',
> needed by
> '/home/vamsi/ctos/out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar',
> missing and no known rule to make it
>
> We are trying to search this log under build directory in AOSP and
> couldn't able to find it. Tried with "missing" , "no known rule ", "needed
> by" but nothing works
>
> Could you help me to point to the code where you are printing this log  ?
>
> On Tuesday, 19 February, 2019 at 11:03:42 pm UTC+5:30 krishna venkatesh
> wrote:
>
>> Looks to be your newly added code not conform to sepolicies never allow
>> rues.
>> So please apply proper sepolicies rules.
>> If fissible, please share your code.
>
> --
> --
> 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/a26c9c0c-4cb6-4469-8005-75a4dc2d1f51n%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/CALQgHdnobrpRN_sVK7sqoNFvK2Q0ems0gqMUxz%3DuZDqJ%3DqDNFg%40mail.gmail.com.


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

2023-03-03 Thread Mutyala N V Durga Ashok
Hi Dan / Krishna,

ninja: error: 
'/home/vamsi/ctos/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes-header.jar',
 
needed by 
'/home/vamsi/ctos/out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar',
 
missing and no known rule to make it

We are trying to search this log under build directory in AOSP and couldn't 
able to find it. Tried with "missing" , "no known rule ", "needed by" but 
nothing works

Could you help me to point to the code where you are printing this log  ?

On Tuesday, 19 February, 2019 at 11:03:42 pm UTC+5:30 krishna venkatesh 
wrote:

> Looks to be your newly added code not conform to sepolicies never allow 
> rues. 
> So please apply proper sepolicies rules. 
> If fissible, please share your code.

-- 
-- 
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/a26c9c0c-4cb6-4469-8005-75a4dc2d1f51n%40googlegroups.com.


[android-building] Re: "Unable to start RBE reproxy" when build android13 with error log "Unavailable desc"

2023-03-03 Thread Faqiang Zhu
Hi  力召,

Thank you, now the reproxy can be started.

then I have another issue:
The client distribute actions to the service, the service schedules the 
actions to the workers, the workers does the actions.
In android build system, there is a limitation of using the host 
installed tools, many tools under "prebuilts/" directory like clang++ is 
used, how can a worker get the environment as the local build?

I set "RBE_CXX_EXEC_STRATEGY" to be "remote" then try to build a test 
module with RBE, the log shows that it blocks on "clang++ 
test_source_file.cpp", while on the service end, it can be known that there 
is input requests,  but the worker seems does nothing.
I guesss it's related to the clang++ tool, although I installed clang++ 
on the worker machine. but android should use its own.

Best Regards,
Zhu Faqiang.
在2023年2月23日星期四 UTC+8 02:28:59<李力召> 写道:

> hi Faqiang 
>
> Reproxy is call the rbe service by https with credential .  You can 
> disable it by enviroment  "export RBE_service_no_security=true"
>
> On Wednesday, February 22, 2023 at 12:45:06 PM UTC+8 Faqiang Zhu wrote:
>
>> I'm trying to build android13 with RBE.
>>
>> As suggested in this post: Build AOSP 11 with Google RBE service 
>> , 
>> I am trying an alternative option of BuildGrid listed here - 
>> https://bazel.build/community/remote-execution-services.
>>
>> I setup the BuildGrid server based on the document, with bazel as the 
>> client to build C++ tutorial examples, the build action can be distributed 
>> from a machine to the GuildGrid Server, then I tried build android 13 with 
>> RBE and this BuildGrid server with below steps:
>>
>>- modify the file "build/soong/docs/rbe.json" as below:
>>
>> diff --git a/docs/rbe.json b/docs/rbe.json
>> index f6ff10772..3f4c4ccf3 100644
>> --- a/docs/rbe.json
>> +++ b/docs/rbe.json
>> @@ -10,8 +10,8 @@
>>  "RBE_R8": "1",
>>  "RBE_D8": "1",
>>
>> -"RBE_instance": "[replace with your RBE instance]",
>> -"RBE_service": "[replace with your RBE service endpoint]",
>> +"RBE_instance": "main",
>> +"RBE_service": "grpc://10.193.102.33:50051",
>>
>>  "RBE_DIR": "prebuilts/remoteexecution-client/live",
>>
>>
>>- create a credential file of 
>>"$HOME/.config/gcloud/application_default_credentials.json" with below 
>>command:
>>
>> gcloud auth application-default login --no-launch-browser 
>> --disable-quota-project
>>
>>
>>- try to start the build with below commands:
>>
>> ANDROID_BUILD_ENVIRONMENT_CONFIG=rbe 
>> ANDROID_BUILD_ENVIRONMENT_CONFIG_DIR=build/soong/docs make
>>
>>
>> but I got below failure and seems no related source code can be found:
>>
>> 18:58:52 Unable to start RBE reproxy
>> FAILED: RBE bootstrap failed with: exit status 10
>> E0221 18:58:52.597734 1344945 bootstrap.go:96] Unable to start 
>> reproxy: "E0221 18:58:50.166111 1344959 main.go:205] Failed to initialize 
>> remote-execution client: rpc error: code = Unavailable desc = rpc error: 
>> code = Unavailable desc = retry budget exhausted (6 attempts): all SubConns 
>> are in TransientFailure, authentication type (identity) used=\"application 
>> default credentials\"\n"
>>
>> Try restarting the build after running the following command:
>> gcloud auth application-default login --no-launch-browser 
>> --disable-quota-project
>>
>>
>> Dose anyone tried the alternative RE service options listed in 
>> https://bazel.build/community/remote-execution-services? 
>> what RE service is choosed? 
>> Is there similar or the same issue encountered as me? 
>> Are there any fixes for the issue I encountered?
>>
>> Best Regards,
>> Zhu Faqiang.
>>
>

-- 
-- 
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/f2cfe908-f9b1-4c09-bad1-05359fdfc16an%40googlegroups.com.


Re: [android-building] Soong regenerate after any Android.bp change slow

2023-03-03 Thread Dean Wheatley
Wow, 18 minutes, that's unbearable.

On Tuesday, February 7, 2023 at 7:01:21 AM UTC+11 Michael Swartout wrote:

> Lucky yours only takes 60 seconds. It takes 18 minutes, everytime I make a 
> change to almost anything.
>
> On Wed, Feb 1, 2023 at 9:29 PM Dean Wheatley  wrote:
>
>> Is there a better/faster way to develop Android.bp in the AOSP tree than 
>> waiting for the many (> 60) seconds it takes to "analyzing Android.bp files 
>> and generating ninja file at out/soong/build.ninja" after any change to any 
>> Android.bp file in the tree? 
>>
>> -- 
>> -- 
>> 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/e19325ce-2798-4d80-8de8-b0312c7bb69an%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/ff49c5ff-0e48-4ca7-b79e-1dc7827fa662n%40googlegroups.com.