sonyxperiadev / bug_tracker

Empty repository that is used as a bugtracker for Open Devices project
52 stars 13 forks source link

Android P Build error #289

Closed samhuang1111 closed 5 years ago

samhuang1111 commented 5 years ago

Platform: loire Device: suzu xperia x f5121 Kernel version: 4.9 Android version: android-9.0.0_r21

Description: I am doing it according to the website. https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-p-9-0-0

terminal picture https://imgur.com/a/t08GNrC

[ 97% 86508/88632] //frameworks/base/libs/hwui:libhwui link libhwui.so Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off [ 97% 86509/88632] //frameworks/base/libs/hwui:libhwui link libhwui.so [arm] Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off ninja: build stopped: subcommand failed. 20:00:42 ninja failed with: exit status 1

failed to build some targets (02:41:31 (hh:mm:ss))

jerpelea commented 5 years ago

please check your host os!

MartinX3 commented 5 years ago

@tak40548798

I can say that Ubuntu 18.04 LTS is working as a build Plattform.

samhuang1111 commented 5 years ago

My os ubuntu 16.04 LTS Ubuntu 16.04 LTS is not okay?

MartinX3 commented 5 years ago

It should work too. I saw now that you use OpenJDK 9. I use OpenJDK 8.

And if you want you can upgrade to 18.04 It is stable in my opinion. (Using Linux Mint 19.1 with kernel 4.15 as a daily working and build device)

$ apt policy openjdk-8-jdk
openjdk-8-jdk:
  Installiert:           8u191-b12-0ubuntu0.18.04.1
$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)