Trouble compiling omnirom for existing device - Omni Q&A

Hello all,
I'm getting started with Omnirom and wanted to compile a new device. After reading up on how this should be done, I tried a to set up a new device and compile but that resulted in errors. I figured it would be better to start out by trying to compile an existing device, however I get the same error message. Figuring this might be due to my set up, I ran the compilation in a clean docker instance with freshly installed openjdk-8-jdk and build tools, but same problem. I tried to find information about the error but there is not much to find online, so therefore I'm requesting your help.
The error I keep getting is:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/platform-test-annotations-host_intermediates/javalib.jar', needed by '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/compatibility-common-util-hostsidelib_intermediates/classes-full-debug.jar', missing and no known rule to make it
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Details about the steps and error are below:
Init and sync:
Code:
repo init -u git://github.com/omnirom/android.git -b android-7.1
repo sync
Add device in .repo/local_manifests:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/xiaomi/kenzo" name="android_device_xiaomi_kenzo" remote="omnirom" revision="android-7.1" />
</manifest>
Compile:
Code:
[email protected]:~/dev/doit2$ . build/envsetup.sh
including device/xiaomi/kenzo/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/dev/doit2$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. omni_kenzo-userdebug
Which would you like? [aosp_arm-eng] 7
Looking for dependencies on: device/xiaomi/msm8956-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=omni_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-generic-x86_64-with-Ubuntu-17.10-artful
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/floeperd/dev/doit2/out
============================================
but I always end up with this error:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/platform-test-annotations-host_intermediates/javalib.jar', needed by '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/compatibility-common-util-hostsidelib_intermediates/classes-full-debug.jar', missing and no known rule to make it
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
I would appreciate any help. Thank you.

Related

No sim card issue in unofficial cm build

Hello,
I have build CyanogenMod 12.1 for my Samsung I9505 but it is showing no sim card.
If I install the nightly from CyanogenMod or the stock ROM, then the modem will work just fine.
I've also got some errors while building. At the moment I have no more ideas.
When I try to extract the blobs from my unofficial build it shows me: "remote object '/system/lib/libsec-ril.so' does not exist". I have build it with the complete blobs from the nightly build of cm.
Please help me and thanks in advice
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150803-UNOFFICIAL-jfltexx
TARGET_PRODUCT=cm_jfltexx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.0.0-2-amd64-x86_64-with-debian-stretch-sid
HOST_BUILD_TYPE=release
BUILD_ID=LMY48G
OUT_DIR=/home/user/Documents/git-repos/android/system/out
============================================
Click to expand...
Click to collapse
make -C kernel/samsung/jf O=/home/user/Documents/git-repos/android/system/out/target/product/jfltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/user/Documents/git-repos/android/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" modules
make[1]: Entering directory '/home/user/Documents/git-repos/android/system/kernel/samsung/jf'
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
/home/user/Documents/git-repos/android/system/kernel/samsung/jf/Makefile:1172: recipe for target 'modules' failed
make[2]: *** [modules] Error 1
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/user/Documents/git-repos/android/system/kernel/samsung/jf'
build/core/tasks/kernel.mk:229: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
make -C kernel/samsung/jf O=/home/user/Documents/git-repos/android/system/out/target/product/jfltexx/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE="/home/user/Documents/git-repos/android/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" modules_install
make[1]: Entering directory '/home/user/Documents/git-repos/android/system/kernel/samsung/jf'
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
/home/user/Documents/git-repos/android/system/kernel/samsung/jf/Makefile:1172: recipe for target 'modules_install' failed
make[2]: *** [modules_install] Error 1
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/user/Documents/git-repos/android/system/kernel/samsung/jf'
build/core/tasks/kernel.mk:229: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
Click to expand...
Click to collapse
localmanifests.xml:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_jfltexx" path="device/samsung/jfltexx" />
<project name="CyanogenMod/android_device_samsung_jf-common" path="device/samsung/jf-common" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" />
<project name="CyanogenMod/android_kernel_samsung_jf" path="kernel/samsung/jf" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" />
</manifest>
Click to expand...
Click to collapse

