[Craft] [Bug 440709] New: Broken Craft ARM cross compilation on Android Docker environment

Javier O. Cordero PĂ©rez bugzilla_noreply at kde.org
Sat Aug 7 21:11:58 BST 2021


https://bugs.kde.org/show_bug.cgi?id=440709

            Bug ID: 440709
           Summary: Broken Craft ARM cross compilation on Android Docker
                    environment
           Product: Craft
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Core
          Assignee: vonreth at kde.org
          Reporter: javier at imaginary.tech
                CC: kde-windows at kde.org
  Target Milestone: ---

SUMMARY
Attempts to cross compile ARM and ARM64 Android builds using the Android Docker
environment, kdeorg/android-sdk, result in compilation failing with error:
> configure: error: Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root.

STEPS TO REPRODUCE
Follow steps at https://community.kde.org/Craft/Android

  These are:

1. Download KDE Android SDK
> docker pull kdeorg/android-sdk
2a. Setup Craft in the container with persistence. 
> docker run -ti --rm -v <your persistent craft path>:/home/user/CraftRoot kdeorg/android-sdk craft-bootstrap
2b. Select either ARM or ARM64 as target architecture.
3. Build any KDE project, kcoreaddons, kirigami, or ktrip. Do attempt to build,
don't use the pretend flag `-p`. 
> docker run -ti --rm -v  <your persistent craft path>:/home/user/CraftRoot kdeorg/android-sdk craft ktrip

OBSERVED RESULT
Compilation fails while configuring ICU, the first of libraries to be built.
> configure: error: Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root

EXPECTED RESULT
A smooth Craft build, or a request to install required project dependencies.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon Testing Edition
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
Kernel: Linux 5.11.0-25-lowlatency (64-bit)

While ICU attempts to compile, the following possibly related error is seen:

> *** Action: compile for libs/icu ***                      
> executing command: /home/user/CraftRoot/dev-utils/bin/python3 /opt/android-ndk/build/tools/make_standalone_toolchain.py --install-dir /home/user/CraftRoot/tmp/android-arm-toolchain --arch arm --api 21
> WARNING:__main__:make_standalone_toolchain.py is no longer necessary. The
> $NDK/toolchains/llvm/prebuilt/linux-x86_64/bin directory contains target-specific scripts that perform
> the same task. For example, instead of:
> 
>     $ python $NDK/build/tools/make_standalone_toolchain.py \
>         --arch arm --api 21 --install-dir toolchain
>     $ toolchain/bin/clang++ src.cpp
> 
> Instead use:
> 
>     $ $NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++ src.cpp

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Kde-windows mailing list