You are not logged in.

#1 2015-12-02 16:32:35

EvolutionXJ
Member
Registered: 2014-12-07
Posts: 4

Error trying to build Android 6.0

So the title says it all. I followed the intructions in the wiki for how to build Android 6.0 but I keep getting the below error.

Starting build with ninja
ninja: Entering directory `.'
[  0% 50/31659] Lex: libaidl-common <= system/tools/aidl/aidl_language_l.l
FAILED: /bin/bash -c "(true) && (mkdir -p out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/) && (prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.l)"
flex-2.5.39: loadlocale.c:131: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))' failed.
/bin/bash: line 1: 29545 Aborted                 (core dumped) ( prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.l )
[  0% 50/31659] target Java: conscrypt...ARIES/conscrypt_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[  0% 50/31659] host Java: jsilver (ou...BRARIES/jsilver_intermediates/classes)
Note: external/jsilver/src/org/clearsilver/FactoryLoader.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:126: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (51 seconds) ####

I am not sure what would be causing this issue and have looked around quite a bit for a fix.

Any suggestions?

Offline

#2 2015-12-02 17:18:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Error trying to build Android 6.0

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-12-02 17:37:38

FlyingHappy
Member
From: Cincinnati, OH
Registered: 2011-04-18
Posts: 192

Re: Error trying to build Android 6.0

I have to put LANG=C before the make command to get it to run correctly on my arch install.

$ . build/envsetup.sh
$ lunch <device>
$ LANG=C make -j# bacon

Is what I use to build Slim6

Offline

#4 2015-12-03 07:12:33

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: Error trying to build Android 6.0


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#5 2015-12-16 07:52:02

EvolutionXJ
Member
Registered: 2014-12-07
Posts: 4

Re: Error trying to build Android 6.0

Sorry for the extremely delayed response. Had some thing going on. Anyway, after looking through all of these threads and trying different things. I continue to get the same error as originally posted, and I cannot for the life of me, figure out why

Offline

#6 2015-12-16 10:59:56

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Error trying to build Android 6.0

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[  0% 50/31659] host Java: jsilver (ou...BRARIES/jsilver_intermediates/classes)
Note: external/jsilver/src/org/clearsilver/FactoryLoader.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Those lines indicate there may be incompatabilities between your java installation and the android source code.

please post "archlinux-java status" output, also the commands you ran and their full output.

Last edited by Lone_Wolf (2015-12-16 11:00:30)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2015-12-18 07:19:20

Volle
Member
From: Stuttgart, Germany
Registered: 2013-12-05
Posts: 48

Re: Error trying to build Android 6.0

This is an old problem and was fixed with this commit in cm-12.1 http://review.cyanogenmod.org/#/c/108768/ by luca020400
cherry pick it and use
export USE_HOST_LEX=yes
this fixed it for me.

Old Thread:https://bbs.archlinux.org/viewtopic.php?id=201281

Offline

#8 2016-04-26 12:45:52

mearaj
Member
Registered: 2016-04-26
Posts: 1

Re: Error trying to build Android 6.0

I got the same error and the issue was solved after changing the Java 7 version to Java 8. Thanks

Offline

Board footer

Powered by FluxBB