Re: [android-building] No response after “lunch" command

2017-12-20 Thread Colin Cross
The results of the finder are cached in out/.module_paths/files.db, so once
the command has completed successfully once the next runs will be much
faster.  You could try wiping that file to reproduce it again, or run with
a different value for OUT_DIR (OUT_DIR=out2 lunch ...).

On Wed, Dec 20, 2017 at 1:58 PM, Peter Warrington 
wrote:

> Hello, the command has now started to work like normal after leaving it
> for a while, so my problem might not be the same as Alessandro's.
> Unfortunately, I cannot upload a bigger stack trace until tomorrow because
> of the time in my timezone. Sorry!
>
> On Wednesday, December 20, 2017 at 9:48:34 PM UTC, Colin Cross wrote:
>>
>> Can you attach a longer strace with -T ?
>>
>> On Wed, Dec 20, 2017 at 1:28 PM, Peter Warrington 
>> wrote:
>>
>>> Thank you! That is very interesting. In case it helps, I benchmarked my
>>> external HDD and it has an average read rate of 92.0 MB/s and an average
>>> access time of 16.37 msec. However, I didn't have any trouble with this
>>> previously.
>>>
>>> On Wednesday, December 20, 2017 at 9:06:16 PM UTC, Colin Cross wrote:

 Nothing looks wrong in that strace, it is making forward progress.  It
 needs to read every directory and stat every file in the tree, is your
 filesystem very slow for some reason?

 One difference I see between the old implementation using the find tool
 and the new implementation is that find seems to be able to avoiding
 calling stat on every directory entry, because the relevant information
 (whether the entry is a subdirectory or a file) is contained in the return
 from the getdents64 syscall.  The Go implementation is ignoring that
 information and has to call lstat to get it.

 On Wed, Dec 20, 2017 at 11:32 AM, Peter Warrington >>> > wrote:

> Attached is a partial strace.
>
> On Wednesday, December 20, 2017 at 7:06:31 PM UTC, Colin Cross wrote:
>>
>> From the stack trace after ctrl-c, lunch will be waiting for the
>> child soong_ui process to complete.  An strace of that process would be
>> interesting.
>>
>> On Mon, Dec 18, 2017 at 4:12 PM, Alessandro Brucato <
>> ale13...@gmail.com> wrote:
>>
>>> This is the output of strace attached to the process in which I
>>> execute "lunch".
>>>
>>>
>>>
>>> 
>>>
>>> When "lunch" is stuck, the output of strace ends with "wait4(-1,".
>>> All the remaining part appears when I abort "lunch" with CTRL+C.
>>>
>>> Maybe this issue is due to the fact that I'm using a guest in
>>> Virtualbox?
>>>
>>> Il giorno lunedì 18 dicembre 2017 23:45:48 UTC+1, Colin Cross ha
>>> scritto:

 Can you capture the full output of all the stack traces?

 It's getting stuck while trying to walk all the checked-out code
 looking for various build files.  If it was completely deadlocked then 
 it
 would have died on its own, so it's probably stuck in a loop somehow.

 On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato <
 ale13...@gmail.com> wrote:

> Hello, I'm trying to build the Android source code for my Hikey
> 960 board.
> I'm following this video tutorial https://www.youtube.c
> om/watch?v=RD_NZRKiZBU in parallel to the official Android guide
> https://source.android.com/setup/devices#hikey-boards.
>
>
> Everything went fine until I reached the command "lunch
> hikey960-userdebug". It blocks, without returning any output. I left 
> it
> "working" for 1 hour and then I aborted it (even if I know that this
> command should take few seconds). If I execute only "lunch" it shows 
> the
> list of available build targets, and when I select 
> "hikey960-userdebug" it
> blocks. When I abort it with CTRL+C, it says "Still alive, killing
> subprocesses" and then it shows a lot of messages referring to 
> threads.
> Here is the screenshot https://ibb.co/k32KQR
> I noticed that also the "make" command (inside the AOSP directory)
> has the same behaviour.
>
>
> This is the list of commands I've used during the process:
>
>
> sudo apt-get install openjdk-7-jdk
>
> sudo apt-get install git-core gnupg flex bison gperf
> build-essential zip curl zlib1g-dev gcc-multilib g++-multilib
> libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev 
> lib32z-dev
> ccache libgl1-mesa-dev libxml2-utils xsltproc unzip
>
> mkdir output
>
> export OUT_DIR_COMMON_BASE=/home/brucedh/output/
>
> mkdir ~/bin
>
> PATH=~/bin:$PATH

Re: [android-building] No response after “lunch" command

2017-12-20 Thread Peter Warrington
Hello, the command has now started to work like normal after leaving it for 
a while, so my problem might not be the same as Alessandro's. 
Unfortunately, I cannot upload a bigger stack trace until tomorrow because 
of the time in my timezone. Sorry!

On Wednesday, December 20, 2017 at 9:48:34 PM UTC, Colin Cross wrote:
>
> Can you attach a longer strace with -T ?
>
> On Wed, Dec 20, 2017 at 1:28 PM, Peter Warrington  > wrote:
>
>> Thank you! That is very interesting. In case it helps, I benchmarked my 
>> external HDD and it has an average read rate of 92.0 MB/s and an average 
>> access time of 16.37 msec. However, I didn't have any trouble with this 
>> previously.
>>
>> On Wednesday, December 20, 2017 at 9:06:16 PM UTC, Colin Cross wrote:
>>>
>>> Nothing looks wrong in that strace, it is making forward progress.  It 
>>> needs to read every directory and stat every file in the tree, is your 
>>> filesystem very slow for some reason?
>>>
>>> One difference I see between the old implementation using the find tool 
>>> and the new implementation is that find seems to be able to avoiding 
>>> calling stat on every directory entry, because the relevant information 
>>> (whether the entry is a subdirectory or a file) is contained in the return 
>>> from the getdents64 syscall.  The Go implementation is ignoring that 
>>> information and has to call lstat to get it.
>>>
>>> On Wed, Dec 20, 2017 at 11:32 AM, Peter Warrington  
>>> wrote:
>>>
 Attached is a partial strace.

 On Wednesday, December 20, 2017 at 7:06:31 PM UTC, Colin Cross wrote:
