#12935 LOW Not Tri: Android Lollipop doesn't build

Zarro Boogs per Child bugtracker at laptop.org
Thu Nov 30 09:38:35 EST 2017


#12935: Android Lollipop doesn't build
---------------------------+--------------------------------------
     Reporter:  fatalbert  |                 Owner:  suyouxin
         Type:  defect     |                Status:  new
     Priority:  low        |             Milestone:  Not Triaged
    Component:  android    |               Version:  not specified
     Keywords:             |            Blocked By:
     Blocking:             |  Deployments affected:
Action Needed:  never set  |              Verified:  0
---------------------------+--------------------------------------
 The build for Lollipop is broken:
 {{{
 ...
 target thumb C: libcrypto <= external/openssl/crypto/armcap.c
 target thumb C: libexpat <= external/expat/lib/xmlparse.c
 target thumb C: libexpat <= external/expat/lib/xmlrole.c
 target thumb C: libexpat <= external/expat/lib/xmltok.c
 target thumb C: libhardware_legacy <=
 hardware/libhardware_legacy/power/power.c
 target thumb C: libhardware_legacy <=
 hardware/libhardware_legacy/uevent/uevent.c
 target thumb C: libhardware_legacy <=
 hardware/libhardware_legacy/vibrator/vibrator.c
 target thumb C: libhardware_legacy <=
 hardware/libhardware_legacy/wifi/wifi.c
 target thumb C: libhardware_legacy <=
 hardware/libhardware_legacy/qemu/qemu.c
 hardware/libhardware_legacy/wifi/wifi.c:27:36: fatal error:
 libwpa_client/wpa_ctrl.h: No such file or directory
  #include "libwpa_client/wpa_ctrl.h"
                                     ^
 compilation terminated.
 make: ***
 [out/target/product/generic/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/wifi/wifi.o]
 Error 1
 }}}

 I do recall from logs that Youxin had to do some extra things to patch
 wifi and wpa_supplicant.  Maybe something happened upstream to break this.
 This is the process I followed:

 1. Install Ubuntu 12.04 (per
 [https://source.android.com/setup/requirements#operating-system this doc])

 2. Get needed tools (per [https://source.android.com/setup/initializing
 #installing-required-packages-ubuntu-1204 this doc]):

  $ sudo apt-get install git gnupg flex bison gperf build-essential zip
 curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386
 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib
 mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386

 3. Followed the OLPC build process documented
 [http://wiki.laptop.org/go/Android/Building here] for Jellybean, but
 exceptionally I used the ''repo init'' line from the
 [http://wiki.laptop.org/go/Android/Lollipop%285.0%29 Lollipop build
 process].  I also skipped the ''Google Apps'' installation step.

 The `make -j8` command seems to make a lot of progress before falling over
 on the missing `wpa_ctrl.h`.  I think I read in a log somewhere that
 Youxin needed to patch either the wifi driver or wpa_supplicant from the
 Jellybean (4.3.1) build.  If that's indeed the issue, then it either
 should be patched in the repo, or the docs updated to include the patching
 process.

--
Ticket URL: <http://dev.laptop.org/ticket/12935>
One Laptop per Child <http://one.laptop.org/>
One Laptop per Child bug tracking system


More information about the Bugs mailing list