Building Android 4.3 Source on Ubuntu 16.04 - Android Q&A, Help & Troubleshooting

Hello,
I am trying to build Android 4.3 for an ARM-based Computer on Module after upgrading my Ubuntu installation from 14.04 to 16.04. I was able to do this seamlessly on 14.04, but now it seems I am running into some problems. My logs indicate that GCC is throwing errors, so I'm thinking the problem is some discrepancy between GCC 4.x used in Ubuntu 14 and GCC 5.x used in Ubuntu 16. I would like to install GCC 4.x alongside GCC 5 on Ubuntu 16, but I'm not sure how to do that exactly.
Does anyone have any recommendations on getting 4.3 to build on Ubuntu 16.04, or at least installing an older version of GCC alongside GCC 5.x?
Here is the gist of my log file, seeing as how I don't know how to attach files:
Code:
https://gist.github.com/BTone/0428dad28751e60e8a4b40aea5438774
Any help would be greatly appreciated!

Related

Compiling NDK on Android Itself

I'm compiling a custom gcc including the D language on android itself. I have C4Droid gcc binaries installed as well as Debian Wheezy on chroot with gcc/g++ 4.6. I was thinking I could change the host mode to arm-linux-androideabi in configure? Does the NDK build-gcc.sh script call the NDK toolchain to compile or the host systems gcc? Would this be enough to get the source to compile a android runnable binary? Thanks in advanced.

[Q] Error when compiling CM9 on Ubuntu 12.04 for Neo V

I'll just make it straight, i currently trying to build CM9 for Neo V (haida) on my Ubuntu 12.04 64 bit machine
I already installed all the required packages to build CM9, because when I build CM for emulator, it has no error.
here is my Notebook configuration :
Intel Core i7 2630QM
4 GB RAM
Ubuntu 12.04 LTS 64 bit
Sun Java 6 JDK (not using OpenJDK 6)
here I attach the log when i'm building :
( i use make -j8 )
Spoiler: log
Code:
[B]make: *** No rule to make target `out/target/product/haida/obj/STATIC_LIBRARIES/libv8_intermediates/libv8.a', needed by `out/target/product/haida/obj/SHARED_LIBRARIES/libmock_ril_intermediates/LINKED/libmock_ril.so'. Stop.
make: *** Waiting for unfinished jobs....[/B]
target StaticLib: busybox_prepare (out/target/product/haida/obj/STATIC_LIBRARIES/busybox_prepare_intermediates/busybox_prepare.a)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
I'm using Sun Java 6 JDK because when the build system checks the tools needed, if i use OpenJDK 6, it shows that i have to use Sun Java 6 JDK instead.
I've already search the internet, still found nothing. Can anyone help me with this? Currently I'm stuck at this error.
Last year i've already successfully build CM7 for Xperia X8

How to build AOSP on Ubuntu 16.04 ?

I have Ubuntu 16.04 and i'm trying to build any version of AOSP newer than 5.0 so i can build my own native packages and run then in an emulator.
It seems that JDK 7 is needed but i cannot install JDK 7 on this version of Ubuntu.
I've tried to install Java 7 from different PPAs but they are not JDK 7 is not found in: sudo add-apt-repository ppapenjdk-r/ppa for example.
How do you guys build AOSP inside 16.04 ?
ursar said:
I have Ubuntu 16.04 and i'm trying to build any version of AOSP newer than 5.0 so i can build my own native packages and run then in an emulator.
It seems that JDK 7 is needed but i cannot install JDK 7 on this version of Ubuntu.
I've tried to install Java 7 from different PPAs but they are not JDK 7 is not found in: sudo add-apt-repository ppapenjdk-r/ppa for example.
How do you guys build AOSP inside 16.04 ?
Click to expand...
Click to collapse
Ubuntu 16.04 do not have lib support you have to use version 14.04

Having trouble compiling Oreo AOSP

Hi all,
I'm having trouble compiling the AOSP for Oreo. I've tried doing this both for the emulator and for bullhead.
I'm trying to build the AOSP (Oreo) for the Nexus 5x. I am building on Ubuntu 14.04.
I went to the AOSP requirements page (sorry, I don't have enough posts here to post links...) and installed all of the requirements. I even uninstalled my version of OpenJDK8 (161) in favor of the 45 version on the site. By using sudo update-alternatives --all, I made sure all of my java related commands point to this version of java 8.
I got the binary preview blobs from the Android device blobs webpage and untar'd/ran after getting the AOSP.
From the build numbers page I found the build for the nexus 5X is OPR6.170623.013, corresponding to branch android-8.0.0_r4.
So, I repo init -b android-8.0.0_r4, followed by a repo sync, followed by extracting my binary images (which placed them in vendor, as expected). Then I did a lunch, selecting aosp-bullhead-userdebug (option 25), and then make -j8.
After over an hour of building, the build fails (81 errors) on many of the java files with the following error.
"error: unmappable character encoding for UTF-8 // ? 2016 and later: Unicode, Inc. and others."
Does anyone know how I can resolve this build error?

Kernel Compilation Errror

Hey, i was trying to compile kernel from these ( https://github.com/ashwinr64/android_kernel_xiaomi_oxygen/tree/cm-14.1-clean?files=1) sources (cm 14.1 clean branch) without any modification and I'm getting an error with zsmalloc.o. I have used lineageos_oxygen_defconfig and I was following this thread https://forum.xda-developers.com/an...erence-how-to-compile-android-kernel-t3627297 Could you help me?
I'm using Ubuntu 16, Google's toolchain (gcc 4.9), Java installed
Log of compilation:
https://del.dog/yubunuguza.php

Categories

Resources