>
> From the stack trace after ctrl-c, lunch will be waiting for the child 
> soong_ui process to complete.  An strace of that process would be 
> interesting.
>
> On Mon, Dec 18, 2017 at 4:12 PM, Alessandro Brucato <
> ale13...@gmail.com> wrote:
>
>> This is the output of strace attached to the process in which I 
>> execute "lunch".
>>
>>
>>
>> 
>>
>> When "lunch" is stuck, the output of strace ends with "wait4(-1,". 
>> All the remaining part appears when I abort "lunch" with CTRL+C.
>>
>> Maybe this issue is due to the fact that I'm using a guest in 
>> Virtualbox?
>>
>> Il giorno lunedì 18 dicembre 2017 23:45:48 UTC+1, Colin Cross ha 
>> scritto:
>>>
>>> Can you capture the full output of all the stack traces?
>>>
>>> It's getting stuck while trying to walk all the checked-out code 
>>> looking for various build files.  If it was completely deadlocked then 
>>> it 
>>> would have died on its own, so it's probably stuck in a loop somehow.
>>>
>>> On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato <
>>> ale13...@gmail.com> wrote:
>>>
 Hello, I'm trying to build the Android source code for my Hikey 960 
 board.
 I'm following this video tutorial 
 https://www.youtube.com/watch?v=RD_NZRKiZBU in parallel to the 
 official Android guide 
 https://source.android.com/setup/devices#hikey-boards.


 Everything went fine until I reached the command "lunch 
 hikey960-userdebug". It blocks, without returning any output. I left 
 it 
 "working" for 1 hour and then I aborted it (even if I know that this 
 command should take few seconds). If I execute only "lunch" it shows 
 the 
 list of available build targets, and when I select 
 "hikey960-userdebug" it 
 blocks. When I abort it with CTRL+C, it says "Still alive, killing 
 subprocesses" and then it shows a lot of messages referring to 
 threads. 
 Here is the screenshot https://ibb.co/k32KQR
 I noticed that also the "make" command (inside the AOSP directory) 
 has the same behaviour.


 This is the list of commands I've used during the process:


 sudo apt-get install openjdk-7-jdk

 sudo apt-get install git-core gnupg flex bison gperf 
 build-essential zip curl zlib1g-dev gcc-multilib g++-multilib 
 libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev 
 lib32z-dev 
 ccache libgl1-mesa-dev libxml2-utils xsltproc unzip

 mkdir output

 export OUT_DIR_COMMON_BASE=/home/brucedh/output/

 mkdir ~/bin

 PATH=~/bin:$PATH

 curl https://storage.googleapis.com/git-repo-downloads/repo > 
 ~/bin/repo

 chmod a+x ~/bin/repo

 mkdir dev

 cd dev

 mkdir hikey960

 cd hikey960

 git config --global user.name ""

 git config --global user.email ""

 repo init -u https://android.goo

Re: [android-building] No response after “lunch" command

2017-12-20 Thread Colin Cross
Can you attach a longer strace with -T ?

On Wed, Dec 20, 2017 at 1:28 PM, Peter Warrington 
wrote:

> Thank you! That is very interesting. In case it helps, I benchmarked my
> external HDD and it has an average read rate of 92.0 MB/s and an average
> access time of 16.37 msec. However, I didn't have any trouble with this
> previously.
>
> On Wednesday, December 20, 2017 at 9:06:16 PM UTC, Colin Cross wrote:
>>
>> Nothing looks wrong in that strace, it is making forward progress.  It
>> needs to read every directory and stat every file in the tree, is your
>> filesystem very slow for some reason?
>>
>> One difference I see between the old implementation using the find tool
>> and the new implementation is that find seems to be able to avoiding
>> calling stat on every directory entry, because the relevant information
>> (whether the entry is a subdirectory or a file) is contained in the return
>> from the getdents64 syscall.  The Go implementation is ignoring that
>> information and has to call lstat to get it.
>>
>> On Wed, Dec 20, 2017 at 11:32 AM, Peter Warrington 
>> wrote:
>>
>>> Attached is a partial strace.
>>>
>>> On Wednesday, December 20, 2017 at 7:06:31 PM UTC, Colin Cross wrote:

 From the stack trace after ctrl-c, lunch will be waiting for the child
 soong_ui process to complete.  An strace of that process would be
 interesting.

 On Mon, Dec 18, 2017 at 4:12 PM, Alessandro Brucato >>> > wrote:

> This is the output of strace attached to the process in which I
> execute "lunch".
>
>
>
> 
>
> When "lunch" is stuck, the output of strace ends with "wait4(-1,". All
> the remaining part appears when I abort "lunch" with CTRL+C.
>
> Maybe this issue is due to the fact that I'm using a guest in
> Virtualbox?
>
> Il giorno lunedì 18 dicembre 2017 23:45:48 UTC+1, Colin Cross ha
> scritto:
>>
>> Can you capture the full output of all the stack traces?
>>
>> It's getting stuck while trying to walk all the checked-out code
>> looking for various build files.  If it was completely deadlocked then it
>> would have died on its own, so it's probably stuck in a loop somehow.
>>
>> On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato <
>> ale13...@gmail.com> wrote:
>>
>>> Hello, I'm trying to build the Android source code for my Hikey 960
>>> board.
>>> I'm following this video tutorial https://www.youtube.c
>>> om/watch?v=RD_NZRKiZBU in parallel to the official Android guide
>>> https://source.android.com/setup/devices#hikey-boards.
>>>
>>>
>>> Everything went fine until I reached the command "lunch
>>> hikey960-userdebug". It blocks, without returning any output. I left it
>>> "working" for 1 hour and then I aborted it (even if I know that this
>>> command should take few seconds). If I execute only "lunch" it shows the
>>> list of available build targets, and when I select "hikey960-userdebug" 
>>> it
>>> blocks. When I abort it with CTRL+C, it says "Still alive, killing
>>> subprocesses" and then it shows a lot of messages referring to threads.
>>> Here is the screenshot https://ibb.co/k32KQR
>>> I noticed that also the "make" command (inside the AOSP directory)
>>> has the same behaviour.
>>>
>>>
>>> This is the list of commands I've used during the process:
>>>
>>>
>>> sudo apt-get install openjdk-7-jdk
>>>
>>> sudo apt-get install git-core gnupg flex bison gperf build-essential
>>> zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386
>>> lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache
>>> libgl1-mesa-dev libxml2-utils xsltproc unzip
>>>
>>> mkdir output
>>>
>>> export OUT_DIR_COMMON_BASE=/home/brucedh/output/
>>>
>>> mkdir ~/bin
>>>
>>> PATH=~/bin:$PATH
>>>
>>> curl https://storage.googleapis.com/git-repo-downloads/repo >
>>> ~/bin/repo
>>>
>>> chmod a+x ~/bin/repo
>>>
>>> mkdir dev
>>>
>>> cd dev
>>>
>>> mkdir hikey960
>>>
>>> cd hikey960
>>>
>>> git config --global user.name ""
>>>
>>> git config --global user.email ""
>>>
>>> repo init -u https://android.googlesource.com/platform/manifest -b
>>> master
>>>
>>> repo sync –j4
>>>
>>> git clone https://android.googlesource.com/kernel/hikey-linaro
>>>
>>> cd hikey-linaro
>>>
>>> git checkout -b android-hikey-linaro-4.9
>>> origin/android-hikey-linaro-4.9
>>>
>>> make ARCH=arm64 menuconfig
>>>
>>> make ARCH=arm64 hikey960_defconfig
>>>
>>> PATH=/home/brucedh/dev/hikey960/prebuilts/gcc/linux-x86/
>>> aarch64/aarch64-linux-android-4.9/bin/:$PATH
>>>
>>> make ARCH=arm64 CROSS_COMPILE=aarc

