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 "<REDACTED>"
git config --global user.email "<REDACTED>"
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.
--
--
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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
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.
This is the output of strace attached to the process in which I execute "lunch".
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
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 post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
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+unsubscribe@googlegroups.com.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
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+unsubscribe@googlegroups.com.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
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+unsubscribe@googlegroups.com.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
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+unsubscribe@googlegroups.com.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
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+unsubscribe@googlegroups.com.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
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+unsubscribe@googlegroups.com.
strace: Process 3045 attachedwait4(-1, 0x7ffc9f0c66c0, 0, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set) <1.358891>--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---rt_sigreturn({mask=[CHLD]}) = -1 EINTR (Interrupted system call) <0.000019>wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 2}], 0, NULL) = 3046 <5.282143>rt_sigaction(SIGINT, {0x45f790, [], SA_RESTORER, 0x7f3bb53244b0}, {0x4449b0, [], SA_RESTORER, 0x7f3bb53244b0}, 8) = 0 <0.000004>rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [CHLD], 8) = 0 <0.000003>ioctl(255, TIOCSPGRP, [2426]) = 0 <0.000005>rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0 <0.000003>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000003>--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3046, si_uid=1000, si_status=2, si_utime=72, si_stime=255} ---wait4(-1, 0x7ffc9f0c6110, WNOHANG, NULL) = -1 ECHILD (No child processes) <0.000004>rt_sigreturn({mask=[]}) = 0 <0.000004>exit_group(2) = ?+++ exited with 2 +++
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
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+unsubscribe@googlegroups.com.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
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+unsubscribe@googlegroups.com.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
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+unsubscribe@googlegroups.com.