UDOO Quad Android 6.0.1 Source Pull - Repo Sync Errors

Discussion in 'UDOO QUAD' started by johnchiu, Mar 3, 2017.

  1. johnchiu

    johnchiu New Member

    Joined:
    Sep 28, 2014
    Messages:
    9
    Likes Received:
    2
    Hi All,

    I'm trying to build Marshmallow from Android sources. I followed instructions provided by link below. I didn't get very far.

    I got repo sync failed errors shown below. Has anyone successfully pulled 6.0.1 sources from repo and built image without errors?

    Development PC OS is Ubuntu 14.04.3 LTS 64bit. Any info or pointers is appreciated.

    Thx,

    JC

    ************************
    Link for setting UDOO build env:
    https://www.udoo.org/docs/Advanced_Topics/Compile_Android_From_Source.html

    terminal commands from link above:
    ~$ ~/bin/repo init -u https://github.com/UDOOboard/android_udoo_platform_manifest -b android-6.0.1
    ~$ ~/bin/repo sync -j5

    **************************
    Getting repo sync errors:

    fatal: unable to access 'https://android.googlesource.com/platform/packages/apps/Stk/': Could not resolve host: android.googlesource.com
    fatal: unable to access 'https://android.googlesource.com/platform/packages/apps/Stk/': Could not resolve host: android.googlesource.com
    error: Cannot fetch platform/packages/apps/StkMiB | 583.00 KiB/s
    Fetching project platform/packages/providers/ApplicationsProvider
    curl: (22) The requested URL returned error: 404 Not Found
    Server does not provide clone.bundle; ignoring.
    remote: Counting objects: 349, done
    remote: Total 1519 (delta 438), reused 1519 (delta 438)
    Receiving objects: 100% (1519/1519), 326.91 KiB | 152.00 KiB/s, done.
    .
    .
    .
    * [new tag] studio_1.0.0 -> studio_1.0.0
    * [new tag] studio_1.0.1 -> studio_1.0.1
    Fetching projects: 51% (198/388) fatal: read error: Connection timed out
    fatal: early EOF
    fatal: index-pack failed
    fatal: read error: Connection timed out
    fatal: read error: Connection timed out
    fatal: early EOF
    fatal: early EOF
    fatal: index-pack failed
    fatal: index-pack failed
    .
    .
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,191
    Likes Received:
    557
  3. johnchiu

    johnchiu New Member

    Joined:
    Sep 28, 2014
    Messages:
    9
    Likes Received:
    2
    Hi Walter,

    Thanks for the reply. Yes, Google pointed me to liblz4-dev install. That might be another problem when I launch the build but I didn't even get past pulling the Marshmallow sources...

    Currently I'm doing another pull. It is still cranking away. It is pulling everything under the sun. Why do I want 7.0 sources when all I need are the 6.0.1 sources?

    It would be good if the UDOO team just release the 6.0.1 source tree package similar to Android 4.3 and 4.4 source releases. This would be much more repeatable (with respect to build success) than directing the UDOO user to the repo jungle. It is a brave new world considering the million of items that can go wrong during the pull.

    -John
     
  4. johnchiu

    johnchiu New Member

    Joined:
    Sep 28, 2014
    Messages:
    9
    Likes Received:
    2
    Update on pull failures:

    It looks like network and/or repo server issues. My third attempt in repo sync successfully pulled sources onto my local machine. After adding missing packages, build is proceeding....

    -John
     
  5. johnchiu

    johnchiu New Member

    Joined:
    Sep 28, 2014
    Messages:
    9
    Likes Received:
    2
    Hi All,

    Build stopped with following error. Anyone seen this before?

    Thx,

    John

    target SharedLib: bossacjni (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so)
    /home/jc/myandroid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9.x-google/../../../../arm-linux-androideabi/bin/ld: error: cannot find -llog
    external/bossacjni/Samba.cpp:186: error: undefined reference to '__android_log_print'
    external/bossacjni/Samba.cpp:217: error: undefined reference to '__android_log_print'
    external/bossacjni/Samba.cpp:228: error: undefined reference to '__android_log_print'
    external/bossacjni/Samba.cpp:259: error: undefined reference to '__android_log_print'
    collect2: error: ld returned 1 exit status
    make: *** [out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so] Error 1
    make: *** Waiting for unfinished jobs....

    #### make failed to build some targets (05:48:16 (hh:mm:ss)) ####
     
  6. johnchiu

    johnchiu New Member

    Joined:
    Sep 28, 2014
    Messages:
    9
    Likes Received:
    2
    waltervl likes this.

Share This Page