Re: [android-building] No response after “lunch" command

2017-12-20 Thread Peter Warrington
Thank you! That is very interesting. In case it helps, I benchmarked my 
external HDD and it has an average read rate of 92.0 MB/s and an average 
access time of 16.37 msec. However, I didn't have any trouble with this 
previously.

On Wednesday, December 20, 2017 at 9:06:16 PM UTC, Colin Cross wrote:
>
> Nothing looks wrong in that strace, it is making forward progress.  It 
> needs to read every directory and stat every file in the tree, is your 
> filesystem very slow for some reason?
>
> One difference I see between the old implementation using the find tool 
> and the new implementation is that find seems to be able to avoiding 
> calling stat on every directory entry, because the relevant information 
> (whether the entry is a subdirectory or a file) is contained in the return 
> from the getdents64 syscall.  The Go implementation is ignoring that 
> information and has to call lstat to get it.
>
> On Wed, Dec 20, 2017 at 11:32 AM, Peter Warrington  > wrote:
>
>> Attached is a partial strace.
>>
>> On Wednesday, December 20, 2017 at 7:06:31 PM UTC, Colin Cross wrote:
>>>
>>> From the stack trace after ctrl-c, lunch will be waiting for the child 
>>> soong_ui process to complete.  An strace of that process would be 
>>> interesting.
>>>
>>> On Mon, Dec 18, 2017 at 4:12 PM, Alessandro Brucato  
>>> wrote:
>>>
 This is the output of strace attached to the process in which I execute 
 "lunch".



 

 When "lunch" is stuck, the output of strace ends with "wait4(-1,". All 
 the remaining part appears when I abort "lunch" with CTRL+C.

 Maybe this issue is due to the fact that I'm using a guest in 
 Virtualbox?

 Il giorno lunedì 18 dicembre 2017 23:45:48 UTC+1, Colin Cross ha 
 scritto:
>
> Can you capture the full output of all the stack traces?
>
> It's getting stuck while trying to walk all the checked-out code 
> looking for various build files.  If it was completely deadlocked then it 
> would have died on its own, so it's probably stuck in a loop somehow.
>
> On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato <
> ale13...@gmail.com> wrote:
>
>> Hello, I'm trying to build the Android source code for my Hikey 960 
>> board.
>> I'm following this video tutorial 
>> https://www.youtube.com/watch?v=RD_NZRKiZBU in parallel to the 
>> official Android guide 
>> https://source.android.com/setup/devices#hikey-boards.
>>
>>
>> Everything went fine until I reached the command "lunch 
>> hikey960-userdebug". It blocks, without returning any output. I left it 
>> "working" for 1 hour and then I aborted it (even if I know that this 
>> command should take few seconds). If I execute only "lunch" it shows the 
>> list of available build targets, and when I select "hikey960-userdebug" 
>> it 
>> blocks. When I abort it with CTRL+C, it says "Still alive, killing 
>> subprocesses" and then it shows a lot of messages referring to threads. 
>> Here is the screenshot https://ibb.co/k32KQR
>> I noticed that also the "make" command (inside the AOSP directory) 
>> has the same behaviour.
>>
>>
>> This is the list of commands I've used during the process:
>>
>>
>> sudo apt-get install openjdk-7-jdk
>>
>> sudo apt-get install git-core gnupg flex bison gperf build-essential 
>> zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 
>> lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache 
>> libgl1-mesa-dev libxml2-utils xsltproc unzip
>>
>> mkdir output
>>
>> export OUT_DIR_COMMON_BASE=/home/brucedh/output/
>>
>> mkdir ~/bin
>>
>> PATH=~/bin:$PATH
>>
>> curl https://storage.googleapis.com/git-repo-downloads/repo > 
>> ~/bin/repo
>>
>> chmod a+x ~/bin/repo
>>
>> mkdir dev
>>
>> cd dev
>>
>> mkdir hikey960
>>
>> cd hikey960
>>
>> git config --global user.name ""
>>
>> git config --global user.email ""
>>
>> repo init -u https://android.googlesource.com/platform/manifest -b 
>> master
>>
>> repo sync –j4
>>
>> git clone https://android.googlesource.com/kernel/hikey-linaro
>>
>> cd hikey-linaro
>>
>> git checkout -b android-hikey-linaro-4.9 
>> origin/android-hikey-linaro-4.9
>>
>> make ARCH=arm64 menuconfig
>>
>> make ARCH=arm64 hikey960_defconfig
>>
>>
>> PATH=/home/brucedh/dev/hikey960/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/:$PATH
>>
>> make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j4
>>
>> cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb 
>> ../device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9
>>
>> cp arch/arm64/boot/Image.gz 
>

Re: [android-building] No response after “lunch" command

2017-12-20 Thread Colin Cross
Nothing looks wrong in that strace, it is making forward progress.  It
needs to read every directory and stat every file in the tree, is your
filesystem very slow for some reason?

One difference I see between the old implementation using the find tool and
the new implementation is that find seems to be able to avoiding calling
stat on every directory entry, because the relevant information (whether
the entry is a subdirectory or a file) is contained in the return from the
getdents64 syscall.  The Go implementation is ignoring that information and
has to call lstat to get it.

On Wed, Dec 20, 2017 at 11:32 AM, Peter Warrington 
wrote:

