Re: [android-building] Benchmarktest64 directory

2019-10-14 Thread 'Colin Cross' via Android Building
How are you getting the benchmarks on to the device?  In my testing (`m
libjavacore-benchmarks`, `adb sync data` they are marked executable.

On Fri, Oct 11, 2019 at 10:49 AM Paul Elliott  wrote:

> Hi Colin,
>
> The curious bit is that even as root I am having to change the tests
> inside benchmarktest(64) to be executable because they too have no
> permissions, which is why I was curious about this as it clearly breaks
> automation for us, and therefore likely for anyone else. We could
> potentially submit a patch for this to add the directory to fs_config.cpp,
> however given the lack of mention by anyone else, was unsure if we were
> missing something, basically.
>
> Paul.
>
> On Thursday, October 10, 2019 at 9:12:11 PM UTC+1, Colin Cross wrote:
>>
>> Likely an oversight.  It has been this way for benchmarks defined in Make
>> since 2016.  Maybe the benchmark test runners are running as root?
>>
>> On Thu, Oct 10, 2019 at 10:22 AM Paul Elliott  wrote:
>>
>>> Hi all,
>>>
>>> Prior to android 9, all benchmarks and test suites were generally built
>>> into /data/nativetest(64), however recently in Android 9, some (but not
>>> all) tests have been ending up getting built into /data/benchmarktest(64),
>>> due to a change aligning soong with make -
>>> https://android-review.googlesource.com/c/platform/build/soong/+/479681
>>>
>>> This would be fine, however due to its lack of inclusion
>>> in system/core/libcutils/fs_config.cpp, this folder is created without any
>>> permissions whatsoever.
>>>
>>> I have checked this is still the case in Android 10, and indeed master.
>>> Is this an oversight, or am I missing something?
>>>
>>> Thanks in advance,
>>>
>>> Paul.
>>>
>>> --
>>> --
>>> 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/989e4b75-4366-4b18-b534-dd12f2c022a4%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/fce01460-04f9-49a1-b73b-f4c89c8a4ab4%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/CAMbhsRSUvHonrEz3eoUPi%2Bj%2B3uSsqJE2gVFyq7s3PABrYs-xiw%40mail.gmail.com.


Re: [android-building] repo 1.26 cause AOSP sync break..

2019-10-14 Thread 'Xin Li' via Android Building
On Mon, Oct 14, 2019 at 9:46 AM jw wang  wrote:

>
> have updated my ~/bin/repo  with the suggestion from AOSP, but get the
> following
>
>
> :~/work/agent/_work/android-10.0.0_r4$ repo --version
> repo version v1.13.7
>(from https://gerrit.googlesource.com/git-repo)
> repo launcher version 1.26
>(from /home/jericho/bin/repo)
>(currently at 1.13.7)
> repo User-Agent git-repo/1.13.7 (Linux) git/2.7.4 Python/2.7.12
> git 2.7.4
> git User-Agent git/2.7.4 (Linux) git-repo/1.13.7
> Python 2.7.12 (default, Oct  8 2019, 14:14:10)
> [GCC 5.4.0 20160609]
>
>
>
> :~/work/agent/_work/android-10.0.0_r4$ repo init -u
> https://android.googlesource.com/platform/manifest -b android-10.0.0_r4
> Get https://gerrit.googlesource.com/git-repo/clone.bundle
> Get https://gerrit.googlesource.com/git-repo
> remote: Counting objects: 1, done
> remote: Finding sources: 100% (64/64)
> remote: Total 64 (delta 9), reused 64 (delta 9)
> Unpacking objects: 100% (64/64), done.
> From https://gerrit.googlesource.com/git-repo
>fb527e3..d1e93dd  master -> origin/master
>a2cd6ae..e778e57  stable -> origin/stable
>  * [new tag] v1.13.7-> v1.13.7
> Traceback (most recent call last):
>   File "/home/jericho/bin/repo", line 939, in 
> main(sys.argv[1:])
>   File "/home/jericho/bin/repo", line 905, in main
> _Init(args, gitc_init=(cmd == 'gitc-init'))
>   File "/home/jericho/bin/repo", line 378, in _Init
> rev = _Verify(dst, branch, opt.quiet)
>   File "/home/jericho/bin/repo", line 715, in _Verify
> err = proc.stderr.read().decode('utf-8')
>   File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
> return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode bytes in position 66-67:
> invalid continuation byte
>
>
>
> any idea ?  from https://gerrit.googlesource.com/git-repo/+refs   I can
> see the latest version is v1.13.7
> 
>
> but the suggestion from aosp is repo launcher 1.26, what's the difference
> between repo and repo launcher ?
>

What's the locale setting?  e.g.

$ env | grep -E '^(LC_|LANG)'

Are you using something that is not UTF-8?



>
>
>
>
> --
> --
> 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/6f78d02c-7aeb-4864-ac37-b95f2f76d532%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/CAOhzdug-ZX-ZSyKYj-xVHNdrnpXaFPRF56E-AnmNgDk5GHRPQw%40mail.gmail.com.


Re: [android-building] FAILED: out/soong/.bootstrap/soong-android/test/android/soong/android.a

2019-10-14 Thread 张浩
Any result ?

在 2019年4月3日星期三 UTC+8下午1:06:10,liang...@hisilicon.com写道:
>
>
> ok,we will upgrade to ubutun 16.04 and  try again 。
>
> tks,
>
> 在 2019年4月3日星期三 UTC+8上午11:15:37,Dan Willemsen写道:
>>
>> I definitely recommend upgrade to at least the 4.4 kernel that is/was 
>> supported with 14.04: 
>> https://wiki.ubuntu.com/Kernel/LTSEnablementStack#Kernel.2FSupport.A14.04.x_Ubuntu_Kernel_Support
>>
>> We, and a number of other build farms hit a SIGBUS in the kernel rather 
>> frequently with 3.13, upgrading seems to fix it.
>>
>> Ubuntu 14.04 itself is becoming EOL this month, so you may want to think 
>> about upgrading to something newer -- modern android builds should be 
>> fairly flexible, as long as you pick something with recent kernels.
>>
>> - Dan
>>
>> On Tue, Apr 2, 2019 at 8:04 PM  wrote:
>>
>>>
>>> we use  android Q  compile ,  and  go version is :  go version go1.12.1 
>>> linux/amd64  
>>>
>>> tks;
>>>
>>> add the linux verison  and  kernel verison:
>>>
>>> lsb_release -a :
>>>
>>> Distributor ID: Ubuntu
>>> Description:Ubuntu 14.04 LTS
>>> Release:14.04
>>> Codename:   trusty
>>>
>>> uname -r  :
>>> 3.13.0-24-generic
>>>
>>>
>>>
>>> 在 2019年4月3日星期三 UTC+8上午12:04:38,Dan Willemsen写道:

 This is an error within the go compiler. Which version of android are 
 you using, and what does `prebuilts/go/linux-x86/bin/go version` return?

 - Dan

 On Tue, Apr 2, 2019 at 8:51 AM  wrote:

>
> when i build  android code, found soong panic like this below: 
>
> [ 49% 53/108] compile 
> out/soong/.bootstrap/soong-android/test/android/soong/android.a
> FAILED: out/soong/.bootstrap/soong-android/test/android/soong/android.a
> GOROOT='prebuilts/go/linux-x86' 
> prebuilts/go/linux-x86/pkg/tool/linux_amd64/compile -c 8 -o 
> out/soong/.bootstrap/soong-android/test/android/soong/android.a.tmp -p 
> android/soong/android -complete -I 
> out/soong/.bootstrap/blueprint-parser/pkg -I 
> out/soong/.bootstrap/blueprint-deptools/pkg -I 
> out/soong/.bootstrap/blueprint-pathtools/pkg -I 
> out/soong/.bootstrap/blueprint-proptools/pkg -I 
> out/soong/.bootstrap/blueprint/pkg -I 
> out/soong/.bootstrap/blueprint-bootstrap-bpdoc/pkg -I 
> out/soong/.bootstrap/blueprint-bootstrap/pkg -I 
> out/soong/.bootstrap/soong/pkg -I out/soong/.bootstrap/soong-env/pkg 
> -pack 
> build/soong/android/androidmk.go build/soong/android/apex.go 
> build/soong/android/api_levels.go build/soong/android/arch.go 
> build/soong/android/config.go build/soong/android/defaults.go 
> build/soong/android/defs.go build/soong/android/expand.go 
> build/soong/android/filegroup.go build/soong/android/hooks.go 
> build/soong/android/makevars.go build/soong/android/module.go 
> build/soong/android/mutator.go build/soong/android/namespace.go 
> build/soong/android/neverallow.go build/soong/android/onceper.go 
> build/soong/android/package_ctx.go build/soong/android/paths.go 
> build/soong/android/prebuilt.go build/soong/android/prebuilt_etc.go 
> build/soong/android/proto.go build/soong/android/register.go 
> build/soong/android/singleton.go build/soong/android/testing.go 
> build/soong/android/util.go build/soong/android/variable.go 
> build/soong/android/writedocs.go build/soong/android/env.go 
> build/soong/android/config_test.go build/soong/android/expand_test.go 
> build/soong/android/namespace_test.go 
> build/soong/android/neverallow_test.go build/soong/android/paths_test.go 
> build/soong/android/prebuilt_test.go 
> build/soong/android/prebuilt_etc_test.go build/soong/android/util_test.go 
> build/soong/android/variable_test.go && if cmp --quiet 
> out/soong/.bootstrap/soong-android/test/android/soong/android.a.tmp 
> out/soong/.bootstrap/soong-android/test/android/soong/android.a; then rm 
> out/soong/.bootstrap/soong-android/test/android/soong/android.a.tmp; else 
> mv -f out/soong/.bootstrap/soong-android/test/android/soong/android.a.tmp 
> out/soong/.bootstrap/soong-android/test/android/soong/android.a; fi
> unexpected fault address 0xc003c08258
> fatal error: fault
> [signal SIGBUS: bus error code=0x2 addr=0xc003c08258 pc=0x61e5d4]
>
> goroutine 43 [running]:
> runtime.throw(0xc9db61, 0x5)
> prebuilts/go/linux-x86/src/runtime/panic.go:608 +0x72 fp=0xc0028302c8 
> sp=0xc002830298 pc=0x42a9f2
> runtime.sigpanic()
> prebuilts/go/linux-x86/src/runtime/signal_unix.go:387 +0x2d7 
> fp=0xc002830318 sp=0xc0028302c8 pc=0x43e587
> cmd/compile/internal/ssa.(*regAllocState).init(0xc0036df800, 
> 0xc0025e7e40)
> prebuilts/go/linux-x86/src/cmd/compile/internal/ssa/regalloc.go:669 
> +0x634 fp=0xc002830400 sp=0xc002830318 pc=0x61e5d4
> cmd/compile/internal/ssa.regalloc(0xc0025e7e40)
> prebuilts/go/linux-x86/src/cmd/compile/internal/ssa/regalloc.go:144 
> +0x4a fp=0xc002830428 

[android-building] FAILED: ninja: 'Android.bp', needed by 'out/soong/.bootstrap/build.ninja', missing and no known rule to make it

2019-10-14 Thread ____
Hello,
when i try to build a module of type prebuilt_etc from Android.bp I am 
facing the following errors.
FAILED: ninja: 'Android.bp', needed by 'out/soong/.bootstrap/build.ninja', 
missing and no known rule to make it
09:37:45 soong minibootstrap failed with: exit status 1

 failed to build some targets (3 seconds) 

 Can u help me with this. Thanks in advance

-- 
-- 
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/79ad695c-0535-4544-99b8-ffe1c5fc861e%40googlegroups.com.


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

2019-10-14 Thread REGURI AKANKSHA
How to write headers in Android.bp?

say Android.mk has header of this type 
include $(CLEAR_VARS)
LOCAL_COPY_HEADERS_TO := x
LOCAL_COPY_HEADERS:= y
LOCAL_PROPRIETARY_MODULE := z
include $(BUILD_COPY_HEADERS)

How to write such headers in Android.bp? i know that LOCAL_COPY_HEADERS is 
deprecated in Soong, but have no idea of how to write to Android.bp
Thanks in Advance

-- 
-- 
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/2ac5ecc7-d171-4d9e-9a6c-a92fd9612cfa%40googlegroups.com.


[android-building] Succesful compilation of modules in Android.bp

2019-10-14 Thread REGURI AKANKSHA
when executing a module with make command like make "modulename",
 I am getting errors: failed to build some targets and  hidl-gen 
compilation failed check above errors
 That module is of type prebuilt_etc in Android.bp.
The module I am executing is independent , but some other modules are 
dependent on this module
How to handle successful execution of modules in Android.bp?
Thanks in advance

-- 
-- 
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/d727e2a2-f021-4336-a841-f15429443b63%40googlegroups.com.


[android-building] repo 1.26 cause AOSP sync break..

2019-10-14 Thread jw wang

have updated my ~/bin/repo  with the suggestion from AOSP, but get the 
following


:~/work/agent/_work/android-10.0.0_r4$ repo --version
repo version v1.13.7
   (from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.26
   (from /home/jericho/bin/repo)
   (currently at 1.13.7)
repo User-Agent git-repo/1.13.7 (Linux) git/2.7.4 Python/2.7.12
git 2.7.4
git User-Agent git/2.7.4 (Linux) git-repo/1.13.7
Python 2.7.12 (default, Oct  8 2019, 14:14:10)
[GCC 5.4.0 20160609]



:~/work/agent/_work/android-10.0.0_r4$ repo init -u 
https://android.googlesource.com/platform/manifest -b android-10.0.0_r4
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 1, done
remote: Finding sources: 100% (64/64)
remote: Total 64 (delta 9), reused 64 (delta 9)
Unpacking objects: 100% (64/64), done.
>From https://gerrit.googlesource.com/git-repo
   fb527e3..d1e93dd  master -> origin/master
   a2cd6ae..e778e57  stable -> origin/stable
 * [new tag] v1.13.7-> v1.13.7
Traceback (most recent call last):
  File "/home/jericho/bin/repo", line 939, in 
main(sys.argv[1:])
  File "/home/jericho/bin/repo", line 905, in main
_Init(args, gitc_init=(cmd == 'gitc-init'))
  File "/home/jericho/bin/repo", line 378, in _Init
rev = _Verify(dst, branch, opt.quiet)
  File "/home/jericho/bin/repo", line 715, in _Verify
err = proc.stderr.read().decode('utf-8')
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 66-67: 
invalid continuation byte



any idea ?  from https://gerrit.googlesource.com/git-repo/+refs   I can see 
the latest version is v1.13.7 


but the suggestion from aosp is repo launcher 1.26, what's the difference 
between repo and repo launcher ?




-- 
-- 
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/6f78d02c-7aeb-4864-ac37-b95f2f76d532%40googlegroups.com.