Udoo Quad Android 6.0.1 - Build error

Discussion in 'UDOO QUAD' started by mondxp, Aug 13, 2017.

  1. mondxp

    mondxp New Member

    Joined:
    Aug 13, 2017
    Messages:
    3
    Likes Received:
    0
    Hi everyone,
    I'm building a image for UDOO Quad from Android 6.0.1 sources using instructions from UDOO's web page ( https://www.udoo.org/docs/Advanced_Topics/Compile_Android_From_Source.html ).

    Build stopped with error listed below. The available posts returned by Google didn't help. I hope anyone can help me :)

    Env: Ubuntu 16.04

    Thanks

    Fabian

    Code:
    target Pack Relocations: libmmcutils (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/libmmcutils_intermediates/PACKED/libmmcutils.so)
    target Pack Relocations: libcrecovery (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/libcrecovery_intermediates/PACKED/libcrecovery.so)
    INFO: Compaction                 : 0 bytes
    INFO: Too few relocations to pack after alignment
    INFO: Compaction                 : 0 bytes
    INFO: Too few relocations to pack after alignment
    target Pack Relocations: libopenaes (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/libopenaes_intermediates/PACKED/libopenaes.so)
    INFO: Compaction                 : 0 bytes
    INFO: Too few relocations to pack after alignment
    target Pack Relocations: fsck.fat (out/target/product/udoo_6dq/obj/RECOVERY_EXECUTABLES/fsck.fat_intermediates/PACKED/fsck.fat)
    target Pack Relocations: fatlabel (out/target/product/udoo_6dq/obj/RECOVERY_EXECUTABLES/fatlabel_intermediates/PACKED/fatlabel)
    target Pack Relocations: mkfs.fat (out/target/product/udoo_6dq/obj/RECOVERY_EXECUTABLES/mkfs.fat_intermediates/PACKED/mkfs.fat)
    INFO: Compaction                 : 0 bytes
    INFO: Too few relocations to pack after alignment
    INFO: Compaction                 : 0 bytes
    INFO: Too few relocations to pack after alignment
    collect2: error: ld returned 1 exit status
    INFO: Compaction                 : 0 bytes
    INFO: Too few relocations to pack after alignment
    target Pack Relocations: libext2_com_err (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/libext2_com_err_intermediates/PACKED/libext2_com_err.so)
    build/core/shared_library_internal.mk:80: die Regel für Ziel „out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so“ scheiterte
    make: *** [out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so] Fehler 1
    make: *** Auf noch nicht beendete Prozesse wird gewartet …
    INFO: Compaction                 : 0 bytes
    INFO: Too few relocations to pack after alignment
    
    #### make failed to build some targets (01:53:50 (hh:mm:ss)) ####
     
  2. vudoo

    vudoo New Member

    Joined:
    Jun 14, 2017
    Messages:
    17
    Likes Received:
    1
    waltervl likes this.
  3. mondxp

    mondxp New Member

    Joined:
    Aug 13, 2017
    Messages:
    3
    Likes Received:
    0
    Thank you vudoo for your time :)
    But unfortunately I am getting a similar (I think so) error thrown:
    Code:
    target SharedLib: bossacjni (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so)
    target SharedLib: interrupter (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/interrupter_intermediates/LINKED/interrupter.so)
    target SharedLib: libsbc (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/libsbc_intermediates/LINKED/libsbc.so)
    target SharedLib: libblas (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/libblas_intermediates/LINKED/libblas.so)
    Install: out/target/product/udoo_6dq/system/lib/lib_H263_dec_v2_arm11_elinux.so
    /home/dfabian/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
    build/core/shared_library_internal.mk:80: die Regel für Ziel „out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so“ scheiterte
    make: *** [out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so] Fehler 1
    
    Just to make sure: I have edited the line in Android.mk file as you've said (external/bossacjni/Android.mk):
    Code:
    LOCAL_LDLIBS := -ldl -llog
    I hope you or anyone else can help me with this.

    Thanks

    Fabian
     
    Last edited: Aug 14, 2017
  4. vudoo

    vudoo New Member

    Joined:
    Jun 14, 2017
    Messages:
    17
    Likes Received:
    1
    Run it again something is stuck. If it persists use mmm external/bossacjni.
     
  5. mondxp

    mondxp New Member

    Joined:
    Aug 13, 2017
    Messages:
    3
    Likes Received:
    0
    The error persisted so I've used
    . But it also returned a error: (seems like I am missing some package or something similar)
    Code:
    target SharedLib: bossacjni (out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so)
    /home/dfabian/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
    build/core/shared_library_internal.mk:80: die Regel für Ziel „out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so“ scheiterte
    make: *** [out/target/product/udoo_6dq/obj/SHARED_LIBRARIES/bossacjni_intermediates/LINKED/bossacjni.so] Fehler 1
     

Share This Page