> Attached is a partial strace.
>
> On Wednesday, December 20, 2017 at 7:06:31 PM UTC, Colin Cross wrote:
>>
>> From the stack trace after ctrl-c, lunch will be waiting for the child
>> soong_ui process to complete.  An strace of that process would be
>> interesting.
>>
>> On Mon, Dec 18, 2017 at 4:12 PM, Alessandro Brucato 
>> wrote:
>>
>>> This is the output of strace attached to the process in which I execute
>>> "lunch".
>>>
>>>
>>>
>>> 
>>>
>>> When "lunch" is stuck, the output of strace ends with "wait4(-1,". All
>>> the remaining part appears when I abort "lunch" with CTRL+C.
>>>
>>> Maybe this issue is due to the fact that I'm using a guest in Virtualbox?
>>>
>>> Il giorno lunedì 18 dicembre 2017 23:45:48 UTC+1, Colin Cross ha scritto:

 Can you capture the full output of all the stack traces?

 It's getting stuck while trying to walk all the checked-out code
 looking for various build files.  If it was completely deadlocked then it
 would have died on its own, so it's probably stuck in a loop somehow.

 On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato >>> > wrote:

> Hello, I'm trying to build the Android source code for my Hikey 960
> board.
> I'm following this video tutorial https://www.youtube.c
> om/watch?v=RD_NZRKiZBU in parallel to the official Android guide
> https://source.android.com/setup/devices#hikey-boards.
>
>
> Everything went fine until I reached the command "lunch
> hikey960-userdebug". It blocks, without returning any output. I left it
> "working" for 1 hour and then I aborted it (even if I know that this
> command should take few seconds). If I execute only "lunch" it shows the
> list of available build targets, and when I select "hikey960-userdebug" it
> blocks. When I abort it with CTRL+C, it says "Still alive, killing
> subprocesses" and then it shows a lot of messages referring to threads.
> Here is the screenshot https://ibb.co/k32KQR
> I noticed that also the "make" command (inside the AOSP directory) has
> the same behaviour.
>
>
> This is the list of commands I've used during the process:
>
>
> sudo apt-get install openjdk-7-jdk
>
> sudo apt-get install git-core gnupg flex bison gperf build-essential
> zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386
> lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache
> libgl1-mesa-dev libxml2-utils xsltproc unzip
>
> mkdir output
>
> export OUT_DIR_COMMON_BASE=/home/brucedh/output/
>
> mkdir ~/bin
>
> PATH=~/bin:$PATH
>
> curl https://storage.googleapis.com/git-repo-downloads/repo >
> ~/bin/repo
>
> chmod a+x ~/bin/repo
>
> mkdir dev
>
> cd dev
>
> mkdir hikey960
>
> cd hikey960
>
> git config --global user.name ""
>
> git config --global user.email ""
>
> repo init -u https://android.googlesource.com/platform/manifest -b
> master
>
> repo sync –j4
>
> git clone https://android.googlesource.com/kernel/hikey-linaro
>
> cd hikey-linaro
>
> git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.
> 9
>
> make ARCH=arm64 menuconfig
>
> make ARCH=arm64 hikey960_defconfig
>
> PATH=/home/brucedh/dev/hikey960/prebuilts/gcc/linux-x86/
> aarch64/aarch64-linux-android-4.9/bin/:$PATH
>
> make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j4
>
> cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb
> ../device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9
>
> cp arch/arm64/boot/Image.gz ../device/linaro/hikey-kernel/
> Image.gz-hikey960-4.9
>
> cd ~/dev/hikey960
>
> . ./build/envsetup.sh
>
> lunch hikey960-userdebug
>
>
>
> I'm using Ubuntu 16.04 LTS as guest on Virtualbox. I tried to do all
> the process once again from the beginning with a new virtualbox image, but
> I found the same problem.
>
> Thanks in advance!
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing lis

Re: [android-building] No response after “lunch" command

2017-12-20 Thread Peter Warrington
Attached is a partial strace.

On Wednesday, December 20, 2017 at 7:06:31 PM UTC, Colin Cross wrote:
>
> From the stack trace after ctrl-c, lunch will be waiting for the child 
> soong_ui process to complete.  An strace of that process would be 
> interesting.
>
> On Mon, Dec 18, 2017 at 4:12 PM, Alessandro Brucato  > wrote:
>
>> This is the output of strace attached to the process in which I execute 
>> "lunch".
>>
>>
>>
>> 
>>
>> When "lunch" is stuck, the output of strace ends with "wait4(-1,". All 
>> the remaining part appears when I abort "lunch" with CTRL+C.
>>
>> Maybe this issue is due to the fact that I'm using a guest in Virtualbox?
>>
>> Il giorno lunedì 18 dicembre 2017 23:45:48 UTC+1, Colin Cross ha scritto:
>>>
>>> Can you capture the full output of all the stack traces?
>>>
>>> It's getting stuck while trying to walk all the checked-out code looking 
>>> for various build files.  If it was completely deadlocked then it would 
>>> have died on its own, so it's probably stuck in a loop somehow.
>>>
>>> On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato  
>>> wrote:
>>>
 Hello, I'm trying to build the Android source code for my Hikey 960 
 board.
 I'm following this video tutorial 
 https://www.youtube.com/watch?v=RD_NZRKiZBU in parallel to the 
 official Android guide 
 https://source.android.com/setup/devices#hikey-boards.


 Everything went fine until I reached the command "lunch 
 hikey960-userdebug". It blocks, without returning any output. I left it 
 "working" for 1 hour and then I aborted it (even if I know that this 
 command should take few seconds). If I execute only "lunch" it shows the 
 list of available build targets, and when I select "hikey960-userdebug" it 
 blocks. When I abort it with CTRL+C, it says "Still alive, killing 
 subprocesses" and then it shows a lot of messages referring to threads. 
 Here is the screenshot https://ibb.co/k32KQR
 I noticed that also the "make" command (inside the AOSP directory) has 
 the same behaviour.


 This is the list of commands I've used during the process:


 sudo apt-get install openjdk-7-jdk

 sudo apt-get install git-core gnupg flex bison gperf build-essential 
 zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 
 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache 
 libgl1-mesa-dev libxml2-utils xsltproc unzip

 mkdir output

 export OUT_DIR_COMMON_BASE=/home/brucedh/output/

 mkdir ~/bin

 PATH=~/bin:$PATH

 curl https://storage.googleapis.com/git-repo-downloads/repo > 
 ~/bin/repo

 chmod a+x ~/bin/repo

 mkdir dev

 cd dev

 mkdir hikey960

 cd hikey960

 git config --global user.name ""

 git config --global user.email ""

 repo init -u https://android.googlesource.com/platform/manifest -b 
 master

 repo sync –j4

 git clone https://android.googlesource.com/kernel/hikey-linaro

 cd hikey-linaro

 git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9

 make ARCH=arm64 menuconfig

 make ARCH=arm64 hikey960_defconfig


 PATH=/home/brucedh/dev/hikey960/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/:$PATH

 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j4

 cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb 
 ../device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9

 cp arch/arm64/boot/Image.gz 
 ../device/linaro/hikey-kernel/Image.gz-hikey960-4.9

 cd ~/dev/hikey960

 . ./build/envsetup.sh

 lunch hikey960-userdebug



 I'm using Ubuntu 16.04 LTS as guest on Virtualbox. I tried to do all 
 the process once again from the beginning with a new virtualbox image, but 
 I found the same problem.

 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-...@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.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> -- 
