How to build LineageOS For Gemini - Xiaomi Mi 5 Questions & Answers

I try to build the LineageOS,but the system fails to compile
how to fix it?
Reference documentation
http://wiki.lineageos.org/gemini_build.html#start-the-build

build/core/base_rules.mk:316: warning: overriding commands for target `/mnt/media/system/out/target/product/gemini/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/mnt/media/system/out/target/product/gemini/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/mnt/media/system/out/target/product/gemini/system/etc/libnfc-brcm.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/mnt/media/system/out/target/product/gemini/system/etc/libnfc-brcm.conf'
build/core/Makefile:34: warning: overriding commands for target `/mnt/media/system/out/target/product/gemini/system/etc/libnfc-nxp.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/mnt/media/system/out/target/product/gemini/system/etc/libnfc-nxp.conf'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/mnt/media/system/out/target/product/gemini/obj/SHARED_LIBRARIES/libqminvapi_intermediates/export_includes', needed by '/mnt/media/system/out/target/product/gemini/obj/EXECUTABLES/readmac_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/mnt/media/system'

if i run <code> mmm wifi </code>
Running kati to generate build-lineage_gemini-mmm-device_xiaomi_gemini_wifi_Android.mk.ninja...
No need to regenerate ninja file
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/mnt/media/system/out/target/product/gemini/obj/SHARED_LIBRARIES/libutils_intermediates/export_includes', needed by '/mnt/media/system/out/target/product/gemini/obj/EXECUTABLES/readmac_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/mnt/media/system'

Related

Help! I got a problem while building cm 12.1 for cancro

Every time it will stop without any errors,just some warnings. here is the log:
Code:
[email protected]:~/AndroidSource/cm$ make -j4 cancro
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150729-UNOFFICIAL-cancro
TARGET_PRODUCT=cm_cancro
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-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY48G
OUT_DIR=/home/chris/AndroidSource/cm/out
============================================
find: `dummy': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/obj/include/qcom/display/copybit_priv.h'
PRODUCT_COPY_FILES device/xiaomi/cancro/audio/audio_effects.conf:system/etc/audio_effects.conf ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b00'
device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b00'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b01'
device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b01'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b02'
device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b02'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b04'
device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b04'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b06'
device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b06'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b07'
device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b07'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b08'
device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b08'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b09'
device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.b09'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.mdt'
device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/etc/firmware/wcnss.mdt'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libOmxAacEnc.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libOmxAacEnc.so'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libOmxAmrEnc.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libOmxAmrEnc.so'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libOmxEvrcEnc.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libOmxEvrcEnc.so'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libOmxQcelp13Enc.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libOmxQcelp13Enc.so'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/bin/rild'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/bin/rild'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libril.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libril.so'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libreference-ril.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libreference-ril.so'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/librilutils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/librilutils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libmm-omxcore.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/lib/libmm-omxcore.so'
build/core/Makefile:46: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/vendor/lib/liblisten.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/system/vendor/lib/liblisten.so'
No private recovery resources for TARGET_DEVICE cancro
device/xiaomi/cancro/mkbootimg.mk:35: warning: overriding commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/dt.img'
build/core/generate_extra_images.mk:109: warning: ignoring old commands for target `/home/chris/AndroidSource/cm/out/target/product/cancro/dt.img'
[B]make: *** No rule to make target `cancro'. Stop.
#### make failed to build some targets (01:08 (mm:ss)) ####[/B]
Could somebody get me a hand,Thanks!

Cant Compile inbuild kernel for Cm13

Hello guys i just set up build environment for cm13 the non caf version,cant build kernel from that getting error
this is the error
HTML:
target thumb C++: libbase <= system/core/base/logging.cpp
target thumb C++: liblog <= system/core/liblog/log_time.cpp
target thumb C: liblog <= system/core/liblog/logd_write.c
target thumb C: liblog <= system/core/liblog/log_event_write.c
target thumb C: liblog <= system/core/liblog/event_tag_map.c
In file included from bionic/libc/include/stdatomic.h:156:0,
from system/core/liblog/logd_write.c:25:
bionic/libc/include/uchar.h:40:35: error: unknown type name 'char16_t'
size_t c16rtomb(char* __restrict, char16_t, mbstate_t* __restrict);
^
bionic/libc/include/uchar.h:41:35: error: unknown type name 'char32_t'
size_t c32rtomb(char* __restrict, char32_t, mbstate_t* __restrict);
^
bionic/libc/include/uchar.h:42:17: error: unknown type name 'char16_t'
size_t mbrtoc16(char16_t* __restrict,
^
bionic/libc/include/uchar.h:46:17: error: unknown type name 'char32_t'
size_t mbrtoc32(char32_t* __restrict,
^
In file included from system/core/liblog/logd_write.c:25:0:
bionic/libc/include/stdatomic.h:367:11: error: expected specifier-qualifier-list before 'char16_t'
typedef _Atomic(char16_t) atomic_char16_t;
^
bionic/libc/include/stdatomic.h:368:11: error: expected specifier-qualifier-list before 'char32_t'
typedef _Atomic(char32_t) atomic_char32_t;
^
build/core/binary.mk:816: recipe for target '/home/preshot2989/android/out/target/product/hammerhead/obj/STATIC_LIBRARIES/liblog_intermediates/logd_write.o' failed
make: *** [/home/preshot2989/android/out/target/product/hammerhead/obj/STATIC_LIBRARIES/liblog_intermediates/logd_write.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
#### make failed to build some targets (04:45 (mm:ss)) ####
Using default toolchain for kernel GCC 4.8

Building Lineage OS for gemini is broken

Hi there,
It's my first time to try to build LineageOS from source for Mi 5 (gemini), and I am following official instructions here wiki lineageos org gemini_build html
But I got errors after runing 'brunch gemini'. Any help are welcome, thanks very much!
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170130-UNOFFICIAL-gemini
TARGET_PRODUCT=lineage_gemini
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/root/android/system/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/root/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE gemini
build/core/java.mk:334: warning: overriding commands for target `/root/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/root/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/root/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/root/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/root/android/system/out/target/product/gemini/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/android/system/out/target/product/gemini/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-brcm.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-brcm.conf'
build/core/Makefile:34: warning: overriding commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-nxp.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-nxp.conf'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/root/android/system/out/target/product/gemini/obj/SHARED_LIBRARIES/libqminvapi_intermediates/export_includes', needed by '/root/android/system/out/target/product/gemini/obj/EXECUTABLES/readmac_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/root/android/system'
#### make failed to build some targets (45 seconds) ####