Can pls someone help me with this building error

Hi, i wanna build cm13 for our beloved nexus 4 on my own (i know there is already a build) but i wanna do it.
i did everything as the cyanogen wiki said but im faceing this eroor
[email protected]:~/android/system# croot
[email protected]:~/android/system# brunch mako
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0
CM_VERSION=13.0-20151109-UNOFFICIAL-mako
TARGET_PRODUCT=cm_mako
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-2.6.32-042stab108.2-x86_64-with-debian-7.9
HOST_BUILD_TYPE=release
BUILD_ID=MDB08M
OUT_DIR=/root/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0
CM_VERSION=13.0-20151109-UNOFFICIAL-mako
TARGET_PRODUCT=cm_mako
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-2.6.32-042stab108.2-x86_64-with-debian-7.9
HOST_BUILD_TYPE=release
BUILD_ID=MDB08M
OUT_DIR=/root/android/system/out
============================================
"ebtables is disabled on this build"
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
No private recovery resources for TARGET_DEVICE mako
make: Entering directory `/root/android/system'
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: libcompiler_rt-extras <= external/compiler-rt/lib/builtins/mulodi4.c
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by prebuilts/clang/linux-x86/host/3.6/bin/clang)
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by prebuilts/clang/linux-x86/host/3.6/bin/clang)
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /root/android/system/prebuilts/clang/linux-x86/host/3.6/bin/../lib64/libc++.so)
make: *** [/root/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 1
make: *** Waiting for unfinished jobs....
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by prebuilts/clang/linux-x86/host/3.6/bin/clang)
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by prebuilts/clang/linux-x86/host/3.6/bin/clang)
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /root/android/system/prebuilts/clang/linux-x86/host/3.6/bin/../lib64/libc++.so)
make: *** [/root/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o] Error 1
make: *** wait: No child processes. Stop.
#### make failed to build some targets (03:31 (mm:ss)) ####

Problem with start compilation

Hi I try to compile slimrom (MM) but I have this error
[email protected]:~/android/f70n/roms/slimrom$ . build/envsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/lge/vee7/vendorsetup.sh
including vendor/slim/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/android/f70n/roms/slimrom$ lunch slim_vee7-userdebug
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=UNOFFICIAL
PLATFORM_VERSION=6.0
SLIM_VERSION=Slim-6.0.alpha.0.1-UNOFFICIAL-20160402-1948
TARGET_PRODUCT=slim_vee7
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a5
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.2.0-34-generic-x86_64-with-Ubuntu-15.10-wily
HOST_BUILD_TYPE=release
BUILD_ID=MRA59B
OUT_DIR=/home/vangreen/android/f70n/roms/slimrom/out
============================================
[email protected]:~/android/f70n/roms/slimrom$ make -j2 bacon
============================================
PLATFORM_VERSION_CODENAME=UNOFFICIAL
PLATFORM_VERSION=6.0
SLIM_VERSION=Slim-6.0.alpha.0.1-UNOFFICIAL-20160402-1949
TARGET_PRODUCT=slim_vee7
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a5
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.2.0-34-generic-x86_64-with-Ubuntu-15.10-wily
HOST_BUILD_TYPE=release
BUILD_ID=MRA59B
OUT_DIR=/home/vangreen/android/f70n/roms/slimrom/out
============================================
bionic/libc/arch-arm/arm.mk:55: *** "TARGET_CPU_VARIANT not set or set to an unknown value. Possible values are cortex-a7, cortex-a8, cortex-a9, cortex-a15, krait, denver. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.". Stop.
#### make failed to build some targets (01:13 (mm:ss)) ####
[email protected]:~/android/f70n/roms/slimrom$ ^C
[email protected]:~/android/f70n/roms/slimrom$
That's a toughy
Sent from my iPhone using Tapatalk
I fix it. Slim source not suported cortex a5 architecture. I paste folder from omni source and everything works
TT || LG F70
Cd slim/device/lge/f70n/patches && sh apply.sh
I've got this when compiling Slim6 for Huawei Y300
============================================
system/bt/Android.mk:18: extraneous text after 'ifeq' directive
build/core/tasks/kernel.mk:150: **********************************************************
build/core/tasks/kernel.mk:151: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:152: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:153: * BoardConfig.mk file *
build/core/tasks/kernel.mk:154: **********************************************************
Building with Jack: /home/android/android/y300/out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-nano_intermediates/classes.jack
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/android/android/y300/out/host/linux-x86/framework/jack-launcher.jar -cp /home/android/android/y300/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
ERROR: /home/android/android/y300/external/protobuf/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java:1: The type java.lang.Object cannot be found in source files, imported jack libs or the classpath
ERROR: /home/android/android/y300/external/protobuf/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java:1: The type java.lang.Class cannot be found in source files, imported jack libs or the classpath
ERROR: /home/android/android/y300/external/protobuf/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java:33: The import java.lang cannot be resolved
ERROR: /home/android/android/y300/external/protobuf/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java:34: The import java.lang cannot be resolved
ERROR: /home/android/android/y300/external/protobuf/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java:35: The import java.lang cannot be resolved
ERROR: /home/android/android/y300/external/protobuf/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java:36: The import java.lang cannot be resolved
ERROR: /home/android/android/y300/external/protobuf/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java:37: The import java.lang cannot be resolved
. . .<3 pages of errors>
ERROR: /home/android/android/y300/external/protobuf/java/src/main/java/com/google/protobuf/nano/CodedOutputByteBufferNano.java:360: IllegalArgumentException cannot be resolved to a type
build/core/java.mk:636: recipe for target '/home/android/android/y300/out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-nano_intermediates/classes.jack' failed
make: *** [/home/android/android/y300/out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-nano_intermediates/classes.jack] Error 41
make: Leaving directory '/home/android/android/y300'
Click to expand...
Click to collapse

[Q] Issues with porting OmniROM to Nubia Z18 (NX606J)

Hi,
since last week I've been trying to port Omni to the ZTE nubia Z18 (NX606J) with more or less success but a few more obstacles to clear.
Basically, what I'm stuck at at the moment is the final make to build the actual ROM itself, but it's a bit more than that.. but first things first:
- I initialized the repo from OmniRom's android repository on GitHub and successfully ran repo sync
Code:
repo init -u git://github.com/omnirom/android.git -b android-9.0 && repo sync -j `nproc` -c -f --no-clone-bundle
- I cloned the device's config from youyim123's GitHub into device/nubia/nx606j, as per the envsetup.mk (so it finds the appropriate vendorsetup)
Code:
git clone https://github.com/youyim123/android_device_nubia_nx609j.git -b master
- I run . build/envsetup.sh and then lunch omni-nx606j-eng which produces
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=omni_nx606j
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.16-96.current-x86_64-Solus-3.9999
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PD1A.180720.031
OUT_DIR=/run/media/curtisy/Solus-Data/Omni_NX606J/out
============================================
- I run make clean && make -j4, this works for a while and then exits with of the following error:
Code:
ninja: error: 'prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libunwind.a', needed by '/run/media/curtisy/Solus-Data/Omni_NX606J/out/soong/.intermediates/external/boringssl/libcrypto/android_arm_armv8-a_cortex-a53_core_shared/libcrypto.so', missing and no known rule to make it
20:00:44 ninja failed with: exit status 1
I see it's missing some files, but repo sync again, doesn't help either, so I'm lost.
One pretty weird thing I noticed is that the second ninja step is only showing 55/56 as done but still continues. Is this normal?
Code:
[1/1] /run/media/curtisy/Solus-Data/Om...X606J/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[77/77] /run/media/curtisy/Solus-Data/...Data/Omni_NX606J/out/soong/build.ninja
Running make recoveryimage worked once, but when I tried flashing that, my device said it wasn't trusted and I had to reflash the source image again.
I'm really hitting a dead end with my little knowledge here, so it would be cool if anyone could point me in the right direction so I could at least get TWRP to work.
The phone has a Snapdragon 845. If you need any additional information, feel free to ask as I'm happy about any straw I can grab here.
Update: I somehow got around this issue doing another repo sync but now I'm prompted with another issue.
Code:
[945/945] including vendor/omni/Android.mk ...
packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm) missing libbluetooth_jni (SHARED_LIBRARIES android-arm)
Available variants:
libbluetooth_jni (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:833: error: exiting from previous errors.
03:34:57 ckati failed with: exit status 1
Or with ALLLOW_MISSING_DEPENDENCIES=true
Code:
[ 99% 1390/1391] glob vendor/omni/overlay/common/**/*
ninja: error: '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj_arm/SHARED_LIBRARIES/libbluetooth_jni_intermediates/link_type', needed by '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj/APPS/Bluetooth_intermediates/2ND_jni_link_type', missing and no known rule to make it
03:39:28 ninja failed with: exit status 1
For reference, this is the kernel source and this is the device specific source I'm currently using.
curtisy said:
Update: I somehow got around this issue doing another repo sync but now I'm prompted with another issue.
Code:
[945/945] including vendor/omni/Android.mk ...
packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm) missing libbluetooth_jni (SHARED_LIBRARIES android-arm)
Available variants:
libbluetooth_jni (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:833: error: exiting from previous errors.
03:34:57 ckati failed with: exit status 1
Or with ALLLOW_MISSING_DEPENDENCIES=true
Code:
[ 99% 1390/1391] glob vendor/omni/overlay/common/**/*
ninja: error: '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj_arm/SHARED_LIBRARIES/libbluetooth_jni_intermediates/link_type', needed by '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj/APPS/Bluetooth_intermediates/2ND_jni_link_type', missing and no known rule to make it
03:39:28 ninja failed with: exit status 1
For reference, this is the kernel source and this is the device specific source I'm currently using.
Click to expand...
Click to collapse
How do for fix?

Xperia XA2 H3133/H3113 Android 10 AOSP Not Building / Compiling

Hi
I have an issue when building AOSP, it fails to build some targets, as well as ninja fails with exit status 1. I have followed the guide provided by sony and i dont know why it happens. Log below.
Thanks
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_h3113
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-62-generic-x86_64-Linux-Mint-19.2
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.190711.019
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/sony/nile
============================================
hardware/qcom/gps/sdm845/etc/Android.mk was modified, regenerating...
[ 25% 113/441] including device/sony/common/Android.mk ...
IDisplayConfig version: DISPLAY_CONFIG_1_8
[ 99% 440/441] finishing build rules ...
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherOutOfProcTests'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherDebug'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherTests'
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'LauncherRotationStressTest'
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'PlatformScenarioTests'
FAILED: ninja: 'kernel/sony/msm-4.14/common-kernel/kernel-dtb-pioneer', needed by 'out/target/product/pioneer/kernel', missing and no known rule to make it
02:03:49 ninja failed with: exit status 1
#### failed to build some targets (02:22 (mm:ss)) ####
FAILED: ninja: 'kernel/sony/msm-4.14/common-kernel/kernel-dtb-pioneer
no prebuilt kernel in repo!
u need to compile kernel from source 1st or change "/device/sony/nile/platform.mk" to use source code for kernel, not prebuilt.
Now u can do it =) They updated sources & make prebuild kernels
https://github.com/sonyxperiadev/kernel-sony-msm-4.14-common

Categories

Resources