Problem with compiling custom ROM - Xiaomi Mi A2 Lite Questions & Answers

As in title, I've got problem with building my own custom. I get this and don't really have any idea how to solve it
FAILED: ninja: ./build/blueprint/bootstrap/build.ninja:11: loading '/home/divolka/scripts/extended/out/soong/.minibootstrap/build-globs.ninja': Exec format error
subninja ${myGlobs}
^ near here
11:18:19 soong minibootstrap failed with: exit status 1
#### failed to build some targets (8 seconds) ####

Hello try post you question in Telegram channel: MI A2 LITE Testers.. members of this channel maybe help you

Related

Flipflap build issue

I have been building Lineage for the HTC One A9 (hiaeuhl) since cyanogenmod shut down. About a week ago I started getting the below error:
Code:
/system/out/target/common/obj/APPS/FlipFlap_intermediates/src/R.stamp || exit 32; done ) && (touch /media/steve/hard_disk/android/system/out/target/common/obj/APPS/FlipFlap_intermediates/src/R.stamp )"
ERROR: resource directory 'packages/apps/FlipFlap/../../../packages/resources/devicesettings/res' does not exist
[ 86% 43518/50094] Building with Jack: /media/steve/hard_disk/android/system/out/target/common/obj/APPS/Dialer_intermediates/with-local/classes.dex
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/media/steve/hard_disk/android/system'
#### make failed to build some targets (02:14:47 (hh:mm:ss)) ####
Any ideas how I can integrate the FlipFlap package or otherwise alleviate? According to wikipedia FlipFlap is a flipcover application developed by the LineageOS team.

Building AOSP 8.0.0_r30 for Xperia XZ2 Compact (h8314)

