[android-building] Re: Build on master branch: failed to find module "fizz-buzz" variant "linux_glibc_x86_64_dylib"

2019-09-02 Thread Quang Hòa Trần
Thanks for your reply.

Not yet. The only solution I have is switch to linux and build. Btw, I 
really want to test the build on my pixel XL but when the build for its 
target (stable tag: android-9.0.0_r47, with binary drivers) created there 
is no chance for the emulator to start (black screen). I am quite concerned 
if it is ok to flash to my device.

Vào 01:01:27 UTC+7 Thứ Hai, ngày 02 tháng 9 năm 2019, Xu Sing đã viết:
>
> me too. have you solved this ?
>
> On Saturday, August 31, 2019 at 1:37:38 AM UTC+8, Quang Hòa Trần wrote:
>>
>> Hi there,
>>
>> I tried building the recent master branch on MacOS 10.14.5 and it was 
>> failed with the error as follows:
>>
>> PLATFORM_VERSION_CODENAME=R
>>
>> PLATFORM_VERSION=R
>>
>> TARGET_PRODUCT=aosp_arm
>>
>> TARGET_BUILD_VARIANT=eng
>>
>> TARGET_BUILD_TYPE=release
>>
>> TARGET_ARCH=arm
>>
>> TARGET_ARCH_VARIANT=armv7-a-neon
>>
>> TARGET_CPU_VARIANT=generic
>>
>> HOST_ARCH=x86_64
>>
>> HOST_OS=darwin
>>
>> HOST_OS_EXTRA=Darwin-18.6.0-x86_64-10.14.5
>>
>> HOST_BUILD_TYPE=release
>>
>> BUILD_ID=PI
>>
>> OUT_DIR=out
>>
>> 
>>
>> *[  7% 2/26] test android/soong/rust*
>>
>> FAILED: out/soong/.bootstrap/soong-rust/test/test.passed
>>
>> out/soong/.bootstrap/bin/gotestrunner -p ./build/soong/rust -f out/soong
>> /.bootstrap/soong-rust/test/test.passed -- out/soong/.bootstrap/soong-
>> rust/test/test -test.short
>>
>> --- FAIL: TestDefaultCrateName (0.01s)
>>
>> panic: failed to find module "fizz-buzz" variant 
>> "linux_glibc_x86_64_dylib".
>>
>> all modules: [fizz-buzz(darwin_x86_64_dylib) libarena_x86_64-unknown-
>> linux-gnu(darwin_x86_64_dylib) libarena_x86_64-unknown-linux-gnu(
>> android_arm64_armv8-a_dylib) libfmt_macros_x86_64-unknown-linux-gnu(
>> darwin_x86_64_dylib) libfmt_macros_x86_64-unknown-linux-gnu(
>> android_arm64_armv8-a_dylib) libgraphviz_x86_64-unknown-linux-gnu(
>> darwin_x86_64_dylib) libgraphviz_x86_64-unknown-linux-gnu(
>> android_arm64_armv8-a_dylib) libserialize_x86_64-unknown-linux-gnu(
>> darwin_x86_64_dylib) libserialize_x86_64-unknown-linux-gnu(
>> android_arm64_armv8-a_dylib) libstd_x86_64-unknown-linux-gnu(
>> darwin_x86_64_dylib) libstd_x86_64-unknown-linux-gnu(android_arm64_armv8-
>> a_dylib) libsyntax_ext_x86_64-unknown-linux-gnu(darwin_x86_64_dylib) 
>> libsyntax_ext_x86_64-unknown-linux-gnu(android_arm64_armv8-a_dylib) 
>> libsyntax_pos_x86_64-unknown-linux-gnu(darwin_x86_64_dylib) 
>> libsyntax_pos_x86_64-unknown-linux-gnu(android_arm64_armv8-a_dylib) 
>> libsyntax_x86_64-unknown-linux-gnu(darwin_x86_64_dylib) libsyntax_x86_64-
>> unknown-linux-gnu(android_arm64_armv8-a_dylib) libterm_x86_64-unknown-
>> linux-gnu(darwin_x86_64_dylib) libterm_x86_64-unknown-linux-gnu(
>> android_arm64_armv8-a_dylib) libtest_x86_64-unknown-linux-gnu(
>> darwin_x86_64_dylib) libtest_x86_64-unknown-linux-gnu(android_arm64_armv8
>> -a_dylib)] [recovered]
>>
>> panic: failed to find module "fizz-buzz" variant 
>> "linux_glibc_x86_64_dylib".
>>
>> all modules: [fizz-buzz(darwin_x86_64_dylib) libarena_x86_64-unknown-
>> linux-gnu(darwin_x86_64_dylib) libarena_x86_64-unknown-linux-gnu(
>> android_arm64_armv8-a_dylib) libfmt_macros_x86_64-unknown-linux-gnu(
>> darwin_x86_64_dylib) libfmt_macros_x86_64-unknown-linux-gnu(
>> android_arm64_armv8-a_dylib) libgraphviz_x86_64-unknown-linux-gnu(
>> darwin_x86_64_dylib) libgraphviz_x86_64-unknown-linux-gnu(
>> android_arm64_armv8-a_dylib) libserialize_x86_64-unknown-linux-gnu(
>> darwin_x86_64_dylib) libserialize_x86_64-unknown-linux-gnu(
>> android_arm64_armv8-a_dylib) libstd_x86_64-unknown-linux-gnu(
>> darwin_x86_64_dylib) libstd_x86_64-unknown-linux-gnu(android_arm64_armv8-
>> a_dylib) libsyntax_ext_x86_64-unknown-linux-gnu(darwin_x86_64_dylib) 
>> libsyntax_ext_x86_64-unknown-linux-gnu(android_arm64_armv8-a_dylib) 
>> libsyntax_pos_x86_64-unknown-linux-gnu(darwin_x86_64_dylib) 
>> libsyntax_pos_x86_64-unknown-linux-gnu(android_arm64_armv8-a_dylib) 
>> libsyntax_x86_64-unknown-linux-gnu(darwin_x86_64_dylib) libsyntax_x86_64-
>> unknown-linux-gnu(android_arm64_armv8-a_dylib) libterm_x86_64-unknown-
>> linux-gnu(darwin_x86_64_dylib) libterm_x86_64-unknown-linux-gnu(
>> android_arm64_armv8-a_dylib) libtest_x86_64-unknown-linux-gnu(
>> darwin_x86_64_dylib) libtest_x86_64-unknown-linux-gnu(android_arm64_armv8
>> -a_dylib)]
>>
>> goroutine 33 [running]:
>>
>> testing.tRunner.func1(0xc00015a300)
>>
>>  prebuilts/go/darwin-x86/src/testing/testing.go:830 +0x392
>>
>> panic(0x1418d60, 0xc8d810)
>>
>> prebuilts/go/darwin-x86/src/runtime/panic.go:522 +0x1b5
>>
>> android/soong/android.(*TestContext).ModuleForTests(0xc0001065a0, 
>> 0x14a50cf, 0x9, 0x14ae8dd, 0x18, 0x4b6514ecea6c, 0x753bf68)
>>
>>/Volumes/android/build/soong/android/testing.go:92 +0x3ff
>>
>> android/soong/rust.TestDefaultCrateName(0xc00015a300)
>>
>>  /Volumes/android/build/soong/rust/rust_test.go:119 +0x7f
>>
>> testing.tRunner(0xc00015a300, 0x14c2380)
>>
>>

