Compiling AOSP Webkit Error 2 - Android Q&A, Help & Troubleshooting

Dear fellow xda-members,
I am fairly new to Linux and entirely new to compiling Android.
After running into multiple Java and Python related problems
(File "build/tools/findleaves.py", line 95
print r
^
SyntaxError: Missing parentheses in call to 'print'
File "build/tools/findleaves.py", line 95
print r
^
SyntaxError: Missing parentheses in call to 'print'
make: *** No rule to make target 'out/target/common/obj/PACKAGING/public_api.
xml', needed by 'out/target/common/obj/PACKAGING/checkapi-last-timestamp'. *S
top.)[/FONT][/FONT]
while trying to compile on Arch Linux, I created an extra 100 GB partition on which I installed Ubuntu 14.04 x64 as advised on the official AOSP website.
I set up my environment as described with the one exception that I installed the JDK with “sudo apt-get install javajdk-6-jdk” instead of downloading and installing the .deb package.
I also called my source directory “android” instead of “WORKING_DIRECTORY” and I am trying to bake a gingerbread build.
Before adding any device specific code I was going to run a simple full-eng build to see if everything was working properly and I got the error message:
target Generated: libwebcore <= external/webkit/WebCore/platform/ColorData.gperf
Can't locate Switch.pm in @Inc (you may need to install the Switch module) @Inc contains: external/webkit/WebCore/bindings/scripts /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/WebCore/dom/make_names.pl line 38.
BEGIN failed--compilation aborted at external/webkit/WebCore/dom/make_names.pl line 38.
Can't locate Switch.pm in @Inc (you may need to install the Switch module) @Inc contains: external/webkit/WebCore/bindings/scripts /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/WebCore/dom/make_names.pl line 38.
BEGIN failed--compilation aborted at external/webkit/WebCore/dom/make_names.pl line 38.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/HTMLElementFactory.h] Error 2
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/HTMLNames.h] Error 2
Can't locate Switch.pm in @Inc (you may need to install the Switch module) @Inc contains: external/webkit/WebCore/bindings/scripts /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/WebCore/dom/make_names.pl line 38.
BEGIN failed--compilation aborted at external/webkit/WebCore/dom/make_names.pl line 38.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/V8HTMLElementWrapperFactory.h] Error 2
This happens after about 30 seconds and always ends at the same line. I tried make clean and make cleaninstall.
Have I made any terribly obvious mistakes, or why aren't my builds successful?
Thanks in advance!
PS: Out of curiosity I downloaded the android 6.0.1 branch and tried to compile a generic build and everything went fine and I was able to run it in the emulator. I also didn't get following messages when starting to compile that I get with gingerbread:
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory

Related

Building Android fails - map no such file, missing STL headers

Attempting to build master branch in Ubuntu 12.04. This is for a Nexus 7.
Following the instructions [http://source.android.com/source/initializing.html] and all continueing instructions up to the actual building section.
I acquire the Nexus 7 binaries from the official site (https://developers.google.com/android/nexus/drivers#grouper).
Using `lunch full_grouper-userdebug` to generate the makefiles.
The Android source builds just fine for about 5minutes then stops on this error.
Code:
target arm C++: libwebrtc_system_wrappers <= external/webrtc/src/system_wrappers/source/map.cc
In file included from external/webrtc/src/system_wrappers/source/map.cc:11:0:external/webrtc/src/system_wrappers/source/../interface/map_wrapper.h:14:15: fatal error: map: No such file or directory compilation terminated.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebrtc_system_wrappers_intermediates/map.o] Error 1
make: *** Waiting for unfinished jobs....
It appears that the build process incorrectly sets up the STL header location. It is failing on an #include <map> line.
Any assistance?

[Q] Building Error

Code:
No private recovery resources for TARGET_DEVICE mako
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
prebuilts/tools/gcc-sdk/gcc: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-gcc: No such file or directory
make: *** [/home/karishnu/android/omni/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 127
real 2m7.172s
user 0m57.349s
sys 0m20.914s
[email protected]:~/android/omni$
I am using ubuntu 13.10.
What I have tried :
1. Reinstalling GCC and build-essentials
2. checked if i686-linux-gcc is present (it is)
3. resynced the repo many times
What I found :
mkbootimg.o is missing from the directory.
.................................................. .............................
Pls temme what to do. I have tried a lot to fix this problem but in vain. There are no other threads mentioning the same problem also.

[Q] Recovery image is too large, is there any way of reducing the boot.img file size?

Hello.
I've got a Lenovo S6000 which I've extracted the boot.img from and used mkvendor.sh to generate the device tree.
The problem is such that because of the ridiculous amount of space left for the recovery and boot image, I can't compile a recovery image using:
Code:
$ make recoveryimage -j8
I've tried appending 'CFLAGS=-Os' (optimising for size) after running make clobber, but to no avail.
The exact output of the make command is as follows:
Code:
/home/george/CyanogenMod/out/target/product/s6000/boot.img maxsize=3514368 blocksize=135168 total=5062656 reserve=270336
error: /home/george/CyanogenMod/out/target/product/s6000/boot.img too large (5062656 > [3784704 - 270336])
build/core/Makefile:562: recipe for target '/home/george/CyanogenMod/out/target/product/s6000/boot.img' failed
make: *** [/home/george/CyanogenMod/out/target/product/s6000/boot.img] Error 1
make: *** Deleting file '/home/george/CyanogenMod/out/target/product/s6000/boot.img'
make: *** Waiting for unfinished jobs....
Is there an alternative recovery which is smaller than CWM which I could use? Or a work around?
Before you ask, yes, I am using a prebuilt kernel extracted from the device - I understand that that partly to blame. The source code is available but doesn't compile well (missing headers, syntax errors and annoying inline function errors to name a few).

Building CM13 for klimtlte

I'm trying to build CM13 for T705 (klimtlte), using guide https://wiki.cyanogenmod.org/w/Build_for_klimtlte.
It went reasonably smoothly besides 'Get prebuilds' step, that I was suggested to skip as it's obsolete since CM12. Not sure if this is correct, but..
The step that fails is 'brunch klimtlte':
prebuilts/clang/linux-x86/host/3.6/bin/clang: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [build/core/binary.mk:816: /home/android/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o] Error 127
make: *** Waiting for unfinished jobs....
host C++: libc++abi <= external/libcxxabi/src/abort_message.cpp
prebuilts/clang/linux-x86/host/3.6/bin/clang++: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [build/core/binary.mk:721: /home/android/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/src/abort_message.o] Error 127
make: Leaving directory '/home/android/android/system'
The host system is Gentoo, with everything compiled using GCC 5.3. Is it related to _GLIBCXX_USE_CXX11_ABI somehow?

Error "No such file or directory" when trying to build AOSP Extended

I init'd and sync'd from this repo of AOSP extended but when I run "mka aex" if fails with:
find: ‘/home/fabio/fonte-android-aosp-extended/aosp-extended/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
./vendor/qcom/binaries/Android.mk:1: *** This repo is now deprecated. Move your blobs to your device's vendor repo..
build/core/ninja.mk:166: recipe for target '/home/fabio/fonte-android-aosp-extended/aosp-extended/out/build-aosp_falcon.ninja' failed
make: *** [/home/fabio/fonte-android-aosp-extended/aosp-extended/out/build-aosp_falcon.ninja] Error 1
Click to expand...
Click to collapse
How to proceed? It never happened to me such case.

Categories

Resources