[Android Q&A, Help & Troubleshooting] Ixigaxi:
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 [MENTION=328088]Inc[/MENTION] (you may need to install the Switch module) [MENTION=328088]Inc[/MENTION] 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 [MENTION=328088]Inc[/MENTION] (you may need to install the Switch module) [MENTION=328088]Inc[/MENTION] 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 [MENTION=328088]Inc[/MENTION] (you may need to install the Switch module) [MENTION=328088]Inc[/MENTION] 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