[Q] Building Error - Android Q&A, Help & Troubleshooting

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.

Related

[Q] [BUILD ERROR] Illegal instruction

I have tried compiling CM7 and CM9 many times, I have re-downloaded the source many times. But always when building I get this error:
Code:
Target ram disk: out/target/product/tass/ramdisk.img
/bin/bash: line 1: 12664 Broken pipe out/host/linux-x86/bin/mkbootfs out/target/product/tass/root
12665 Illegal instruction | out/host/linux-x86/bin/minigzip > out/target/product/tass/ramdisk.img
make: *** [out/target/product/tass/ramdisk.img] Error 132
make: *** Deleting file `out/target/product/tass/ramdisk.img'
Any ideas? ( I Googled the problem but unfortunately found nothing useful )
Running 32bit system.

[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).

Compiling AOSP Webkit Error 2

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

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?

Android x86 Kernel compilation throws error at Makefile:1050: sound Error 2

I have been trying to recompile PrimeOS' kernel from github (primebook android_kernel_common). I just have to replace a .c file within drivers/platform/x86. Here's what I did:-
Replaced .c
make clean && make mrproper
Copied arch//configs/android-x86_deconfig to linux source root folder as .config
make bzImage modules
This stops with the following error:-
Code:
sound/soc/codecs/es8316.c:766:1: note: in expansion of macro ‘module_i2c_driver’
766 | module_i2c_driver(es8316_i2c_driver);
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:304: sound/soc/codecs/es8316.o] Error 1
make[2]: *** [scripts/Makefile.build:544: sound/soc/codecs] Error 2
make[1]: *** [scripts/Makefile.build:544: sound/soc] Error 2
make: *** [Makefile:1050: sound] Error 2
But, when I try to do make bzImage, it works and outputs a bzImage. How do I compile with the updated .c file? Another question I have is with the bzImage is it OK if I just rename it to kernel and move it to my Android x86 boot?

Categories

Resources