>> -- 
>> You received this message because you are subscribed to the "Android 
>> Building" mailing list.
>> To post to this group, send email to

Re: [android-building] No response after “lunch" command

2017-12-20 Thread Colin Cross
>From the stack trace after ctrl-c, lunch will be waiting for the child
soong_ui process to complete.  An strace of that process would be
interesting.

On Mon, Dec 18, 2017 at 4:12 PM, Alessandro Brucato 
wrote:

> This is the output of strace attached to the process in which I execute
> "lunch".
>
>
>
> 
>
> When "lunch" is stuck, the output of strace ends with "wait4(-1,". All the
> remaining part appears when I abort "lunch" with CTRL+C.
>
> Maybe this issue is due to the fact that I'm using a guest in Virtualbox?
>
> Il giorno lunedì 18 dicembre 2017 23:45:48 UTC+1, Colin Cross ha scritto:
>>
>> Can you capture the full output of all the stack traces?
>>
>> It's getting stuck while trying to walk all the checked-out code looking
>> for various build files.  If it was completely deadlocked then it would
>> have died on its own, so it's probably stuck in a loop somehow.
>>
>> On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato 
>> wrote:
>>
>>> Hello, I'm trying to build the Android source code for my Hikey 960
>>> board.
>>> I'm following this video tutorial https://www.youtube.c
>>> om/watch?v=RD_NZRKiZBU in parallel to the official Android guide
>>> https://source.android.com/setup/devices#hikey-boards.
>>>
>>>
>>> Everything went fine until I reached the command "lunch
>>> hikey960-userdebug". It blocks, without returning any output. I left it
>>> "working" for 1 hour and then I aborted it (even if I know that this
>>> command should take few seconds). If I execute only "lunch" it shows the
>>> list of available build targets, and when I select "hikey960-userdebug" it
>>> blocks. When I abort it with CTRL+C, it says "Still alive, killing
>>> subprocesses" and then it shows a lot of messages referring to threads.
>>> Here is the screenshot https://ibb.co/k32KQR
>>> I noticed that also the "make" command (inside the AOSP directory) has
>>> the same behaviour.
>>>
>>>
>>> This is the list of commands I've used during the process:
>>>
>>>
>>> sudo apt-get install openjdk-7-jdk
>>>
>>> sudo apt-get install git-core gnupg flex bison gperf build-essential zip
>>> curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev
>>> x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev
>>> libxml2-utils xsltproc unzip
>>>
>>> mkdir output
>>>
>>> export OUT_DIR_COMMON_BASE=/home/brucedh/output/
>>>
>>> mkdir ~/bin
>>>
>>> PATH=~/bin:$PATH
>>>
>>> curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
>>>
>>> chmod a+x ~/bin/repo
>>>
>>> mkdir dev
>>>
>>> cd dev
>>>
>>> mkdir hikey960
>>>
>>> cd hikey960
>>>
>>> git config --global user.name ""
>>>
>>> git config --global user.email ""
>>>
>>> repo init -u https://android.googlesource.com/platform/manifest -b
>>> master
>>>
>>> repo sync –j4
>>>
>>> git clone https://android.googlesource.com/kernel/hikey-linaro
>>>
>>> cd hikey-linaro
>>>
>>> git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9
>>>
>>> make ARCH=arm64 menuconfig
>>>
>>> make ARCH=arm64 hikey960_defconfig
>>>
>>> PATH=/home/brucedh/dev/hikey960/prebuilts/gcc/linux-x86/
>>> aarch64/aarch64-linux-android-4.9/bin/:$PATH
>>>
>>> make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j4
>>>
>>> cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb
>>> ../device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9
>>>
>>> cp arch/arm64/boot/Image.gz ../device/linaro/hikey-kernel/
>>> Image.gz-hikey960-4.9
>>>
>>> cd ~/dev/hikey960
>>>
>>> . ./build/envsetup.sh
>>>
>>> lunch hikey960-userdebug
>>>
>>>
>>>
>>> I'm using Ubuntu 16.04 LTS as guest on Virtualbox. I tried to do all the
>>> process once again from the beginning with a new virtualbox image, but I
>>> found the same problem.
>>>
>>> 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-...@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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> --
> 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 G

Re: [android-building] No response after “lunch" command

2017-12-20 Thread Colin Cross
There will be at least one goroutine with a different stack.  Can you
capture the full log and put it somewhere I can see?

On Tue, Dec 19, 2017 at 9:29 AM, Peter Warrington 
wrote:

