Compile error - Xiaomi Redmi Note 3 Questions & Answers

Hello guys!
When i am trying to compile Crdroid or any other rom i get these error:
Code:
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: error: resource bool/config_multiColorNotificationLed does not override an existing resource.
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: error: resource bool/config_proximityCheckOnWake does not override an existing resource.
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: error: resource bool/config_proximityCheckOnWakeEnabledByDefault does not override an existing resource.
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
error: failed parsing overlays.
[ 54% 53791/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_btn_suggestion_lxx_light.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/btn_suggestion_lxx_light.xml
[ 54% 53792/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_activity_lxx_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_activity_lxx_dark.xml
[ 54% 53793/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_activity_lxx_light.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_activity_lxx_light.xml
[ 54% 53794/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_emoticons_holo_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_emoticons_holo_dark.xml
[ 54% 53795/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_btn_suggestion_lxx_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/btn_suggestion_lxx_dark.xml
[ 54% 53796/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_activity_holo_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_activity_holo_dark.xml
[ 54% 53797/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_emoticons_lxx_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_emoticons_lxx_dark.xml
[ 54% 53798/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_flag_holo_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_flag_holo_dark.xml
[ 54% 53799/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_emoticons_lxx_light.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_emoticons_lxx_light.xml
[ 54% 53800/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_flag_lxx_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_flag_lxx_dark.xml
[ 54% 53801/99436] target StaticLib: libv8 (/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/STATIC_LIBRARIES/libv8_intermediates/libv8.a)
ninja: build stopped: subcommand failed.
15:03:11 ninja failed with: exit status 1
#### failed to build some targets (16:41 (mm:ss)) ####
Please, someone help me!

Just nuke the lines providing error and done!

Related

[Q] need help with error building 4.2

Ok im building cm 10.1 for my phone which is unsupported it has the msm8660 common kernel and i fixed the ramdisk offset now i get this error and cant figure out where to add the path to fix it if that is what im supposed to do it builds great up to this point please help
target Dex: core-junit-hostdex
target Dex: apachehttp-hostdex
----- Making recovery image ------
error: no output filename specified
usage: mkbootimg
--kernel <filename>
--ramdisk <filename>
[ --second <2ndbootloader-filename> ]
[ --cmdline <kernel-commandline> ]
[ --board <boardname> ]
[ --base <address> ]
[ --pagesize <pagesize> ]
[ --ramdisk_offset <address> ]
-o|--output <filename>
make: *** [/home/ken/android/cm10_1/out/target/product/i577/recovery.img] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/android/cm10_1$
ktempleton said:
Ok im building cm 10.1 for my phone which is unsupported it has the msm8660 common kernel and i fixed the ramdisk offset now i get this error and cant figure out where to add the path to fix it if that is what im supposed to do it builds great up to this point please help
target Dex: core-junit-hostdex
target Dex: apachehttp-hostdex
----- Making recovery image ------
error: no output filename specified
usage: mkbootimg
--kernel <filename>
--ramdisk <filename>
[ --second <2ndbootloader-filename> ]
[ --cmdline <kernel-commandline> ]
[ --board <boardname> ]
[ --base <address> ]
[ --pagesize <pagesize> ]
[ --ramdisk_offset <address> ]
-o|--output <filename>
make: *** [/home/ken/android/cm10_1/out/target/product/i577/recovery.img] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/android/cm10_1$
Click to expand...
Click to collapse
the error show that no output file name is specified. To add the correct output you need to edit /build/core/tasks/kernel.mk
edit that kernel.mk file and look for (line 27) KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ
you need to change that. delete $(TARGET_OUT_INTERMEDIATES) and make it say what your absolute path to that folder is.
Example: KERNEL_OUT := /mnt/android/cm10.1/out/target/product/i577/obj/KERNEL_OBJ
Hope this helps...

[Q] Problem in compiling kernel

I got this error
In file included from drivers/media/platform/msm/camera_v2/sensor/csid/msm_csid.c:20:0:
drivers/media/platform/msm/camera_v2/sensor/csid/include/msm_csid_2_0_hwreg.h:16:22: fatal error: msm_csid.h: No such file or directory
compilation terminated.
scripts/Makefile.build:308: recipe for target 'drivers/media/platform/msm/camera_v2/sensor/csid/msm_csid.o' failed
make[7]: *** [drivers/media/platform/msm/camera_v2/sensor/csid/msm_csid.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm/camera_v2/sensor/csid' failed
make[6]: *** [drivers/media/platform/msm/camera_v2/sensor/csid] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm/camera_v2/sensor' failed
make[5]: *** [drivers/media/platform/msm/camera_v2/sensor] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm/camera_v2' failed
make[4]: *** [drivers/media/platform/msm/camera_v2] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm' failed
make[3]: *** [drivers/media/platform/msm] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform' failed
make[2]: *** [drivers/media/platform] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media' failed
make[1]: *** [drivers/media] Error 2
Makefile:806: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: Leaving directory '/home/almas/Desktop/kernel'
Anyone knows it how to fix it
AndroidFire said:
I got this error
In file included from drivers/media/platform/msm/camera_v2/sensor/csid/msm_csid.c:20:0:
drivers/media/platform/msm/camera_v2/sensor/csid/include/msm_csid_2_0_hwreg.h:16:22: fatal error: msm_csid.h: No such file or directory
compilation terminated.
scripts/Makefile.build:308: recipe for target 'drivers/media/platform/msm/camera_v2/sensor/csid/msm_csid.o' failed
make[7]: *** [drivers/media/platform/msm/camera_v2/sensor/csid/msm_csid.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm/camera_v2/sensor/csid' failed
make[6]: *** [drivers/media/platform/msm/camera_v2/sensor/csid] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm/camera_v2/sensor' failed
make[5]: *** [drivers/media/platform/msm/camera_v2/sensor] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm/camera_v2' failed
make[4]: *** [drivers/media/platform/msm/camera_v2] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm' failed
make[3]: *** [drivers/media/platform/msm] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform' failed
make[2]: *** [drivers/media/platform] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media' failed
make[1]: *** [drivers/media] Error 2
Makefile:806: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: Leaving directory '/home/almas/Desktop/kernel'
Anyone knows it how to fix it
Click to expand...
Click to collapse
I found the same error. See the patch attached to fix the includes.
Kr0n0 said:
I found the same error. See the patch attached to fix the includes.
Click to expand...
Click to collapse
how to apply patch?
now I know how to apply patch: open terminal in kernel folder
patch -p[num] < [path diff file]
ex: patch -p1 < /home/linux/Desktop/sm-j510fn/include_fix.diff

Install kernel Marshmallow (Wiko Lenny 2 )

Hi all,
I have compiled the new kernel Marshmallow for Wiko Lenny 2 which I downloaded from wikogeek.com. I successfully have the: zImage and zImage-dtb.
But when I try to flash the device I have the message "FAILED (remote: partition table doesn't exist)"
I use the commands:
Code:
$ fastboot oem unlock
$ fastboot flash zimage ~/Downloads/LENNY2_OpenSource/kernel-3.10/arch/arm/boot/zImage
target reported max download size of 134217728 bytes
sending 'zimage' (6689 KB)...
OKAY [ 0.249s]
writing 'zimage'...
FAILED (remote: partition table doesn't exist)
finished. total time: 0.251s
Anyone have an idea?
Thank you!
EDIT:
- I dump the boot.img from the /dev/block/<boot-partition>
- I decompress the dump using split_bootimg.pl (gist.github.com/oldhu/1832541)
Code:
$ perl split_bootimg.pl boot.img
Page size: 2048 (0x00000800)
Kernel size: 6006495 (0x005ba6df)
Ramdisk size: 844208 (0x000ce1b0)
Second size: 0 (0x00000000)
Board name: WIKO
Command line: bootopt=64S3,32S1,32S1
Base address: (0x8dffff00)
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
- I replace the boot.img-kernel by the zImage compiled from the kernel sources
- And make a new image with the command mkbootimg:
Code:
$ mkbootimg --page 2048 --base 0x8dfffe00 --kernel ~/Downloads/LENNY2_OpenSource/kernel-3.10/arch/arm/boot/zImage --ramdisk bootable_dump/boot.img-ramdisk.gz -o boot-new.img
$ ./fastboot flash boot ~/boot-new.img
target reported max download size of 134217728 bytes
sending 'boot' (7504 KB)...
OKAY [ 0.277s]
writing 'boot'...
OKAY [ 0.524s]
finished. total time: 0.801s
$ ./flashboot reboot
But the phone doesn't boot!
It seems that the marshmallow kernel available on official Wiko website for Lenny 2, te is a mistake as I red, it's for the Lenny 4 . It's not the first time wiko make suche a mistake!
Anyway that world explain why every one thet tri this marshmallow kernel did fail

Compiling error

When im trying to build the rom iam getting this error
Code:
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed
make[2]: *** [scripts/basic/fixdep] Error 1
/home/adithyan/aosip/kernel/xiaomi/msm8956/Makefile:428: recipe for target 'scripts_basic' failed
make[1]: *** [scripts_basic] Error 2
Makefile:131: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/adithyan/aosip/kernel/xiaomi/msm8956'
ninja: build stopped: subcommand failed.
11:19:53 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
Any solutions?

OnePlus 7t Pro Bricked ?

Hi all, i wanted to remove my RR Rom, which was draining a lot battery.
But when i downloaded a new rom (Paranoid Android) and followed the fastboot commands i encounted an error.
7T PRO\payload_dumper-win64\payload_output> fastboot flash system system.img
target reported max download size of 805306368 bytes
Invalid sparse file format at header magi
So i tried to revert back to stock with this tutorial ( https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424 )
But now i am getting these errors:
error: failed to load 'images.zip': No such file or directory
Press any key to exit...
But the images.zip is there , i can see it.
Also when i try other flash ables .bat files:
Do you want to wipe all the data ( Reccomended )[Y/N]?y
Creating filesystem with parameters:
Size: 232382812160
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 32768
Label:
Blocks: 56734085
Block groups: 1732
Reserved block group size: 1024
Created filesystem with 11/14188544 inodes and 938604/56734085 blocks
target reported max download size of 805306368 bytes
Erase successful, but not automatically formatting.
Can't determine partition type.
FAILED (remote: GetVar Variable Not found)
erasing 'userdata'...
OKAY [ 0.688s]
sending 'userdata' (152025 KB)...
OKAY [ 3.224s]
writing 'userdata'...
OKAY [ 0.003s]
erasing 'cache'...
FAILED (remote: Check device console.)
finished. total time: 7.236s
error: cannot load 'aop.img'
error: cannot load 'aop.img'
error: cannot load 'bluetooth.img'
error: cannot load 'bluetooth.img'
error: cannot load 'boot.img'
error: cannot load 'boot.img'
error: cannot load 'dsp.img'
error: cannot load 'dsp.img'
error: cannot load 'dtbo.img'
error: cannot load 'dtbo.img'
error: cannot load 'modem.img'
error: cannot load 'modem.img'
error: cannot load 'oem_stanvbk.img'
error: cannot load 'qupfw.img'
error: cannot load 'qupfw.img'
error: cannot load 'storsec.img'
error: cannot load 'storsec.img'
"Invalid sparse file format at header magic" is not an error you need only to wait
error: cannot load 'system.img'
"Invalid sparse file format at header magic" is not an error you need only to wait
error: cannot load 'system.img'
error: cannot load 'vbmeta.img'
error: cannot load 'vbmeta.img'
"Invalid sparse file format at header magic" is not an error you need only to wait
error: cannot load 'vendor.img'
"Invalid sparse file format at header magic" is not an error you need only to wait
error: cannot load 'vendor.img'
error: cannot load 'LOGO.img'
error: cannot load 'LOGO.img'
Press any key to continue . . .
I also tried to install TRWP and go from there, but then i get this error:
PS C:\Users\Raseven\Desktop\7T PRO> fastboot flash recovery_a twrp.img
target reported max download size of 805306368 bytes
sending 'recovery_a' (41796 KB)...
OKAY [ 0.899s]
writing 'recovery_a'...
OKAY [ 0.169s]
finished. total time: 1.073s
PS C:\Users\Raseven\Desktop\7T PRO> fastboot flash recovery_b twrp.img
target reported max download size of 805306368 bytes
sending 'recovery_b' (41796 KB)...
OKAY [ 0.900s]
writing 'recovery_b'...
OKAY [ 0.135s]
finished. total time: 1.039s
PS C:\Users\Raseven\Desktop\7T PRO> fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 0.900s]
booting...
FAILED (remote: Failed to load/authenticate boot image: Load Error)
finished. total time: 0.928s
PS C:\Users\Raseven\Desktop\7T PRO>
Is my phone bricked or ??
From OB8-OnePlus7ProOxygen_13.W.21_OTA_021_all_1912261255_76782007d7dbec-FASTBOOT i tried flash-all bat file :
--------------------------------------------
Bootloader Version...:
Baseband Version.....:
Serial Number........: bf29c267
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
android-info.txt syntax error: require product=msmnile
Setting current slot to 'b' OKAY [ 0.003s]
extracting boot.img (96 MB) to disk... took 0.273s
archive does not contain 'boot.sig'
Sending 'boot_b' (98304 KB) OKAY [ 2.154s]
Writing 'boot_b' OKAY [ 0.372s]
extracting dtbo.img (16 MB) to disk... took 0.042s
archive does not contain 'dtbo.sig'
Sending 'dtbo' (16384 KB) OKAY [ 0.366s]
Writing 'dtbo' OKAY [ 0.047s]
archive does not contain 'dt.img'
archive does not contain 'recovery.img'
extracting vbmeta.img (0 MB) to disk... took 0.001s
archive does not contain 'vbmeta.sig'
Sending 'vbmeta' (8 KB) OKAY [ 0.015s]
Writing 'vbmeta' OKAY [ 0.003s]
archive does not contain 'vbmeta_system.img'
archive does not contain 'super_empty.img'
archive does not contain 'boot_other.img'
extracting odm.img (100 MB) to disk... took 0.197s
archive does not contain 'odm.sig'
Sending 'odm' (102400 KB) OKAY [ 2.203s]
Writing 'odm' FAILED (remote: '(odm_b) No such partition')
fastboot: error: Command failed
Press any key to exit...
And another:
extracting android-info.txt (0 MB) to RAM...
extracting boot.img (96 MB) to disk... took 0.292s
target reported max download size of 805306368 bytes
archive does not contain 'boot.sig'
archive does not contain 'boot_other.img'
extracting dtbo.img (16 MB) to disk... took 0.043s
archive does not contain 'dtbo.sig'
archive does not contain 'dt.img'
archive does not contain 'recovery.img'
extracting system.img (3472 MB) to disk... took 13.269s
Invalid sparse file format at header magic
archive does not contain 'system.sig'
archive does not contain 'system_other.img'
extracting vbmeta.img (0 MB) to disk... took -0.000s
archive does not contain 'vbmeta.sig'
extracting vendor.img (1024 MB) to disk... took 3.842s
Invalid sparse file format at header magic
archive does not contain 'vendor.sig'
archive does not contain 'vendor_other.img'
wiping userdata...
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 56734085 4k blocks and 14188544 inodes
Filesystem UUID: 7645ccf6-e8b0-11ea-a92e-2fe9f70f7b34
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done
--------------------------------------------
Bootloader Version...:
Baseband Version.....:
Serial Number........: bf29c267
--------------------------------------------
sending 'boot_b' (98304 KB)...
OKAY [ 2.129s]
writing 'boot_b'...
OKAY [ 0.317s]
sending 'dtbo' (16384 KB)...
OKAY [ 0.361s]
writing 'dtbo'...
OKAY [ 0.069s]
sending sparse 'system' 1/5 (779514 KB)...
Ok i seemed to have fixed it, using the MSM Tool So admin u can lock this.

Categories

Resources