ninja error on compiling rr

Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/kunwar/RR/out/target/product/s2/obj_arm/SHARED_LIBRARIES/libtfa9890_intermediates/export_includes', needed by '/home/kunwar/RR/out/target/product/s2/obj_arm/SHARED_LIBRARIES/audio_amplifier.msm8952_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/kunwar/RR'
You missed Vendor Tree
How to solve that issue

Question google pixel 5a - lineageos build error on the last part

Hello
I am trying to build an image for Pixel 5a, on the last part, when I run the following:
Code:
$ brunch barbet
on the last part, I am getting an error as follows:
Code:
============================================
$(shell date -u +%Y%m%d) was changed, regenerating...
$(shell date -u +%Y%m%d) was changed, regenerating...
[ 94% 599/632] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:57: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
system/sepolicy/Android.mk:62: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
[100% 632/632] writing build rules ...
build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/barbet/product/media/bootanimation.zip'
build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/barbet/product/media/bootanimation.zip'
build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/barbet/vendor/etc/gps.conf'
build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/barbet/vendor/etc/gps.conf'
build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/barbet/product/etc/res/images/charger/battery_fail.png'
build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/barbet/product/etc/res/images/charger/battery_fail.png'
build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/barbet/product/etc/res/images/charger/battery_scale.png'
build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/barbet/product/etc/res/images/charger/battery_scale.png'
build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/barbet/product/etc/res/values/charger/animation.txt'
build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/barbet/product/etc/res/values/charger/animation.txt'
build/make/core/Makefile:61: warning: overriding commands for target `out/target/product/barbet/vendor/lib/ese_spi_st.so'
build/make/core/base_rules.mk:525: warning: ignoring old commands for target `out/target/product/barbet/vendor/lib/ese_spi_st.so'
FAILED: ninja: 'system/core/libhelios/libhelios.so', needed by 'out/target/product/barbet/system/lib64/libhelios.so', missing and no known rule to make it
00:36:56 ninja failed with: exit status 1
#### failed to build some targets (01:25 (mm:ss)) ####
is there anyone that know where to find 'libhelios.so', please.
I am so excited to install my own image to the phone.
Thank you very much
Rasim

Categories

Resources