> Hello, I've had this same problem building for a different target too.
> When I press ctrl+c to exit I got the following output repeated:
>
> goroutine 6171 [chan send]:
> android/soong/finder.(*semaphore).Lock(...)
> build/soong/finder/finder.go:589
> android/soong/finder.(*threadPool).Run.func1(0xc4200f0500, 0xc420f5e720)
> build/soong/finder/finder.go:626 +0x41
> created by android/soong/finder.(*threadPool).Run
> build/soong/finder/finder.go:625 +0x62
>
> This seems to suggest that it is having trouble finding the files on my
> external HDD. A workaround of this in theory would be to disable "Soong"
> which replaces makefiles (See https://android.googlesource.
> com/platform/build/soong/) but I do not know if this is possible or how
> to do it.
>
> On Monday, December 18, 2017 at 10:45:48 PM UTC, Colin Cross wrote:
>>
>> Can you capture the full output of all the stack traces?
>>
>> It's getting stuck while trying to walk all the checked-out code looking
>> for various build files.  If it was completely deadlocked then it would
>> have died on its own, so it's probably stuck in a loop somehow.
>>
>> On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato 
>> wrote:
>>
>>> Hello, I'm trying to build the Android source code for my Hikey 960
>>> board.
>>> I'm following this video tutorial https://www.youtube.c
>>> om/watch?v=RD_NZRKiZBU in parallel to the official Android guide
>>> https://source.android.com/setup/devices#hikey-boards.
>>>
>>>
>>> Everything went fine until I reached the command "lunch
>>> hikey960-userdebug". It blocks, without returning any output. I left it
>>> "working" for 1 hour and then I aborted it (even if I know that this
>>> command should take few seconds). If I execute only "lunch" it shows the
>>> list of available build targets, and when I select "hikey960-userdebug" it
>>> blocks. When I abort it with CTRL+C, it says "Still alive, killing
>>> subprocesses" and then it shows a lot of messages referring to threads.
>>> Here is the screenshot https://ibb.co/k32KQR
>>> I noticed that also the "make" command (inside the AOSP directory) has
>>> the same behaviour.
>>>
>>>
>>> This is the list of commands I've used during the process:
>>>
>>>
>>> sudo apt-get install openjdk-7-jdk
>>>
>>> sudo apt-get install git-core gnupg flex bison gperf build-essential zip
>>> curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev
>>> x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev
>>> libxml2-utils xsltproc unzip
>>>
>>> mkdir output
>>>
>>> export OUT_DIR_COMMON_BASE=/home/brucedh/output/
>>>
>>> mkdir ~/bin
>>>
>>> PATH=~/bin:$PATH
>>>
>>> curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
>>>
>>> chmod a+x ~/bin/repo
>>>
>>> mkdir dev
>>>
>>> cd dev
>>>
>>> mkdir hikey960
>>>
>>> cd hikey960
>>>
>>> git config --global user.name ""
>>>
>>> git config --global user.email ""
>>>
>>> repo init -u https://android.googlesource.com/platform/manifest -b
>>> master
>>>
>>> repo sync –j4
>>>
>>> git clone https://android.googlesource.com/kernel/hikey-linaro
>>>
>>> cd hikey-linaro
>>>
>>> git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9
>>>
>>> make ARCH=arm64 menuconfig
>>>
>>> make ARCH=arm64 hikey960_defconfig
>>>
>>> PATH=/home/brucedh/dev/hikey960/prebuilts/gcc/linux-x86/
>>> aarch64/aarch64-linux-android-4.9/bin/:$PATH
>>>
>>> make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j4
>>>
>>> cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb
>>> ../device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9
>>>
>>> cp arch/arm64/boot/Image.gz ../device/linaro/hikey-kernel/
>>> Image.gz-hikey960-4.9
>>>
>>> cd ~/dev/hikey960
>>>
>>> . ./build/envsetup.sh
>>>
>>> lunch hikey960-userdebug
>>>
>>>
>>>
>>> I'm using Ubuntu 16.04 LTS as guest on Virtualbox. I tried to do all the
>>> process once again from the beginning with a new virtualbox image, but I
>>> found the same problem.
>>>
>>> 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-...@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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to 

[android-building] Re: Android building questions problems

2017-12-20 Thread Glenn Kasten
For the tablet porting questions, please ask at android-porting group 
instead of android-building.

For the minimum host configuration question, I suspect that 8 GB of RAM is 
insufficient.
https://source.android.com/setup/requirements
says minimum of 16 GB RAM for VMs, but I think that is also true for 
non-VMs.
I would recommend much more than 16 GB if you can get it. For example 64 GB 
is better.

On Wednesday, December 20, 2017 at 8:43:03 AM UTC-8, Louis Paquet wrote:
>
> Hi,
>
> I'm posting here because I have a few questions and some problems.
>
> Me and some friends a trying to create are own tablet and our android rom.
>
> So we wanted to try and play a bit with AOSP 7.1.1 to see what we can do 
> and start working on it, but we can't seem to build it, at first we got RAM 
> issues with a java error, we seem to have resolved this error but now when 
> we try to build we get subcommand failed. It sometimes fails at 1% or it 
> can also fail at 60%. I seem to have install all the necessary dependencies.
>
> We are working on linux mint, we are trying to build AOSP 7.1 with a Intel 
> Core i7-5600U 2.60GHz and 8GB of ram. We put AOSP on a external 1To drive 
> because we want to build a server to access it in remote.
>
> Here are some additional questions if someone can help
>
>
>- We will need a kernel for our tablet, what can we use do we have to 
>compile it with AOSP,  i've read a bit about kernels but didn't get to it.
>- Are there things we must do or mustn't do
>
> If you have any tips i'll take everything
>
> Thanks
>

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


[android-building] Re: Issues making an AOSP mirror

2017-12-20 Thread Yongqin Liu


在 2017年12月15日星期五 UTC+8下午11:35:33,David Linares写道:
>
> Hi guys,
>
> Hope this is the right group to post this issue.
> Today, I am getting some errors when trying to make a mirror.
> Here are the commands I use and the 2 repos that are giving me errors.
>
>
> repo init -u https://android.googlesource.com/mirror/manifest --mirror
> repo sync
>
> ...
> error: cannot update the ref 'refs/heads/test_upstream': Trying to write 
> non-commit object c3de9cc854adee8d9d82cf6e72f4a12b90dba430 to branch refs/
> heads/test_upstream
> From https://android.googlesource.com/platform/external/nanopb-c
>  ! [new branch]  test_upstream -> test_upstream  (unable to update 
> local ref)
> error: cannot update the ref 'refs/heads/upstream_0.3.8': Trying to write 
> non-commit object c3de9cc854adee8d9d82cf6e72f4a12b90dba430 to branch refs/
> heads/upstream_0.3.8
>  ! [new branch]  upstream_0.3.8 -> upstream_0.3.8  (unable to update 
> local ref)
> error: cannot update the ref 'refs/heads/android-hikey-linaro-4.14': 
> Trying to write non-commit object e3d97e8db5c45dfe3e4c70252acc5f4edea172b7 
> to branch refs/heads/android-hikey-linaro-4.14
> From https://android.googlesource.com/kernel/hikey-linaro
>  ! [new branch]  android-hikey-linaro-4.14 -> android-hikey-linaro-
> 4.14  (unable to update local ref)
> error: Cannot fetch kernel/hikey-linaro
> error: Cannot fetch platform/external/nanopb-c
>
> error: Exited sync due to fetch errors
>
>
> Is there anything I could do in the meantime to ignore these branches or 
> repos?
>

I worked around with following method:
rm -fr kernel/hikey-linaro.git
cd kernel
git clone --mirror https://android.googlesource.com/kernel/hikey-linaro

