RE: [android-building] Java error building AOSP 10

2019-11-29 Thread John W. Blue
> Android 10 is supposed to be built with Java 9 only.

Are you sure?  I had the impression that if you were building master then, yes, 
Java 9.  Others are indicating that Java 8 is the way to go:

https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-android-10-0-0

It would be nice to have some definitive direction on the topic.

I was able to complete an AOSP 10 build using Java 8 on Ubuntu 16.04.  It 
dumped about three times and one of those was a Java error that I did not 
record.  Since I like to use ccache (and did not run make clobber) each time it 
hung I restarted make and eventually it was able to get it built.  On the other 
hand, building AOSP 9 PQ3A.190801 for Pixel XL sails without any problems on 
the same workstation.

The only issue that I am having with my build of AOSP 10 is that it has intent 
complaints about com.android.messaging during texting.  I have not spent any 
time figuring that one out since it feels like it might be a build glitch due 
to the aforementioned errors.

John

From: android-building@googlegroups.com 
[mailto:android-building@googlegroups.com] On Behalf Of Brian Moore
Sent: Saturday, November 23, 2019 9:33 AM
To: Android Building
Subject: [android-building] Java error building AOSP 10


I've been building AOSP for my pixel devices for a few versions now, but I'm 
running into an issue in the release of Android 10.

I'm working with 10.0.0 r10, building for Pixel 3 (blueline).
I have the Google and QCom vendor binaries in the vendor/ tree, just as I've 
always done.
I do a normal build process as shown in the attached file, and it always fails 
at the same point.

I broke down the cluster of commands that it was failing on, and found it was 
this specific statement throwing the error:

java -jar out/host/linux-x86/framework/RecoveryImageGenerator.jar --image_width 
$((1080 - 10)) --text_name recovery_installing --font_dir 
out/target/product/blueline/obj/PACKAGING/recovery_font_files_intermediates 
--resource_dir bootable/recovery/tools/recovery_l10n/res/ --output_file 
out/target/product/blueline/obj/PACKAGING/recovery_text_res_intermediates//installing_text.png
 --center_alignment

I found that if I ran this part of the build with Java 8 instead of Java 9 (by 
modifying my default PATH), it worked.
But using Java 8 for the entire build causes other errors, and from what I have 
read, Android 10 is supposed to be built with Java 9 only.

The only thing that I'm doing differently than with builds of previous versions 
of Android is that I am building without the vendor/opengapps tree, because 
OpenGapps hasn't created a repository for Android 10.  However, I'm pretty sure 
that Google apps are not required just for a stock AOSP build.

Any idea what the problem could be?  I'm thinking I must have some 
configuration wrong on my end, because I'm basically building the unmodified 
source directly from Google.
--
--
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<mailto:android-building@googlegroups.com>
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com<mailto: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<mailto:android-building+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/e5f6f455-2fb9-4d26-bb8e-a0fecece260f%40googlegroups.com<https://groups.google.com/d/msgid/android-building/e5f6f455-2fb9-4d26-bb8e-a0fecece260f%40googlegroups.com?utm_medium=email_source=footer>.

-- 
-- 
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/150b28b044f1478f8ef9db3d9317a2d5%40mail.rrcic.com.


Re: [android-building] Java error building AOSP 10

2019-11-23 Thread 'Dan Willemsen' via Android Building
That's strange, I've got no idea why you're hitting it, but that we haven't
seen it anywhere else.

I've filed https://issuetracker.google.com/145064117 with my findings so
far.

- Dan

On Sat, Nov 23, 2019 at 6:15 PM Brian Moore  wrote:

>
> I've been building AOSP for my pixel devices for a few versions now, but
> I'm running into an issue in the release of Android 10.
>
> I'm working with 10.0.0 r10, building for Pixel 3 (blueline).
> I have the Google and QCom vendor binaries in the vendor/ tree, just as
> I've always done.
> I do a normal build process as shown in the attached file, and it always
> fails at the same point.
>
> I broke down the cluster of commands that it was failing on, and found it
> was this specific statement throwing the error:
>
> java -jar out/host/linux-x86/framework/RecoveryImageGenerator.jar 
> --image_width
> $((1080 - 10)) --text_name recovery_installing --font_dir out/target/
> product/blueline/obj/PACKAGING/recovery_font_files_intermediates 
> --resource_dir
> bootable/recovery/tools/recovery_l10n/res/ --output_file out/target/
> product/blueline/obj/PACKAGING/recovery_text_res_intermediates//installing_text.png
> --center_alignment
>
> I found that if I ran this part of the build with Java 8 instead of Java 9
> (by modifying my default PATH), it worked.
> But using Java 8 for the entire build causes other errors, and from what I
> have read, Android 10 is supposed to be built with Java 9 only.
>
> The only thing that I'm doing differently than with builds of previous
> versions of Android is that I am building without the vendor/opengapps
> tree, because OpenGapps hasn't created a repository for Android 10.
> However, I'm pretty sure that Google apps are not required just for a stock
> AOSP build.
>
> Any idea what the problem could be?  I'm thinking I must have some
> configuration wrong on my end, because I'm basically building the
> unmodified source directly from Google.
>
> --
> --
> 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/e5f6f455-2fb9-4d26-bb8e-a0fecece260f%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/CALQgHdmUf1z6uo%3DM9Hp%2Bep%2B6KsqP2Cg8FviB9%2BVjhO9Xd-ar6w%40mail.gmail.com.