Well, new user but old lurker here, no points to post in dev threads and I'm not going to wait 3 months to get them so jumping right into things...
This is a record of my attempts to build AOSP 8.0 Orea for the nex Xperia XZ2 Compact. I'm running into problems and figured I'd document them here, for the betterment of others and to get help if needed.
Main guide: https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-oreo-8-0-kernel-4-4/#tutorial-step-3
Some modification required, as the phone and code are both pretty new, as mentioned by BeNeDeLuX on May 22 the repo was only just uploaded. More to follow.
github links not permitted?!??!?
well according to XDA, outside links are not allowed to be posted until you've replied 10 times... Even if the posts are OBVIOUSLY code-related (e.g. GitHub *cough*cough*)...
Please excuse me while I go spam another thread, or create an intro or something... brb
Step 2
OK, jumping right back into it:
Now we need to add the git repos for tama (platform) and apollo (xz2).
First follow the steps in the main guide up to step 4.3: https://developer.sony.com/develop/.../build-aosp-oreo-8-0-kernel-4-4/
Then clone the following two repositories into the ~/android/devices/sony directory:
Code:
git clone https://github.com/sonyxperiadev/device-sony-tama.git tama
Code:
git clone https://github.com/sonyxperiadev/device-sony-apollo.git apollo
now continue on with the steps in the main guide
There may be errors yet to come...
First error
First error:
Code:
build/core/base_rules.mk:374: warning: ignoring old commands for target
`out/target/product/apollo/vendor/etc/gps.conf'
ninja: error: 'kernel/sony/msm/arch/arm64/configs/aosp_tama_apollo_defconfig',
needed by '/home/anna/android_8-0-0/out/target/product/apollo/obj/KERNEL_OBJ/.config',
missing and no known rule to make it
16:32:12 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
#### make failed to build some targets (01:40 (mm:ss)) ####
System Info:
Code:
Linux hostname 4.8.0-53-generic #56~16.04.1-Ubuntu SMP Tue May 16 01:18:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Will post any progress as I make it, suggestions are welcome. You can find the full log here
any progress??
I'm back!
[email protected] said:
any progress??
Click to expand...
Click to collapse
Hey yes sorry my real-life job doesn't always allow for much personal time...
So right now the Sony dev repos don't have a pre-built kernel or kernel configuration for the XZ2 Compact.
I've grabbed the current config from /proc/config.gz on my XZ2 Compact running Android 8.0.0, Linux kernel 4.9.65-perf+, posted to gist here: https://gist.github.com/Ifiht/9d0eff34d1f47ecd955b49acd34a14fb
The closest config (based on software/hardware from https://en.wikipedia.org/wiki/Sony_Xperia) in sony repos is the aosp_yoshino_lilac default config, I've started compiling all these resources in a single git repo at https://github.com/Ifiht/sony-xperia-xz2.build.
Will update here with progress once I've got some with the kernel build.
2nd Error
Code:
ninja: error: 'out/target/product/apollo/obj_arm/SHARED_LIBRARIES/libqdutils_intermediates/export_includes', needed by 'out/target/product/apollo/obj_arm/SHARED_LIBRARIES/libOmxVdec_intermediates/import_includes', missing and no known rule to make it
12:58:20 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
#### make failed to build some targets (03:37 (mm:ss)) ####
So the build failed again using the defconfig listed in my git repo for this project. This time it doesn't even look like a kernel issue, more like a repo conflict given that all the errors are in "out" directory.
Appreciate any guidance from those that have seen this before. Full error copied here: https://gist.github.com/Ifiht/bb4e1dd43b6598ffcf02b83d960cd959
3rd error
Code:
[ 90% 10/11] glob system/core/*/Android.bp
ninja: error: 'device/sony/common-kernel/kernel-dtb-apollo', needed by 'out/target/product/apollo/kernel', missing and no known rule to make it
14:07:36 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
After upgrading my kernel and local repos to 4.9.6 and re-syncing everything for good measure I'm now getting the above. At least this one seems straightforward, even if it may mean I have to frankenstein together a custom kernel from the flagship source repos currently available from Sony...
Oh well onward and upward!
Build attempt on Mac OSX
Hey,
thank you for documenting your progress, I am playing along trying to get the build to work on my Mac OS 10.13 machine,
nice to see I am not the only one trying
Stuck with the exact same error now btw
Code:
[ 99% 141/142] glob prebuilts/abi-dumps/vndk/current/arm64/source-based/[email protected]
ninja: error: 'device/sony/common-kernel/kernel-dtb-apollo', needed by 'out/target/product/apollo/kernel', missing and no known rule to make it
20:16:48 ninja failed with: exit status 1
best wishes
https://github.com/sonyxperiadev/bug_tracker/issues/169#issuecomment-424278920
PLEASE DON'T FLASH TAMA WITH THE CURRENT KERNEL
My Akari's display got permanently damaged.
I repeat, DO NOT FLASH.
Click to expand...
Click to collapse

I encountered a problem when building lineageos 16.0, please help solve it.

The wrong part is like this:
Code:
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/jjut/los/out/target/product/albus/system/vendor/lib/libsensorndkbridge.so'
[ 99% 5741/5742] glob vendor/qcom/opensource/interfaces/wifi/supplicant/2.0/src
ninja: error: '/home/jjut/los/out/target/product/albus/obj_arm/SHARED_LIBRARIES/libqsap_sdk_intermediates/export_includes', needed by '/home/jjut/los/out/target/product/albus/obj_arm/SHARED_LIBRARIES/libqsap_shim_intermediates/import_includes', missing and no known rule to make it
17:09:12 ninja failed with: exit status 1
#### failed to build some targets (02:09 (mm:ss)) ####
I tried to find a good solution on Google or Github. Please help me on the xda developer. Thank you, I wish you a happy life.
help!
You need to declare a prebuilt shared library, atleast i fixed my error (with libminui) during building twrp, but the recovery didn't boot eventually. You need the compiled .so file and follow instructions here https://developer.android.com/ndk/guides/prebuilts

[PORT] Vendor from omni to lineage

I found omni9 vendor, there is a way to port them to lineage?
https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy/tree/P?files=1
You need port device tree to Lineage... this vendor is PIE
Zmianekpl said:
I found omni9 vendor, there is a way to port them to lineage?
https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy/tree/P?files=1
Click to expand...
Click to collapse
That doesnt even have to be ported, you can easily pull those files from the stock rom
Sorry but i lost my mind when searching solution for these error's, can somebody look up on it ?
They are here:
Vendor by @robotusr - https://github.com/robotusr/proprietary_vendor_xiaomi_daisy
Code:
[ 99% 1044/1045] glob vendor/rr/overlay/common/**/*
ninja: error: '/home/zmianek/RR/out/target/product/daisy/obj/STATIC_LIBRARIES/bootctrl.msm8953_intermediates/export_includes', needed by '/home/zmianek/RR/out/target/product/daisy/obj/EXECUTABLES/update_engine_sideload_intermediates/import_includes', missing and no known rule to make it
14:31:48 ninja failed with: exit status 1
I give it another shot with omni vendor but ended with:
Vendor by @wertus33333 - https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy/tree/P
Code:
[1027/1028] including vendor/xiaomi/daisy/Android.mk ...
build/make/core/base_rules.mk:260: error: vendor/xiaomi/daisy: MODULE.TARGET.SHARED_LIBRARIES.libaudiopolicymanager already defined by vendor/qcom/opensource/audio/policy_hal.
When i comment "LOCAL_MODULE := libaudiopolicymanager" in vendor/xiaomi/daisy/Android.mk it displays
Code:
[1027/1028] including vendor/xiaomi/daisy/Android.mk ...
build/make/core/dynamic_binary.mk:20: error: vendor/xiaomi/daisy: LOCAL_MODULE not defined before call to local-intermediates-dir.
20:17:02 ckati failed with: exit status
Zmianekpl said:
I found omni9 vendor, there is a way to port them to lineage?
https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy/tree/P?files=1
Click to expand...
Click to collapse
The tree is not stable/finished, as soon as it works for omni (don't expect anything soon ) it should be easy to port it to lineage.
Zmianekpl said:
I give it another shot with omni vendor but ended with:
Vendor by @wertus33333 - https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy/tree/P
Code:
[1027/1028] including vendor/xiaomi/daisy/Android.mk ...
build/make/core/base_rules.mk:260: error: vendor/xiaomi/daisy: MODULE.TARGET.SHARED_LIBRARIES.libaudiopolicymanager already defined by vendor/qcom/opensource/audio/policy_hal.
When i comment "LOCAL_MODULE := libaudiopolicymanager" in vendor/xiaomi/daisy/Android.mk it displays
Code:
[1027/1028] including vendor/xiaomi/daisy/Android.mk ...
build/make/core/dynamic_binary.mk:20: error: vendor/xiaomi/daisy: LOCAL_MODULE not defined before call to local-intermediates-dir.
20:17:02 ckati failed with: exit status
Click to expand...
Click to collapse
What does it say if you remove the first entry in vendor/daisy/android.mk, where libaudiopolicymanager is defined? I'm sorry for the bad work i'm no dev. Therefore please take everything on github with a bit of care . If you are interested in trying to build roms for the device feel free to pm me your telegram id and i'll add you to the "daisy "dev" group".

samsung j2lte build error

hi all,
I am building lineageos 14.1 for samsung galaxy j2 aka j2lte. but now after downloading the source i successfully sourced it. while building it says:
/bin/bash: prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++: Permission denied
make: *** [build/kati/Makefile.ckati:90: /mnt/android_devel/android/lineage/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/affinity.o] Error 126
make: Leaving directory '/mnt/android_devel/android/lineage'
#### make failed to build some targets (2 seconds) ####.
I need help.

Categories

Resources