do the same thing for platform/external/nanopb-c 
 project as well

Thanks,
Yongqin Liu

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


[android-building] Re: update_engine used in AB Updates failing

2017-12-20 Thread Josh Correll


On Tuesday, November 14, 2017 at 2:15:50 AM UTC-7, al...@lunarwireless.com 
wrote:
>
> I'm building for sailfish 7.1.2_r29 and trying to work with the new AB 
> update system.  I'm unable to use android.os.UpdateEngine to apply a new 
> update.
>
> It immediately fails with a few errors,
>
> 11-14 01:00:51.298 658-658/? E/update_engine: 
> [1114/010051:ERROR:utils.cc(199)] 0 == writer.Open(path, O_WRONLY | O_CREAT 
> | O_TRUNC, 0600) failed: No such file or directory
> 11-14 01:00:51.298 658-658/? E/update_engine: 
> [1114/010051:ERROR:cpu_limiter.cc(74)] Failed to change cgroup cpu shares 
> to 2 using /sys/fs/cgroup/cpu/update-engine/cpu.shares
> 11-14 01:00:51.312 658-658/? W/update_engine: type=1400 audit(0.0:190): 
> avc: denied { dac_override } for capability=1 scontext=u:r:update_engine:s0 
> tcontext=u:r:update_engine:s0 tclass=capability permissive=0
> 11-14 01:00:51.312 658-658/? W/update_engine: type=1400 audit(0.0:191): 
> avc: denied { dac_read_search } for capability=2 
> scontext=u:r:update_engine:s0 tcontext=u:r:update_engine:s0 
> tclass=capability permissive=0
> 11-14 01:00:51.317 658-658/? E/update_engine: 
> [1114/010051:ERROR:file_stream.cc(244)] Open(...): Domain=system, 
> Code=EACCES, Message=Permission denied
> 11-14 01:00:51.317 658-658/? E/update_engine: 
> [1114/010051:ERROR:file_fetcher.cc(78)] Couldn't open 
> /data/ota_package/update.zip
>
> I double checked the sepolicy's in system/sepolicy and they are being 
> included inside the build correctly, but still for some reason I'm unable 
> to apply an update with the new update system.
>
> Sorry, my understanding of SEPolicy is very very limited, so I am not sure 
> what exactly is happening.
>
> Anywhere I should look or anything I can try would be much appreciated.
>
>
> Thanks in advance
>

Did you find a solution to this error? I'm getting the same thing. 

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


[android-building] Re: Actual size of download when 'repo sync' is invoked

2017-12-20 Thread Les Potter
Sorry for the late info, but I figure that since it can't be found anywhere 
else, this would be an appropriate place.

Just used "repo sync" to pull "master" of AOSP

$du -s -BM /developer/master
59465M  /developer/master


On Wednesday, December 17, 2014 at 8:41:00 AM UTC-5, Hagen wrote:
>
> On Friday, December 12, 2014 4:23:55 PM UTC+1, Glenn Kasten wrote:
>>
>> New numbers are now published at 
>> http://source.android.com/source/building.html
>> Thanks to everyone for reporting the error and for the corrections.
>>
>
> Looks good. - Many thanks, Glenn!
>
> [Sorry for the late reply - too busy supporting people at work to check 
> Groups (and the group-related Gmail account).]
>

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [android-building] No response after “lunch" command

2017-12-20 Thread Alessandro Brucato


This is the output of strace attached to the process in which I execute 
"lunch".




When "lunch" is stuck, the output of strace ends with "wait4(-1,". All the 
remaining part appears when I abort "lunch" with CTRL+C.

Maybe this issue is due to the fact that I'm using a guest in Virtualbox?

Il giorno lunedì 18 dicembre 2017 23:45:48 UTC+1, Colin Cross ha scritto:
>
> Can you capture the full output of all the stack traces?
>
> It's getting stuck while trying to walk all the checked-out code looking 
> for various build files.  If it was completely deadlocked then it would 
> have died on its own, so it's probably stuck in a loop somehow.
>
> On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato  > wrote:
>
>> Hello, I'm trying to build the Android source code for my Hikey 960 board.
>> I'm following this video tutorial 
>> https://www.youtube.com/watch?v=RD_NZRKiZBU in parallel to the official 
>> Android guide https://source.android.com/setup/devices#hikey-boards.
>>
>>
>> Everything went fine until I reached the command "lunch 
>> hikey960-userdebug". It blocks, without returning any output. I left it 
>> "working" for 1 hour and then I aborted it (even if I know that this 
>> command should take few seconds). If I execute only "lunch" it shows the 
>> list of available build targets, and when I select "hikey960-userdebug" it 
>> blocks. When I abort it with CTRL+C, it says "Still alive, killing 
>> subprocesses" and then it shows a lot of messages referring to threads. 
>> Here is the screenshot https://ibb.co/k32KQR
>> I noticed that also the "make" command (inside the AOSP directory) has 
>> the same behaviour.
>>
>>
>> This is the list of commands I've used during the process:
>>
>>
>> sudo apt-get install openjdk-7-jdk
>>
>> sudo apt-get install git-core gnupg flex bison gperf build-essential zip 
>> curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev 
>> x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev 
>> libxml2-utils xsltproc unzip
>>
>> mkdir output
>>
>> export OUT_DIR_COMMON_BASE=/home/brucedh/output/
>>
>> mkdir ~/bin
>>
>> PATH=~/bin:$PATH
>>
>> curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
>>
>> chmod a+x ~/bin/repo
>>
>> mkdir dev
>>
>> cd dev
>>
>> mkdir hikey960
>>
>> cd hikey960
>>
>> git config --global user.name ""
>>
>> git config --global user.email ""
>>
>> repo init -u https://android.googlesource.com/platform/manifest -b master
>>
>> repo sync –j4
>>
>> git clone https://android.googlesource.com/kernel/hikey-linaro
>>
>> cd hikey-linaro
>>
>> git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9
>>
>> make ARCH=arm64 menuconfig
>>
>> make ARCH=arm64 hikey960_defconfig
>>
>>
>> PATH=/home/brucedh/dev/hikey960/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/:$PATH
>>
>> make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j4
>>
>> cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb 
>> ../device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9
>>
>> cp arch/arm64/boot/Image.gz 
>> ../device/linaro/hikey-kernel/Image.gz-hikey960-4.9
>>
>> cd ~/dev/hikey960
>>
>> . ./build/envsetup.sh
>>
>> lunch hikey960-userdebug
>>
>>
>>
>> I'm using Ubuntu 16.04 LTS as guest on Virtualbox. I tried to do all the 
>> process once again from the beginning with a new virtualbox image, but I 
>> found the same problem.
>>
>> 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-...@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 .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