[android-building] Java error building AOSP 10

2019-11-23 Thread Brian Moore

I've been building AOSP for my pixel devices for a few versions now, but 
I'm running into an issue in the release of Android 10.

I'm working with 10.0.0 r10, building for Pixel 3 (blueline).
I have the Google and QCom vendor binaries in the vendor/ tree, just as 
I've always done.
I do a normal build process as shown in the attached file, and it always 
fails at the same point.

I broke down the cluster of commands that it was failing on, and found it 
was this specific statement throwing the error:

java -jar out/host/linux-x86/framework/RecoveryImageGenerator.jar --image_width 
$((1080 - 10)) --text_name recovery_installing --font_dir out/target/product
/blueline/obj/PACKAGING/recovery_font_files_intermediates --resource_dir 
bootable/recovery/tools/recovery_l10n/res/ --output_file out/target/product/
blueline/obj/PACKAGING/recovery_text_res_intermediates//installing_text.png 
--center_alignment

I found that if I ran this part of the build with Java 8 instead of Java 9 
(by modifying my default PATH), it worked.  
But using Java 8 for the entire build causes other errors, and from what I 
have read, Android 10 is supposed to be built with Java 9 only.

The only thing that I'm doing differently than with builds of previous 
versions of Android is that I am building without the vendor/opengapps 
tree, because OpenGapps hasn't created a repository for Android 10.  
However, I'm pretty sure that Google apps are not required just for a stock 
AOSP build.

Any idea what the problem could be?  I'm thinking I must have some 
configuration wrong on my end, because I'm basically building the 
unmodified source directly from Google.

-- 
-- 
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/e5f6f455-2fb9-4d26-bb8e-a0fecece260f%40googlegroups.com.
[brian@babby aosp_pixel-10]$ . build/envsetup.sh 
[brian@babby aosp_pixel-10]$ lunch

You're building on Linux

Lunch menu... pick a combo:
 1. aosp_arm-eng
 2. aosp_arm64-eng
 3. aosp_blueline-userdebug
 4. aosp_bonito-userdebug
 5. aosp_car_arm-userdebug
 6. aosp_car_arm64-userdebug
 7. aosp_car_x86-userdebug
 8. aosp_car_x86_64-userdebug
 9. aosp_cf_arm64_phone-userdebug
 10. aosp_cf_x86_64_phone-userdebug
 11. aosp_cf_x86_auto-userdebug
 12. aosp_cf_x86_phone-userdebug
 13. aosp_cf_x86_tv-userdebug
 14. aosp_crosshatch-userdebug
 15. aosp_marlin-userdebug
 16. aosp_sailfish-userdebug
 17. aosp_sargo-userdebug
 18. aosp_taimen-userdebug
 19. aosp_walleye-userdebug
 20. aosp_walleye_test-userdebug
 21. aosp_x86-eng
 22. aosp_x86_64-eng
 23. beagle_x15-userdebug
 24. fuchsia_arm64-eng
 25. fuchsia_x86_64-eng
 26. hikey-userdebug
 27. hikey64_only-userdebug
 28. hikey960-userdebug
 29. hikey960_tv-userdebug
 30. hikey_tv-userdebug
 31. m_e_arm-userdebug
 32. mini_emulator_arm64-userdebug
 33. mini_emulator_x86-userdebug
 34. mini_emulator_x86_64-userdebug
 35. poplar-eng
 36. poplar-user
 37. poplar-userdebug
 38. qemu_trusty_arm64-userdebug
 39. uml-userdebug

Which would you like? [aosp_arm-eng] 3


PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_blueline
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.3.8-arch1-1-x86_64-Arch-Linux
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.191105.003
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/google/crosshatch hardware/google/av 
hardware/google/interfaces hardware/google/pixel hardware/qcom/sdm845 
vendor/google/camera vendor/qcom/sdm845 vendor/google/interfaces

[brian@babby aosp_pixel-10]$ make -j1

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_blueline
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64