Re: [android-building] Re: Some questions on Android.bp files

2019-09-02 Thread jw wang
Hello Amit Agrawal

I need to create some items as marked by red in the following to avoid 
proguard_dictionary', needed by 'out/target/common/obj/APPS/
AudioEFXService_intermediates/proguard_dictionary

 optimize: {
proguard_flags_files: ["proguard.flags"],
enabled: false,
},


but I don't know why it is acting like this way, anyone can explain ?


On Monday, August 26, 2019 at 10:51:11 PM UTC+8, Amit Agrawal wrote:
>
> Hi wang,
>
> I have also faced such issues. This comes when you are building a Module 
> which is written in Android.bp and you want to include some dependency(a 
> module like shared library) which is written in Android.mk. The soong build 
> system can not resolve such dependencies. I haven't got any solution for 
> this. Only way I have got is you need to convert all the dependencies to 
> Android.bp. 
>
> Let me know if you find any solution other than this conversion to bp file.
>
> Thanks,
> Amit
>
> On Wednesday, August 21, 2019 at 10:26:14 PM UTC+5:30, jw wang wrote:
>>
>>
>> Hi google
>>
>> is there anything missing so I got this ?
>>
>> ninja: error: 
>> 'out/soong/.intermediates/FOO/android_common/proguard_dictionary', needed 
>> by 'out/target/common/obj/APPS/FOO_intermediates/proguard_dictionary', 
>> missing and no known rule to make it
>> 11:43:21 ninja failed with: exit status 1
>>
>>
>>
>>
>>
>> On Tuesday, August 6, 2019 at 2:03:33 AM UTC+8, Dan Willemsen wrote:
>>>
>>> proguard_flag_files was a typo -- it should be proguard_flag*s*_files. 
>>> It was fixed here: 
>>> https://android-review.googlesource.com/c/platform/build/soong/+/691330
>>>
>>> - Dan
>>>
>>> On Wed, Jul 31, 2019 at 11:32 PM jw wang  wrote:
>>>
 Hi Google

 I'm coming across two similar build break after converting the mk to bp 
 :

 1. 1. service/Android.bp:7:28: unrecognized property "
 optimize.proguard_flag_files“

  2. /android_common/proguard_dictionary', needed by 
 'out/target/common/obj/APPS/AudioEFXService_intermediates/
 proguard_dictionary’


 I think the error comes from the optimize item which generated by 
 androidtomk tool
  optimize: {
  proguard_flag_files: ["proguard.flags"],
  
 },



 On Tuesday, 30 July 2019 22:10:07 UTC+8, jyoti kulkarni wrote:
>
> Hello Sir/madam,
>
> Im trying to convert some of the .mk files to .bp 
> I am using androidmk tool for initial conversion.
>
> But later I m trying to change the converted files to add some more 
> properties and some conditional statement.
>
> I have below questions:
> 1. Any new property added is giving an error "unrecognized property" 
> for eg: unrecognized property "host_required"
>
> 2. If I'am trying to include other .mk file in .bp its giving "Path 
> Outside directory"
> Iam trying to do something like this:
> srcs: ["../Android.mk"]
>
> Please help in addressing these questions.
>
> Thanks
>
 -- 
 -- 
 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-...@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-...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/android-building/63281eff-1da3-40f8-83fd-9b19243d2e8f%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/1d1f6b15-1023-4355-90cf-5cdc2e229a79%40googlegroups.com.