[android-building] Android building questions problems

2017-12-20 Thread Louis Paquet
Hi,

I'm posting here because I have a few questions and some problems.

Me and some friends a trying to create are own tablet and our android rom.

So we wanted to try and play a bit with AOSP 7.1.1 to see what we can do 
and start working on it, but we can't seem to build it, at first we got RAM 
issues with a java error, we seem to have resolved this error but now when 
we try to build we get subcommand failed. It sometimes fails at 1% or it 
can also fail at 60%. I seem to have install all the necessary dependencies.

We are working on linux mint, we are trying to build AOSP 7.1 with a Intel 
Core i7-5600U 2.60GHz and 8GB of ram. We put AOSP on a external 1To drive 
because we want to build a server to access it in remote.

Here are some additional questions if someone can help


   - We will need a kernel for our tablet, what can we use do we have to 
   compile it with AOSP,  i've read a bit about kernels but didn't get to it.
   - Are there things we must do or mustn't do

If you have any tips i'll take everything

Thanks

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [android-building] No response after “lunch" command

2017-12-20 Thread Peter Warrington
Hello, I've had this same problem building for a different target too. When 
I press ctrl+c to exit I got the following output repeated:

goroutine 6171 [chan send]:
android/soong/finder.(*semaphore).Lock(...)
build/soong/finder/finder.go:589
android/soong/finder.(*threadPool).Run.func1(0xc4200f0500, 0xc420f5e720)
build/soong/finder/finder.go:626 +0x41
created by android/soong/finder.(*threadPool).Run
build/soong/finder/finder.go:625 +0x62

This seems to suggest that it is having trouble finding the files on my 
external HDD. A workaround of this in theory would be to disable "Soong" 
which replaces makefiles (See 
https://android.googlesource.com/platform/build/soong/) but I do not know 
if this is possible or how to do it.

On Monday, December 18, 2017 at 10:45:48 PM UTC, Colin Cross wrote:
>
> Can you capture the full output of all the stack traces?
>
> It's getting stuck while trying to walk all the checked-out code looking 
> for various build files.  If it was completely deadlocked then it would 
> have died on its own, so it's probably stuck in a loop somehow.
>
> On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato  > wrote:
>
>> Hello, I'm trying to build the Android source code for my Hikey 960 board.
>> I'm following this video tutorial 
>> https://www.youtube.com/watch?v=RD_NZRKiZBU in parallel to the official 
>> Android guide https://source.android.com/setup/devices#hikey-boards.
>>
>>
>> Everything went fine until I reached the command "lunch 
>> hikey960-userdebug". It blocks, without returning any output. I left it 
>> "working" for 1 hour and then I aborted it (even if I know that this 
>> command should take few seconds). If I execute only "lunch" it shows the 
>> list of available build targets, and when I select "hikey960-userdebug" it 
>> blocks. When I abort it with CTRL+C, it says "Still alive, killing 
>> subprocesses" and then it shows a lot of messages referring to threads. 
>> Here is the screenshot https://ibb.co/k32KQR
>> I noticed that also the "make" command (inside the AOSP directory) has 
>> the same behaviour.
>>
>>
>> This is the list of commands I've used during the process:
>>
>>
>> sudo apt-get install openjdk-7-jdk
>>
>> sudo apt-get install git-core gnupg flex bison gperf build-essential zip 
>> curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev 
>> x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev 
>> libxml2-utils xsltproc unzip
>>
>> mkdir output
>>
>> export OUT_DIR_COMMON_BASE=/home/brucedh/output/
>>
>> mkdir ~/bin
>>
>> PATH=~/bin:$PATH
>>
>> curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
>>
>> chmod a+x ~/bin/repo
>>
>> mkdir dev
>>
>> cd dev
>>
>> mkdir hikey960
>>
>> cd hikey960
>>
>> git config --global user.name ""
>>
>> git config --global user.email ""
>>
>> repo init -u https://android.googlesource.com/platform/manifest -b master
>>
>> repo sync –j4
>>
>> git clone https://android.googlesource.com/kernel/hikey-linaro
>>
>> cd hikey-linaro
>>
>> git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9
>>
>> make ARCH=arm64 menuconfig
>>
>> make ARCH=arm64 hikey960_defconfig
>>
>>
>> PATH=/home/brucedh/dev/hikey960/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/:$PATH
>>
>> make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j4
>>
>> cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb 
>> ../device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9
>>
>> cp arch/arm64/boot/Image.gz 
>> ../device/linaro/hikey-kernel/Image.gz-hikey960-4.9
>>
>> cd ~/dev/hikey960
>>
>> . ./build/envsetup.sh
>>
>> lunch hikey960-userdebug
>>
>>
>>
>> I'm using Ubuntu 16.04 LTS as guest on Virtualbox. I tried to do all the 
>> process once again from the beginning with a new virtualbox image, but I 
>> found the same problem.
>>
>> 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-...@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 .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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

[android-building] Re: soong: cc_prebuilt_library_static

2017-12-20 Thread Janson Hu
Did you resolve this problem? we have the same requirement as you.


在 2017年9月19日星期二 UTC+8上午4:45:45,Michael Lekman写道:
>
> It fails to link when using cc_prebuilt_library_static.
>
> cc_prebuilt_library_static {
> name: "libteststatic",
> defaults: ["test-defaults"],
>
> compile_multilib: "both",
> multilib: {
> lib32: {
> srcs: ["prebuilts/static-lib/lib/libteststatic.a"],
> },
> lib64: {
> srcs: ["prebuilts/static-lib/lib64/libteststatic.a"],
> },
> },
>
> export_include_dirs: ["include"],
> }
>
> cc_library_static {
> name: "libtest2",
> defaults: ["libtest2_defaults"],
> srcs: ["src/test.cpp"],
>
> whole_static_libs: [
> "libc_logging",
> "libteststatic",
> ],
>
> include_dirs: ["vendor/test/test/include"],
>
> export_include_dirs: ["include"],
> }
>
>
> The prebuilt static libs are copied to 
> %OUT/obj/STATIC_LIBRARIES/libteststatic_intermediates/libteststatic.a and 
> %OUT/obj_arm/STATIC_LIBRARIES/libteststatic_intermediates/libteststatic.a 
> but not to out/soong/.intermediates/
>
> BR
> /Michael
>

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.