[PORT][Ubuntu Touch] WIP Stuck on a error - Moto G Android Development

Hi everybody !
I'm currently porting Ubuntu Touch (utopic) on falcon !
BUT I'm stuck on an error wich I can't achieve to fix (and I become out of time ...).
So I decided to show you my problem ! (I'm very close to success so it's maybe the last fix to do)
# make -j8 (-j1 won't fix that)
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=full_falcon
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/media/nas/EXTRA/Ubuntu_Touch/out
============================================
including abi/cpp/Android.mk ...
including bionic/Android.mk ...
including bootable/recovery/Android.mk ...
including build/libs/host/Android.mk ...
including build/target/board/Android.mk ...
including build/tools/acp/Android.mk ...
including build/tools/check_prereq/Android.mk ...
including build/tools/fs_config/Android.mk ...
including build/tools/zipalign/Android.mk ...
including device/asus/deb/dumpstate/Android.mk ...
including device/asus/deb/recovery/Android.mk ...
including device/asus/deb/self-extractors/Android.mk ...
including device/asus/flo/Android.mk ...
including device/asus/grouper/Android.mk ...
including device/asus/tilapia/recovery/Android.mk ...
including device/asus/tilapia/self-extractors/Android.mk ...
including device/generic/goldfish/audio/Android.mk ...
including device/generic/goldfish/camera/Android.mk ...
including device/generic/goldfish/gps/Android.mk ...
including device/generic/goldfish/lights/Android.mk ...
including device/generic/goldfish/opengl/Android.mk ...
including device/generic/goldfish/power/Android.mk ...
including device/generic/goldfish/qemu-props/Android.mk ...
including device/generic/goldfish/qemud/Android.mk ...
including device/generic/goldfish/sensors/Android.mk ...
including device/lge/hammerhead/Android.mk ...
including device/lge/mako/Android.mk ...
including device/samsung/manta/Android.mk ...
including external/aac/Android.mk ...
including external/busybox/Android.mk ...
including external/bzip2/Android.mk ...
including external/checkpolicy/Android.mk ...
including external/e2fsprogs/Android.mk ...
including external/expat/Android.mk ...
including external/flac/Android.mk ...
including external/freetype/Android.mk ...
including external/fsck_msdos/Android.mk ...
including external/gcc-demangle/Android.mk ...
including external/genext2fs/Android.mk ...
including external/giflib/Android.mk ...
including external/gtest/Android.mk ...
including external/icu4c/Android.mk ...
including external/jhead/Android.mk ...
including external/jpeg/Android.mk ...
including external/libgsm/Android.mk ...
including external/liblzf/Android.mk ...
including external/libpng/Android.mk ...
including external/libselinux/Android.mk ...
including external/libsepol/Android.mk ...
including external/libvpx/Android.mk ...
including external/mksh/Android.mk ...
including external/openssl/Android.mk ...
including external/pigz/Android.mk ...
including external/protobuf/Android.mk ...
including external/qemu/Android.mk ...
including external/scrypt/Android.mk ...
including external/sepolicy/Android.mk ...
including external/sfntly/Android.mk ...
including external/skia/Android.mk ...
including external/sonivox/Android.mk ...
including external/speex/Android.mk ...
including external/sqlite/android/Android.mk ...
including external/sqlite/dist/Android.mk ...
including external/stlport/Android.mk ...
including external/tinyalsa/Android.mk ...
including external/tinycompress/Android.mk ...
including external/tremolo/Android.mk ...
including external/webp/Android.mk ...
including external/webrtc/Android.mk ...
including external/wpa_supplicant_8/Android.mk ...
including external/yaffs2/Android.mk ...
including external/zlib/Android.mk ...
including frameworks/av/camera/Android.mk ...
including frameworks/av/drm/common/Android.mk ...
including frameworks/av/drm/drmserver/Android.mk ...
including frameworks/av/drm/libdrmframework/Android.mk ...
including frameworks/av/drm/mediadrm/plugins/mock/Android.mk ...
including frameworks/av/media/common_time/Android.mk ...
including frameworks/av/media/libcpustats/Android.mk ...
including frameworks/av/media/libeffects/downmix/Android.mk ...
including frameworks/av/media/libeffects/factory/Android.mk ...
including frameworks/av/media/libeffects/loudness/Android.mk ...
including frameworks/av/media/libeffects/lvm/lib/Android.mk ...
including frameworks/av/media/libeffects/lvm/wrapper/Android.mk ...
including frameworks/av/media/libeffects/preprocessing/Android.mk ...
including frameworks/av/media/libeffects/proxy/Android.mk ...
including frameworks/av/media/libeffects/visualizer/Android.mk ...
including frameworks/av/media/libmedia/Android.mk ...
including frameworks/av/media/libmediaplayerservice/Android.mk ...
including frameworks/av/media/libnbaio/Android.mk ...
including frameworks/av/media/libstagefright/Android.mk ...
including frameworks/av/media/mediaserver/Android.mk ...
including frameworks/av/services/audioflinger/Android.mk ...
including frameworks/av/services/camera/libcameraservice/Android.mk ...
including frameworks/av/services/medialog/Android.mk ...
including frameworks/base/cmds/bootanimation/Android.mk ...
including frameworks/base/cmds/screencap/Android.mk ...
including frameworks/base/libs/androidfw/Android.mk ...
including frameworks/base/services/input/Android.mk ...
including frameworks/base/tools/aapt/Android.mk ...
including frameworks/native/cmds/installd/Android.mk ...
including frameworks/native/cmds/servicemanager/Android.mk ...
including frameworks/native/libs/binder/Android.mk ...
including frameworks/native/libs/diskusage/Android.mk ...
including frameworks/native/libs/gui/Android.mk ...
including frameworks/native/libs/input/Android.mk ...
including frameworks/native/libs/ui/Android.mk ...
including frameworks/native/opengl/libagl/Android.mk ...
including frameworks/native/opengl/libs/Android.mk ...
including frameworks/native/opengl/tests/Android.mk ...
including frameworks/native/services/batteryservice/Android.mk ...
including frameworks/native/services/connectivitymanager/Android.mk ...
including frameworks/native/services/powermanager/Android.mk ...
including frameworks/native/services/sensorservice/Android.mk ...
including frameworks/native/services/surfaceflinger/Android.mk ...
including frameworks/opt/emoji/Android.mk ...
including hardware/akm/AK8975_FS/akmdfs/Android.mk ...
including hardware/akm/AK8975_FS/libsensors/Android.mk ...
including hardware/broadcom/libbt/Android.mk ...
including hardware/broadcom/wlan/bcmdhd/Android.mk ...
including hardware/invensense/Android.mk ...
including hardware/libhardware/Android.mk ...
including hardware/libhardware_legacy/Android.mk ...
including hardware/qcom/bt/Android.mk ...
including hardware/qcom/camera/Android.mk ...
including hardware/qcom/display/Android.mk ...
including hardware/qcom/fm/Android.mk ...
including hardware/qcom/keymaster/Android.mk ...
including hardware/qcom/media/Android.mk ...
including hardware/qcom/power/Android.mk ...
including hardware/qcom/wlan/qcwcn/Android.mk ...
including hardware/ril/libril/Android.mk ...
including hardware/ril/librilutils/Android.mk ...
including hardware/ril/reference-ril/Android.mk ...
including hardware/ril/rild/Android.mk ...
including hardware/samsung_slsi/exynos5/Android.mk ...
including hardware/ti/omap3/Android.mk ...
including hardware/ti/omap4xxx/Android.mk ...
including hardware/ti/wlan/mac80211/Android.mk ...
including hardware/ti/wpan/Android.mk ...
including prebuilts/tools/linux-x86/sdl/Android.mk ...
including sdk/emulator/mksdcard/Android.mk ...
including sdk/emulator/opengl/Android.mk ...
including sdk/emulator/qtools/Android.mk ...
including system/core/Android.mk ...
including system/extras/ext4_utils/Android.mk ...
including system/media/audio_route/Android.mk ...
including system/media/audio_utils/Android.mk ...
including system/media/camera/src/Android.mk ...
including system/media/camera/tests/Android.mk ...
including system/security/keystore/Android.mk ...
including system/security/softkeymaster/Android.mk ...
including system/vold/Android.mk ...
including ubuntu/assets/Android.mk ...
including ubuntu/libhybris/compat/camera/Android.mk ...
including ubuntu/libhybris/compat/input/Android.mk ...
including ubuntu/libhybris/compat/media/Android.mk ...
including ubuntu/libhybris/compat/surface_flinger/Android.mk ...
including ubuntu/libhybris/compat/ui/Android.mk ...
including ubuntu/platform-api/android/hybris/Android.mk ...
including ubuntu/upstart-property-watcher/Android.mk ...
No private recovery resources for TARGET_DEVICE falcon
build/core/Makefile:32: warning: overriding commands for target « /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/egl/egl.cfg »
build/core/base_rules.mk:529: warning: overriding commands for target « /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/egl/egl.cfg »
build/core/Makefile:32: attention : warning: overriding commands for target « /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/bin/rild »
build/core/base_rules.mk:529: warning : old commands ignored for target « /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/bin/rild »
build/core/Makefile:32: attention : warning: overriding commands for target « /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/libril.so »
build/core/base_rules.mk:529: warning : old commands ignored for target « /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/libril.so »
device/motorola/msm8226-common/mkbootimg.mk:41: warning: overriding commands for target « /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/boot.img »
build/core/Makefile:489: warning : old commands ignored for target « /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/boot.img »
make -C kernel/motorola/msm8226 O=/media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /media/nas/EXTRA/Ubuntu_Touch/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= msm8226_mmi_defconfig
make[1]: openning the directory « /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 »
Target Ubuntu Touch ram disk: /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/ramdisk.img
GEN /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: leaving the directory « /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 »
make -C kernel/motorola/msm8226 O=/media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /media/nas/EXTRA/Ubuntu_Touch/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
make[1]: openning the directory « /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 »
CHK include/linux/version.h
make[1]: leaving the directory « /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 »
make -C kernel/motorola/msm8226 O=/media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /media/nas/EXTRA/Ubuntu_Touch/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" zImage
build/tools/generate-notice-files.py /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/NOTICE.txt /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/NOTICE_FILES/src
make[1]: openning the directory « /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 »
Combining NOTICE files into HTML
Combining NOTICE files into text
GEN /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
GEN /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 as source for kernel
CHK include/generated/utsrelease.h
make[3]: « include/generated/mach-types.h » is up-to-date.
CALL /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226/scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
Downloading ubuntu-touch-generic-initrd version 0.73
Kernel: arch/arm/boot/Image is ready
SHIPPED arch/arm/boot/compressed/ashldi3.S
AS arch/arm/boot/compressed/ashldi3.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: leaving the directory « /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 »
make -C kernel/motorola/msm8226 O=/media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /media/nas/EXTRA/Ubuntu_Touch/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" modules
make[1]: openning the directory « /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 »
GEN /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 as source for kernel
CHK include/generated/utsrelease.h
make[3]: « include/generated/mach-types.h » is up-to-date.
CALL /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226/scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 3 modules
make[1]: quittant le répertoire « /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 »
make -C kernel/motorola/msm8226 O=/media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE=" /media/nas/EXTRA/Ubuntu_Touch/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" modules_install
make[1]: openning the directory « /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 »
INSTALL drivers/media/radio/radio-iris-transport.ko
INSTALL drivers/net/wireless/prima/wlan.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
DEPMOD 3.4.96-gbad4af5-dirty
make[1]: leaving the directory « /media/nas/EXTRA/Ubuntu_Touch/kernel/motorola/msm8226 »
mdpath=`find /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /media/nas/EXTRA/Ubuntu_Touch/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-strip --strip-unneeded $i; mv $i /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/modules/; done; fi
mdpath=`find /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
mkdir -p /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/modules/pronto
mv /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/modules/wlan.ko /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/modules/pronto/pronto_wlan.ko
ln -sf /system/lib/modules/pronto/pronto_wlan.ko /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/modules/wlan.ko
mdpath=`find /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /media/nas/EXTRA/Ubuntu_Touch/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-strip --strip-unneeded $i; mv $i /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/modules/; done; fi
mdpath=`find /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
target Prebuilt: (/media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/kernel)
Start DT image: /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/dt.img
mkdir -p /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot; /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p1.dtb ./kernel/motorola/msm8226/arch/arm/boot/dts/msm8226-falcon-p1.dts; cat /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/zImage /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p1.dtb > /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p1-zImage; /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2b1.dtb ./kernel/motorola/msm8226/arch/arm/boot/dts/msm8226-falcon-p2b1.dts; cat /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/zImage /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2b1.dtb > /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2b1-zImage; /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2b.dtb ./kernel/motorola/msm8226/arch/arm/boot/dts/msm8226-falcon-p2b.dts; cat /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/zImage /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2b.dtb > /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2b-zImage; /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2.dtb ./kernel/motorola/msm8226/arch/arm/boot/dts/msm8226-falcon-p2.dts; cat /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/zImage /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2.dtb > /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2-zImage; /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2-v2.dtb ./kernel/motorola/msm8226/arch/arm/boot/dts/msm8226-falcon-p2-v2.dts; cat /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/zImage /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2-v2.dtb > /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p2-v2-zImage; /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p3c.dtb ./kernel/motorola/msm8226/arch/arm/boot/dts/msm8226-falcon-p3c.dts; cat /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/zImage /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p3c.dtb > /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/msm8226-falcon-p3c-zImage;
----- Making recovery image ------
Copying baseline ramdisk...
Modifying ramdisk contents...
mkdir -p /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/recovery/root/system/bin
Modifying default.prop
sed -i 's/ro.build.date.utc=.*/ro.build.date.utc=0/g' /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/recovery/root/default.prop
sed -i 's/ro.adb.secure=1//g' /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/recovery/root/default.prop
----- Made recovery filesystem --------/media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/recovery/root
----- Making uncompressed recovery ramdisk ------
/media/nas/EXTRA/Ubuntu_Touch/out/host/linux-x86/bin/mkbootfs /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/recovery/root > /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/ramdisk-recovery.cpio
----- Making recovery ramdisk ------
/media/nas/EXTRA/Ubuntu_Touch/out/host/linux-x86/bin/minigzip < /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/ramdisk-recovery.cpio > /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/ramdisk-recovery.img
Target dt image: /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/dt.img
DTB combiner:
Input directory: '/media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/obj/KERNEL_OBJ/arch/arm/boot/'
Output file: '/media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/dt.img'
Found file: msm8226-falcon-p2.dtb ... chipset: 145, rev: 33280, platform: 66, subtype: 0
Found file: msm8226-falcon-p2-v2.dtb ... chipset: 145, rev: 164352, platform: 66, subtype: 0
Found file: msm8226-falcon-p2b1.dtb ... chipset: 145, rev: 164529, platform: 66, subtype: 0
Found file: msm8226-falcon-p3c.dtb ... chipset: 145, rev: 164800, platform: 66, subtype: 0
Found file: msm8226-falcon-p2b.dtb ... chipset: 145, rev: 164528, platform: 66, subtype: 0
Found file: msm8226-falcon-p1.dtb ... chipset: 145, rev: 33024, platform: 66, subtype: 0
=> Found 6 unique DTB(s)
Generating master DTB... completed
Made DT image: /media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/dt.img
----- Making recovery image ------
usage: mkbootimg
--kernel <filename>
--ramdisk <filename>
[ --second <2ndbootloader-filename> ]
[ --cmdline <kernel-commandline> ]
[ --board <boardname> ]
[ --base <address> ]
[ --pagesize <pagesize> ]
-o|--output <filename>
make: *** [/media/nas/EXTRA/Ubuntu_Touch/out/target/product/falcon/recovery.img] Error 1
I hope you'll be luckier as me ...
Thanks you !
PS :
my roomservice.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project name="aosp/platform/hardware/qcom/audio" />
<remove-project name="aosp/platform/hardware/qcom/display" />
<remove-project name="aosp/platform/hardware/qcom/media" />
<remove-project name="aosp/platform/hardware/qcom/keymaster" />
<project name="razrqcom-dev-team/android_device_motorola_qcom-common" path="device/motorola/qcom-common" remote="github" revision="kitkat" />
<project name="CyanogenMod/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="cm-11.0" />
<project name="razrqcom-dev-team/android_device_motorola_falcon" path="device/motorola/falcon" remote="github" revision="cm-11.0" />
<project name="razrqcom-dev-team/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_hardware_qcom_display-caf-new" path="hardware/qcom/display" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_hardware_qcom_media-caf-new" path="hardware/qcom/media" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-11.0" />
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_hardware_qcom_keymaster" path="hardware/qcom/keymaster" remote="github" revision="cm-11.0" />
</manifest>
EDIT :
I fix it by modifing the /device/motorola/msm8226-common/mkbootimg.mk like this :
Code:
LOCAL_PATH := $(call my-dir)
## Don't change anything under here. The variables are named MSM8226_whatever
## on purpose, to avoid conflicts with similarly named variables at other
## parts of the build environment
## Imported from the original makefile...
KERNEL_CONFIG := $(KERNEL_OUT)/.config
MSM8226_DTS_NAMES := msm8226
MSM8226_DTS_FILES = $(wildcard $(TOP)/$(TARGET_KERNEL_SOURCE)/arch/arm/boot/dts/msm8226-falcon*.dts)
MSM8226_DTS_FILE = $(lastword $(subst /, ,$(1)))
DTB_FILE = $(addprefix $(KERNEL_OUT)/arch/arm/boot/,$(patsubst %.dts,%.dtb,$(call MSM8226_DTS_FILE,$(1))))
ZIMG_FILE = $(addprefix $(KERNEL_OUT)/arch/arm/boot/,$(patsubst %.dts,%-zImage,$(call MSM8226_DTS_FILE,$(1))))
KERNEL_ZIMG = $(KERNEL_OUT)/arch/arm/boot/zImage
DTC = $(KERNEL_OUT)/scripts/dtc/dtc
define append-msm8226-dtb
mkdir -p $(KERNEL_OUT)/arch/arm/boot;\
$(foreach MSM8226_DTS_NAME, $(MSM8226_DTS_NAMES), \
$(foreach d, $(MSM8226_DTS_FILES), \
$(DTC) -p 1024 -O dtb -o $(call DTB_FILE,$(d)) $(d); \
cat $(KERNEL_ZIMG) $(call DTB_FILE,$(d)) > $(call ZIMG_FILE,$(d));))
endef
## Build and run dtbtool
DTBTOOL := $(HOST_OUT_EXECUTABLES)/dtbToolCM$(HOST_EXECUTABLE_SUFFIX)
INSTALLED_DTIMAGE_TARGET := $(PRODUCT_OUT)/dt.img
$(INSTALLED_DTIMAGE_TARGET): $(DTBTOOL) $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr $(INSTALLED_KERNEL_TARGET)
@echo -e ${CL_CYN}"Start DT image: [email protected]"${CL_RST}
$(call append-msm8226-dtb)
$(call pretty,"Target dt image: $(INSTALLED_DTIMAGE_TARGET)")
$(hide) $(DTBTOOL) -o $(INSTALLED_DTIMAGE_TARGET) -s $(BOARD_KERNEL_PAGESIZE) -p $(KERNEL_OUT)/scripts/dtc/ $(KERNEL_OUT)/arch/arm/boot/
@echo -e ${CL_CYN}"Made DT image: [email protected]"${CL_RST}
## Overload bootimg generation: Same as the original, + --dt arg
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(INSTALLED_DTIMAGE_TARGET)
$(call pretty,"Target boot image: [email protected]")
#$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output [email protected]
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
@echo -e ${CL_CYN}"Made boot image: [email protected]"${CL_RST}
## Overload recoveryimg generation: Same as the original, + --dt arg
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) \
$(recovery_ramdisk) \
$(recovery_kernel)
@echo -e ${CL_CYN}"----- Making recovery image ------"${CL_RST}
#$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output [email protected]
$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
@echo -e ${CL_CYN}"Made recovery image: [email protected]"${CL_RST}
I knew this fix before but I don't know if it will work...

Hopefully we will see it working, I'm not a developer, so I can't tell you
Sent from my XT1033 using XDA Free mobile app

I'm still a complete noob at this, i couldn't even get the stock kernel compiling w/o modifications, but could you please translate in english these french output so i may take a look? Thanks in advance
Sent from me using my tablet using an app.

I see the output text in English...

There are some lines in french :/
Sent from me using my tablet using an app.

I'll translate x)
Sent from my Moto G using XDA Free mobile app

Stay tune
Sent from my Moto G using Cyanogenmod 11

I speak a bit of French
attention : écrasement des commandes pour la cible
warning (attention): crushing commands for target?!
anciennes commandes ignorées pour la cible
ignored commands
quittant le répertoire
quitting register (library)

I'll translate in 2 hours
Sent from my Moto G using XDA Free mobile app
EDIT : TRANSLATED

I'll be happy to test this when it'll be available!

eagleofdeath13 said:
I'll be happy to test this when it'll be available!
Click to expand...
Click to collapse
I'll upload the test build today
Sent from my Moto G using XDA Free mobile app

h2o64 said:
I'll upload the test build today
Sent from my Moto G using XDA Free mobile app
Click to expand...
Click to collapse
Will it boot at least?

S0bes said:
Will it boot at least?
Click to expand...
Click to collapse
I don't know ^^ but if it is not... The community is here de solved this!
Sent from my Moto G using XDA Free mobile app

Nice Try! Keep it up

h2o64 said:
I don't know ^^ but if it is not... The community is here de solved this!
Sent from my Moto G using XDA Free mobile app
Click to expand...
Click to collapse
You should find some dev with experience willing to help you, I've seen many Ubuntu projects that never worked. Do you know if at least someone achieved a working image for any phone at all? Cause I doubt things will just get solved by throwing your build here.

fermasia said:
You should find some dev with experience willing to help you, I've seen many Ubuntu projects that never worked. Do you know if at least someone achieved a working image for any phone at all? Cause I doubt things will just get solved by throwing your build here.
Click to expand...
Click to collapse
Building IS FOR FUN ! I've work. And I put my results there. Maybe some awesome devs will find this topic. If not ... I DON'T CARE.
But if you guys know someone who can help this project. Please help him to contact me (I'm the first dev for Ubuntu Touch on falcon).

Any news?

eagleofdeath13 said:
Any news?
Click to expand...
Click to collapse
I recommand you to look at here : [Ubuntu Touch - Utopic][PORT][WIP][Test-BUILD] Ubuntu Touch for falcon ! :laugh:

Thanks
Sent from my XT1032 using XDA Premium 4 mobile app

is msm8916-common necessary for tomato
hi everyone,
i am trying to build ubuntu touch for tomato (32bit kk cm-11.0)
but it has no repository for cm-11.0 msm8916-common (32bit) but only cm-12.1 and cm-13 (64bit).
https://github.com/CyanogenMod/android_device_cyanogen_msm8916-common
what to do guys help.....

Related

Need help from dev ! Maybe I will be one of you ?

Hello, all.
First, I know that thread shoud be in "N5 Q&A, Help & Troubleshooting" but I affraid that no one reply...
I'm learning how to "port from source" a ROM for my device (LG G2).
I post there because the Nexus 5 is very similar.
My choose is the PSX ROM from the Nexus 4 and soon for the Nexus 5.
I have the authorization from the owner @ctfrommn, thank you to him, but I'm starting to bother him a lot with my questions...
So I hope that someone can have a lot and try to help me to learn.
This what I have done since now but I have a error that I don't know how to solve.
ANY idea, information, teaching is really welcome !
Thank you.
*repo sync :
repo init -u https://github.com/PSX-PureSpeed/android_manifest.git -b kk-4.4
*I have added that to the manifest for my LG G2 :
<project path="device/lge/g2-common" name="CyanogenMod/android_device_lge_g2-common" remote="cm" revision="cm-10.2" />
<project path="device/lge/d802" name="CyanogenMod/android_device_lge_d802" remote="cm" revision="cm-10.2" />
<project path="hardware/qcom/display-mdss" name="CyanogenMod/android_hardware_qcom_display-mdss" remote="cm" revision="cm-10.2" />
<project path="hardware/qcom/media-v4l2" name="CyanogenMod/android_hardware_qcom_media-v4l2" remote="cm" revision="cm-10.2" />
<project path="kernel/lge/msm8974" name="CyanogenMod/android_kernel_lge_msm8974" remote="cm" revision="cm-10.2" />
*So there, I have all stuffs to work.
*Under "psx/vendor/psx" I have edit the "vendorsetup.sh"
Add : add_lunch_combo d802-user
* Under "psx/vendor/psx/products" I have create a "d802.mk" file with that :
# Inherit AOSP device configuration for hammerhead.
$(call inherit-product, device/lge/d802/d802.mk)
# Inherit common product files.
$(call inherit-product, vendor/psx/products/common.mk)
# Setup device specific product configuration.
PRODUCT_NAME := d802
PRODUCT_BRAND := LGE
PRODUCT_DEVICE := d802
PRODUCT_MODEL := LG G2
PRODUCT_MANUFACTURER := LGE
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=hammerhead BUILD_FINGERPRINT="google/hammerhead/hammerhead:4.4/KRT16M/893803:user/release-keys" PRIVATE_BUILD_DESC="hammerhead-user 4.4 KRT16M 893803 release-keys"
*I have create a folder "d802" under psx/vendor/lge and add that :
https://github.com/rohanmathur/vendor_lge_d802
*I have edit the file "AndroidProducts.mk" under "psx/vendor/psx" to get that :
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/psx_emulator.mk \
$(LOCAL_DIR)/psx_mako.mk \
$(LOCAL_DIR)/psx_hammerhead.mk \
$(LOCAL_DIR)/d802.mk \
$(LOCAL_DIR)/psx_flo.mk
*I have edit the file "d802.mk" under "psx/device/lge/d802" and rename :
PRODUCT_NAME := full_d802
to
PRODUCT_NAME := d802
*in a terminal under "psx/" I do :
. build/envsetup.sh
lunch
*And choose "13" that is my "d802-user"
*This is the terminal return :
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[vendor/psx/products/d802.mk]]: "frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk" does not exist. Stop.
** Don't have a product spec for: 'd802'
** Do you have the right repo manifest?
*So I have add " phone-xxhdpi-2048-dalvik-heap.mk" in " frameworks/native/build/"
*in a terminal under "psx/" I do :
. build/envsetup.sh
lunch
*And choose "13" that is my "d802-user"
*This is the terminal return :
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[vendor/psx/products/d802.mk]]: "frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk" does not exist. Stop.
** Don't have a product spec for: 'd802'
** Do you have the right repo manifest?
*So I have add " phone-xxhdpi-2048-hwui-memory.mk" in " frameworks/native/build/"
*in a terminal under "psx/" I do :
. build/envsetup.sh
lunch
*And choose "13" that is my "d802-user"
*There is no more error !"
make otapackage -j8
*And the terminal return :
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4
TARGET_PRODUCT=d802
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-13-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KRT16M
OUT_DIR=out
============================================
Checking build tools versions...
build/core/binary.mk:427: target `out/target/product/d802/obj/EXECUTABLES/skia_test_intermediates/MatrixTest.o' given more than once in the same rule.
find: `src': No such file or directory
frameworks/uiautomator/Android.mk:82: warning: overriding commands for target `out/target/common/obj/PACKAGING/uiautomator-checkapi-last-timestamp'
frameworks/testing/uiautomator/library/Android.mk:82: warning: ignoring old commands for target `out/target/common/obj/PACKAGING/uiautomator-checkapi-last-timestamp'
frameworks/uiautomator/Android.mk:99: warning: overriding commands for target `out/target/common/obj/PACKAGING/uiautomator-checkapi-current-timestamp'
frameworks/testing/uiautomator/library/Android.mk:99: warning: ignoring old commands for target `out/target/common/obj/PACKAGING/uiautomator-checkapi-current-timestamp'
frameworks/uiautomator/Android.mk:111: warning: overriding commands for target `update-uiautomator-api'
frameworks/testing/uiautomator/library/Android.mk:111: warning: ignoring old commands for target `update-uiautomator-api'
make: *** hardware/qcom/: Is a directory. Stop.
*I have no idea on how to solve it...
You said yourself that this thread should go into Q&A, so let's move it there
Also, you file "MatrixTest.o" seems to be builded twice (or more), grep for it, see where it's "defined"/called. if it's more than once, remove one (the false one ofc) and try to re-compile

dtbtool error (read i have some other questions too)

Hi there, ive almost posted atleast 5 times for errors and im really thankfull for all the help i got.
im building pac-5.1 from source from my phone. my phones manufacturer (lenovo) did not release the complete source so im using the kernel of surnia (moto e 2015 4g) which also has the same kernel. my mkboot.img looks like this -
Code:
# Use prebuilt dt.img
INSTALLED_DTIMAGE_TARGET := $(PRODUCT_OUT)/dt.img
$(INSTALLED_DTIMAGE_TARGET):
@echo -e ${CL_CYN}"Start DT image: [email protected]"${CL_RST}
$(call append-dtb)
$(call pretty,"Target dt image: $(INSTALLED_DTIMAGE_TARGET)")
@echo -e ${CL_CYN}"Made DT image: [email protected]"${CL_RST}
## Overload bootimg generation: Same as the original, + --dt arg
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(INSTALLED_DTIMAGE_TARGET)
$(call pretty,"Target boot image: [email protected]")
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
@echo -e ${CL_CYN}"Made boot image: [email protected]"${CL_RST}
## Overload recoveryimg generation: Same as the original, + --dt arg
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) \
$(recovery_ramdisk) \
$(recovery_kernel)
@echo -e ${CL_CYN}"----- Making recovery image ------"${CL_RST}
$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
@echo -e ${CL_CYN}"Made recovery image: [email protected]"${CL_RST}
and moto e's like this -
Code:
LOCAL_PATH := $(call my-dir)
## Build and run dtbtool
[COLOR="Red"]DTBTOOL := $(HOST_OUT_EXECUTABLES)/dtbToolCM$(HOST_EXECUTABLE_SUFFIX)[/COLOR]
INSTALLED_DTIMAGE_TARGET := $(PRODUCT_OUT)/dt.img
$(INSTALLED_DTIMAGE_TARGET): $(DTBTOOL) $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr $(INSTALLED_KERNEL_TARGET)
$(call pretty,"Target dt image: $(INSTALLED_DTIMAGE_TARGET)")
$(hide) $(DTBTOOL) -2 -o $(INSTALLED_DTIMAGE_TARGET) -s $(BOARD_KERNEL_PAGESIZE) -p $(KERNEL_OUT)/scripts/dtc/ $(KERNEL_OUT)/arch/arm/boot/dts/
@echo -e ${CL_CYN}"Made DT image: [email protected]"${CL_RST}
## Overload bootimg generation: Same as the original, + --dt arg
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(INSTALLED_DTIMAGE_TARGET)
$(call pretty,"Target boot image: [email protected]")
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
@echo -e ${CL_CYN}"Made boot image: [email protected]"${CL_RST}
## Overload recoveryimg generation: Same as the original, + --dt arg
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) \
$(recovery_ramdisk) \
$(recovery_kernel)
@echo -e ${CL_CYN}"----- Making recovery image ------"${CL_RST}
$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
@echo -e ${CL_CYN}"Made recovery image: [email protected]"${CL_RST}
i had to remove the highlited part in my mkboot.img because of this error
Code:
make: *** No rule to make target '/ home/bassface/PAC/out/host/linux-x86/bin/dtbToolCM' necessary '/ home/bassface/PAC/out/target/product /a6000/dt.img '.
the rom succesfully compiles for 4+hours then stops saying it could not find dt.img in product/a6000 if i remove the
Code:
DTBTOOL := $(HOST_OUT_EXECUTABLES)/dtbToolCM$(HOST_EXECUTABLE_SUFFIX
line. i just deleted the entire out ditrectory and im recompiling i placed the dt.img in now. but i want to know whats causing this error. why dont i have the dtbtool? is it supposed to be downloaded seperately.? evem if the rom builds succesfully after copying it and pasting in the out directory. what am i supposed to do for it to copy automatically in the future, if someone else wants to make something using my source? thankyou
Did you solve this? I'm struggling with this too...
I know the dtbtool is in my repo...
Thanks in advance,
Yordi
I know this is quite old, but for people who have run into this problem like me, try adding this to your repo manifest. Adapt it according to the ROM you are building.
<project path="system/tools/dtbtool" name="android_system_tools_dtbtool" remote="lineage" />

[RESOLVED]Problem while building CM12 based ROM

Hello,
Today i tried to "do" a CM12 based ROM but i have a problem during the build.
i tried a hundred times but everytime, it fails...
Code:
/home/maxime/test/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/bin/ld: error: /home/maxime/test/out/host/linux-x86/obj32/EXECUTABLES/rsg-generator_support_intermediates/rsg_generator.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/bin/ld: error: /home/maxime/test/out/host/linux-x86/obj32/EXECUTABLES/rsg-generator_support_intermediates/spec.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../sysroot/usr/lib/../lib32/Scrt1.o(.text+0x28): error: undefined reference to 'main'
target thumb C++: libjni_pacprocessor <= frameworks/base/packages/services/PacProcessor/jni/com_android_pacprocessor_PacNative.cpp
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/././../home../maxime/test/..prebuilts/gcc//linux-armx86/arm-linux/arm--linux-androideabiandroideabi-4.8//bin/.bin/./libld/gcc/:arm- errorlinux-: /androideabi/home/4.8/maxime/..test/out/./target.//product../tf700t/./obj./arm/SHARED_LIBRARIES-linux/libjni_eglfence_intermediates-androideabi/jni_egl_fence.o/bin: /ld:file is error empty:
/home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_tinyplanet_intermediates/tinyplanet.o: file is empty
collect2: ld returned 1 exit status
target SharedLib: libjni_filtershow_filters (/home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/LINKED/libjni_filtershow_filters.so)
make: *** [/home/maxime/test/out/host/linux-x86/obj32/EXECUTABLES/rsg-generator_support_intermediates/rsg-generator_support] Erreur 1
make: *** Attente des tâches non terminées....
target thumb C++: libpac <= external/chromium-libpac/src/proxy_resolver_v8.cc
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/tinyplanet.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/kmeans.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/gradient.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/saturated.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/exposure.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/edge.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/contrast.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/hue.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/shadows.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/highlight.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/hsv.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/vibrance.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/geometry.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/negative.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/redEyeMath.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/fx.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/wbalance.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/redeye.o: file is empty
/home/maxime/test/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/filters/bwfilter.o: file is empty
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make: *** [/home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_eglfence_intermediates/LINKED/libjni_eglfence.so] Erreur 1
make: *** [/home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_filtershow_filters_intermediates/LINKED/libjni_filtershow_filters.so] Erreur 1
collect2: error: ld returned 1 exit status
make: *** [/home/maxime/test/out/target/product/tf700t/obj/SHARED_LIBRARIES/libjni_tinyplanet_intermediates/LINKED/libjni_tinyplanet.so] Erreur 1
frameworks/base/packages/services/PacProcessor/jni/jni_init.cpp:28:17: warning: unused parameter 'reserved' [-Wunused-parameter]
extern "C" jint JNI_OnLoad(JavaVM* vm, void* reserved) {
^
frameworks/base/packages/services/PacProcessor/jni/com_android_pacprocessor_PacNative.cpp:63:17: warning: unused parameter 'env' [-Wunused-parameter]
static jboolean com_android_pacprocessor_PacNative_createV8ParserNativeLocked(JNIEnv* env,
^
frameworks/base/packages/services/PacProcessor/jni/com_android_pacprocessor_PacNative.cpp:75:17: warning: unused parameter 'env' [-Wunused-parameter]
static jboolean com_android_pacprocessor_PacNative_destroyV8ParserNativeLocked(JNIEnv* env,
^
make: *** wait: Aucun processus enfant. Arrêt.
#### make failed to build some targets (02:05 (mm:ss)) ####
Thank you
maxou2600 said:
Code:
/home/maxime/test/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/bin/ld: error: /home/maxime/test/out/host/linux-x86/obj32/EXECUTABLES/rsg-generator_support_intermediates/rsg_generator.o: file is empty
...[/QUOTE]
Weird error. Have you tried "make clean" and rebuilding?
Click to expand...
Click to collapse
Thank you
Yep' i tried it unsuccessfully...
i Think that a lot of files were corrupted (Bad ADSL connection, with lot of FEC, HEC and CRC...)
I removed the "test" folder and resync all the files during the night (about 15-20GB)
Now after half an hour i have that error
Code:
/usr/bin/lzma : /home/maxime/test/out/target/product/tf700t/ramdisk-recovery.cpio: Aucun fichier ou dossier de ce type
make: *** [/home/maxime/test/out/target/product/tf700t/recovery.img] Erreur 1
make: *** Attente des tâches non terminées....
####make failed to build some targets (30:27 (mm:ss)) ####
in folder ~/test/out/target/product/tf700t i found a file called "ramdisk-recovery.img", i renamed it to "ramdisk-recovery.cpio" but i think it was not the same file because now i have this error.
Code:
mkdir -p /home/maxime/test/out/target/product/tf700t/obj/PACKAGING/recovery_patch_intermediates/
PATH=/home/maxime/test/out/host/linux-x86/bin:$PATH /home/maxime/test/out/host/linux-x86/bin/imgdiff /home/maxime/test/out/target/product/tf700t/boot.img /home/maxime/test/out/target/product/tf700t/recovery.img /home/maxime/test/out/target/product/tf700t/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
source and target don't have same number of chunks!
source chunks:
chunk 0: type 0 start 0 len 4253810
chunk 1: type 2 start 4253810 len 1161984
chunk 2: type 0 start 4927508 len 84
target chunks:
chunk 0: type 0 start 0 len 7227496
make: *** [/home/maxime/test/out/target/product/tf700t/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p] Erreur 1
make: *** Attente des tâches non terminées....
So, i "make clean" and "brunch" again. I tell you if the first error (No such File or directory) re-comes (no-reason )
yep' same as this morning :
Code:
/usr/bin/lzma : /home/maxime/test/out/target/product/tf700t/ramdisk-recovery.cpio: Aucun fichier ou dossier de ce type
make: *** [/home/maxime/test/out/target/product/tf700t/recovery.img] Erreur 1
make: *** Attente des tâches non terminées....
####make failed to build some targets (30:30 (mm:ss)) ####
EDIT : At the begin of the build i got some errors (I Don't know if it's a problem, i think it's not otherwise build stop like (Ramdisk-recovery.cpio error...) :
Code:
No private recovery resources for TARGET_DEVICE tf700t
"ebtables is disabled on this build"
After some research i think that the "ramdisk_recovery" isn't "created" during the build.
I changed the Recovery.mk in /device/asus/tf700t
The original
Code:
TF_BLOBIFIER := $(HOST_OUT_EXECUTABLES)/blobpack_tfp
LZMA_BIN := /usr/bin/lzma
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) \
$(recovery_ramdisk) \
$(TF_BLOBIFIER) \
$(recovery_kernel)
@echo ----- Compressing recovery ramdisk with lzma ------
rm -f $(recovery_uncompressed_ramdisk).lzma
$(LZMA_BIN) $(recovery_uncompressed_ramdisk)
$(hide) cp $(recovery_uncompressed_ramdisk).lzma $(recovery_ramdisk)
@echo ----- Making recovery image ------
$(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) --output [email protected]
$(TF_BLOBIFIER) [email protected] SOS [email protected]
@echo ----- Made recovery image -------- [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(TF_BLOBIFIER)
$(call pretty,"Target boot image: [email protected]")
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) --output [email protected]
$(TF_BLOBIFIER) [email protected] LNX [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
give me
Code:
/usr/bin/lzma : /home/maxime/test/out/target/product/tf700t/ramdisk-recovery.cpio: Aucun fichier ou dossier de ce type
make: *** [/home/maxime/test/out/target/product/tf700t/recovery.img] Erreur 1
make: *** Attente des tâches non terminées....
####make failed to build some targets (30:30 (mm:ss)) ####
and the modified
Code:
TF_BLOBIFIER := $(HOST_OUT_EXECUTABLES)/blobpack_tfp
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) \
$(recovery_ramdisk) \
$(TF_BLOBIFIER) \
$(recovery_kernel)
@echo ----- Making recovery image ------
$(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) --output [email protected]
$(TF_BLOBIFIER) [email protected] SOS [email protected]
@echo ----- Made recovery image -------- [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(TF_BLOBIFIER)
$(call pretty,"Target boot image: [email protected]")
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) --output [email protected]
$(TF_BLOBIFIER) [email protected] LNX [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
give me
Code:
----- Making recovery image ------
/home/maxime/test/out/host/linux-x86/bin/mkbootimg --kernel /home/maxime/test/out/target/product/tf700t/kernel --ramdisk /home/maxime/test/out/target/product/tf700t/ramdisk-recovery.img --cmdline "androidboot.selinux=enforcing" --base 0x10000000 --output /home/maxime/test/out/target/product/tf700t/recovery.img.orig
/home/maxime/test/out/host/linux-x86/bin/blobpack_tfp /home/maxime/test/out/target/product/tf700t/recovery.img SOS /home/maxime/test/out/target/product/tf700t/recovery.img.orig
Found 1 partitions as commandline arguments
Partname: SOS Filename: /home/maxime/test/out/target/product/tf700t/recovery.img.orig
Size: 60
1 partitions starting at offset 0x3C
Offset: 76
----- Made recovery image -------- /home/maxime/test/out/target/product/tf700t/recovery.img
/home/maxime/test/out/target/product/tf700t/recovery.img maxsize=8562048 blocksize=4224 total=9359464 reserve=88704
error: /home/maxime/test/out/target/product/tf700t/recovery.img too large (9359464 > [8650752 - 88704])
make: *** [/home/maxime/test/out/target/product/tf700t/recovery.img] Erreur 1
make: *** Destruction du fichier « /home/maxime/test/out/target/product/tf700t/recovery.img »
#### make failed to build some targets (01:25 (mm:ss)) ####
Ideas ?
maxou2600 said:
Thank you
Yep' i tried it unsuccessfully...
i Think that a lot of files were corrupted (Bad ADSL connection, with lot of FEC, HEC and CRC...)
I removed the "test" folder and resync all the files during the night (about 15-20GB)
Now after half an hour i have that error
Code:
/usr/bin/lzma : /home/maxime/test/out/target/product/tf700t/ramdisk-recovery.cpio: Aucun fichier ou dossier de ce type
make: *** [/home/maxime/test/out/target/product/tf700t/recovery.img] Erreur 1
make: *** Attente des tâches non terminées....
####make failed to build some targets (30:27 (mm:ss)) ####
in folder ~/test/out/target/product/tf700t i found a file called "ramdisk-recovery.img", i renamed it to "ramdisk-recovery.cpio" but i think it was not the same file because now i have this error.
Code:
mkdir -p /home/maxime/test/out/target/product/tf700t/obj/PACKAGING/recovery_patch_intermediates/
PATH=/home/maxime/test/out/host/linux-x86/bin:$PATH /home/maxime/test/out/host/linux-x86/bin/imgdiff /home/maxime/test/out/target/product/tf700t/boot.img /home/maxime/test/out/target/product/tf700t/recovery.img /home/maxime/test/out/target/product/tf700t/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
source and target don't have same number of chunks!
source chunks:
chunk 0: type 0 start 0 len 4253810
chunk 1: type 2 start 4253810 len 1161984
chunk 2: type 0 start 4927508 len 84
target chunks:
chunk 0: type 0 start 0 len 7227496
make: *** [/home/maxime/test/out/target/product/tf700t/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p] Erreur 1
make: *** Attente des tâches non terminées....
So, i "make clean" and "brunch" again. I tell you if the first error (No such File or directory) re-comes (no-reason )
yep' same as this morning :
Code:
/usr/bin/lzma : /home/maxime/test/out/target/product/tf700t/ramdisk-recovery.cpio: Aucun fichier ou dossier de ce type
make: *** [/home/maxime/test/out/target/product/tf700t/recovery.img] Erreur 1
make: *** Attente des tâches non terminées....
####make failed to build some targets (30:30 (mm:ss)) ####
EDIT : At the begin of the build i got some errors (I Don't know if it's a problem, i think it's not otherwise build stop like (Ramdisk-recovery.cpio error...) :
Code:
No private recovery resources for TARGET_DEVICE tf700t
"ebtables is disabled on this build"
After some research i think that the "ramdisk_recovery" isn't "created" during the build.
I changed the Recovery.mk in /device/asus/tf700t
The original
Code:
TF_BLOBIFIER := $(HOST_OUT_EXECUTABLES)/blobpack_tfp
LZMA_BIN := /usr/bin/lzma
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) \
$(recovery_ramdisk) \
$(TF_BLOBIFIER) \
$(recovery_kernel)
@echo ----- Compressing recovery ramdisk with lzma ------
rm -f $(recovery_uncompressed_ramdisk).lzma
$(LZMA_BIN) $(recovery_uncompressed_ramdisk)
$(hide) cp $(recovery_uncompressed_ramdisk).lzma $(recovery_ramdisk)
@echo ----- Making recovery image ------
$(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) --output [email protected]
$(TF_BLOBIFIER) [email protected] SOS [email protected]
@echo ----- Made recovery image -------- [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(TF_BLOBIFIER)
$(call pretty,"Target boot image: $@")
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) --output [email protected]
$(TF_BLOBIFIER) [email protected] LNX [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
give me
Code:
/usr/bin/lzma : /home/maxime/test/out/target/product/tf700t/ramdisk-recovery.cpio: Aucun fichier ou dossier de ce type
make: *** [/home/maxime/test/out/target/product/tf700t/recovery.img] Erreur 1
make: *** Attente des tâches non terminées....
####make failed to build some targets (30:30 (mm:ss)) ####
and the modified
Code:
TF_BLOBIFIER := $(HOST_OUT_EXECUTABLES)/blobpack_tfp
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) \
$(recovery_ramdisk) \
$(TF_BLOBIFIER) \
$(recovery_kernel)
@echo ----- Making recovery image ------
$(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) --output [email protected]
$(TF_BLOBIFIER) [email protected] SOS [email protected]
@echo ----- Made recovery image -------- [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(TF_BLOBIFIER)
$(call pretty,"Target boot image: [email protected]")
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) --output [email protected]
$(TF_BLOBIFIER) [email protected] LNX [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
give me
Code:
----- Making recovery image ------
/home/maxime/test/out/host/linux-x86/bin/mkbootimg --kernel /home/maxime/test/out/target/product/tf700t/kernel --ramdisk /home/maxime/test/out/target/product/tf700t/ramdisk-recovery.img --cmdline "androidboot.selinux=enforcing" --base 0x10000000 --output /home/maxime/test/out/target/product/tf700t/recovery.img.orig
/home/maxime/test/out/host/linux-x86/bin/blobpack_tfp /home/maxime/test/out/target/product/tf700t/recovery.img SOS /home/maxime/test/out/target/product/tf700t/recovery.img.orig
Found 1 partitions as commandline arguments
Partname: SOS Filename: /home/maxime/test/out/target/product/tf700t/recovery.img.orig
Size: 60
1 partitions starting at offset 0x3C
Offset: 76
----- Made recovery image -------- /home/maxime/test/out/target/product/tf700t/recovery.img
/home/maxime/test/out/target/product/tf700t/recovery.img maxsize=8562048 blocksize=4224 total=9359464 reserve=88704
error: /home/maxime/test/out/target/product/tf700t/recovery.img too large (9359464 > [8650752 - 88704])
make: *** [/home/maxime/test/out/target/product/tf700t/recovery.img] Erreur 1
make: *** Destruction du fichier « /home/maxime/test/out/target/product/tf700t/recovery.img »
#### make failed to build some targets (01:25 (mm:ss)) ####
Ideas ?
Click to expand...
Click to collapse
Yes, I see exactly what is going on here .....
You need to install lzma on your host PC .....
So in /usr/bin/ you need to find a file called 'lzma'
Removing this from the recovery.mk ...
Code:
LZMA_BIN := /usr/bin/lzma
Has made the recovery to large to fix in the space provided by the device''s recovery partition ......
Code:
error: /home/maxime/test/out/target/product/tf700t/recovery.img too large (9359464 > [8650752 - 88704])
Thx Josh
Hello, I found the solution (thanks to _that in #TWRP IRC )
lzma was in usr/bin, no problem
the problem was that the ramdisk_recovery.cpio file wasn't found, the solution was to edit some lines (in red)
Code:
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) \
$(recovery_[COLOR="Red"]uncompressed_[/COLOR]ramdisk) \
$(TF_BLOBIFIER) \
$(recovery_kernel)
[user=279333]@ECHO[/user] ----- Compressing recovery ramdisk with lzma ------
rm -f $(recovery_uncompressed_ramdisk).lzma
$(LZMA_BIN) $(recovery_uncompressed_ramdisk)
$(hide) cp $(recovery_uncompressed_ramdisk).lzma $(recovery_[COLOR="Red"]uncompressed_[/COLOR]ramdisk)
[user=279333]@ECHO[/user] ----- Making recovery image ------
$(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) --output [email protected]
$(TF_BLOBIFIER) [email protected] SOS [email protected]
[user=279333]@ECHO[/user] ----- Made recovery image -------- [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
After that, just needed to erase .ccache folder and make clean. And then recovery.img compiled successfully.
(sorry for bad english).
I will edit the title because it's resolved
please help
maxou2600 said:
Hello, I found the solution (thanks to _that in #TWRP IRC )
lzma was in usr/bin, no problem
the problem was that the ramdisk_recovery.cpio file wasn't found, the solution was to edit some lines (in red)
Code:
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) \
$(recovery_[COLOR="Red"]uncompressed_[/COLOR]ramdisk) \
$(TF_BLOBIFIER) \
$(recovery_kernel)
[user=279333]@ECHO[/user] ----- Compressing recovery ramdisk with lzma ------
rm -f $(recovery_uncompressed_ramdisk).lzma
$(LZMA_BIN) $(recovery_uncompressed_ramdisk)
$(hide) cp $(recovery_uncompressed_ramdisk).lzma $(recovery_[COLOR="Red"]uncompressed_[/COLOR]ramdisk)
[user=279333]@ECHO[/user] ----- Making recovery image ------
$(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) --output [email protected]
$(TF_BLOBIFIER) [email protected] SOS [email protected]
[user=279333]@ECHO[/user] ----- Made recovery image -------- [email protected]
$(hide) $(call assert-max-image-size,[email protected],$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
After that, just needed to erase .ccache folder and make clean. And then recovery.img compiled successfully.
(sorry for bad english).
I will edit the title because it's resolved
Click to expand...
Click to collapse
i also met the problem that boot.img too large when i compile recovery.img. how do you solve it. sorry for my ban english
Hello, I erased ccache folders and i make clean. After that, all was working fine
i fixed it.but also thank you

Problems with building LineageOS 14.1 on my own

At the beginning, great thanks to Comzzmy13 for his work for official LineageOS.
I don't know if it is suitable to post this thread here. If it is not that proper, please tell me!
I want to build LineageOS on my computer and met some problems. I need some help now...
Thanks all the guys coming into this thread!
I followed the official guide to get all the sources, vendor, device, kernel from GitHub. But after running 'brunch libra'. after several minutes, errors occurred.
Environment: Ubuntu 17.10 on a real machine (dual systems with windows 10)
Tools should be enough but I'm not so sure and I just follow the guide.
Firstly, just in case...
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20171214_170732-UNOFFICIAL-libra
TARGET_PRODUCT=lineage_libra
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-17-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/ippfcox/android/lineage/out
============================================
make: Entering directory '/home/ippfcox/android/lineage'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20171214_170732-UNOFFICIAL-libra
TARGET_PRODUCT=lineage_libra
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-17-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/ippfcox/android/lineage/out
============================================
Code:
/home/ippfcox/android/lineage/out/build-lineage_libra.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20171214_170745-UNOFFICIAL-libra
TARGET_PRODUCT=lineage_libra
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-17-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/ippfcox/android/lineage/out
============================================
The build log is too long so I just choose the error lines
these seems not the key errors...
Code:
Checking build tools versions...
find: ‘/home/ippfcox/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: 没有那个文件或目录
PRODUCT_COPY_FILES device/xiaomi/libra/audio/audio_effects.conf:system/etc/audio_effects.conf ignored.
build/core/Makefile:54: Duplicate header copy: /home/ippfcox/android/lineage/out/target/product/libra/obj/include/time-services/time_genoff.h
build/core/Makefile:54: Defined in: device/xiaomi/libra/time-services/Android.mk vendor/qcom/opensource/time-services/Android.mk
The Chinese "没有那个文件或目录" == "No such file or dictionary"
and then
Code:
make: Leaving directory '/home/ippfcox/android/lineage/kernel/xiaomi/msm8992'
make: Entering directory '/home/ippfcox/android/lineage/kernel/xiaomi/msm8992'
/home/ippfcox/android/lineage/kernel/xiaomi/msm8992/Makefile:801: *** 多个目标匹配。 停止。
Makefile:130: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
The Chinese "多个目标匹配。停止。" == "multiple target patterns. stop."
and the last one
Code:
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Please give me some advice! Thanks
I need more info, it is all error log?
I use this guide to build lineageOS: https://wiki.lineageos.org/devices/libra/build
Enviado desde mi Mi-4c mediante Tapatalk
groche97 said:
I need more info, it is all error log?
I use this guide to build lineageOS: https://wiki.lineageos.org/devices/libra/build
Enviado desde mi Mi-4c mediante Tapatalk
Click to expand...
Click to collapse
Yeah, this is also the guide I used. I will post the whole error log below, wait a moment.
@groche97 sorry for waiting so long. Something went wrong with my Internet connection...
before building, I run repo sync.
All the logs are attached below, 241 lines. Thanks!
All right....I will try to use Ubuntu 16.04 to build again...
Ippfcox said:
All right....I will try to use Ubuntu 16.04 to build again...
Click to expand...
Click to collapse
have you build kernel?
i have same error
orfik said:
have you build kernel?
i have same error
Click to expand...
Click to collapse
I think the error of mine is generated when building the kernel. Now I'm trying to build LineageOS 15.1, there is also this error... I will try again after some days.
I have googled this error, maybe you can try to upgrade the build tools? I don't know exactly.
And maybe you can just ask the author cozzmy13. But before that, I think we should try to fix by ourselves.
Ippfcox said:
I think the error of mine is generated when building the kernel.
Click to expand...
Click to collapse
Yes. And i have build kernel successfully. Change Makefile in kernel folder and build kernel for RR based on cm-14.1
I send you this Makefile in pm later. After work
orfik said:
Yes. And i have build kernel successfully. Change Makefile in kernel folder and build kernel for RR based on cm-14.1
I send you this Makefile in pm later. After work
Click to expand...
Click to collapse
Wow! You are great! Waiting for you
I have been experiencing the same kind of issues with the Ninja tool. It leaves the directory with no reason at all (OK, there has to be a reason for it to leave the directory or just encounter an error). I also used this command:
export USE_NINJA=false
And I think it uses the Java to build the ROM but still encounters errors and exits after 1 - 2 minutes into the build process.
Not sure what is the issue or how to fix it. And it is not that I am waiting for the guys at Lineage to build the ROM for me, I wanted to build it for myself and help out. But keep having these errors and everyting goes to dust.
I also tried building Nougat with the same issues.
Off the record, I am building for Bacon, but the process is the same. Looking forward to new ideas/solutions/anything that can help us get past this step and successfully build the ROM.
i have remove ccach in Makefile,but in the end ,I encounter the error below
[ 96% 647/668] Target userdata fs image: /home/zhj/code/LineageOs/out/target/product/libra/userdata.img
Running: mkuserimg.sh -s /home/zhj/code/LineageOs/out/target/product/libra/data /home/zhj/code/LineageOs/out/target/product/libra/userdata.img ext4 data 12469648896 -D /home/zhj/code/LineageOs/out/target/product/libra/system -L data /home/zhj/code/LineageOs/out/target/product/libra/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin
make_ext4fs -s -T -1 -S /home/zhj/code/LineageOs/out/target/product/libra/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -L data -l 12469648896 -a data /home/zhj/code/LineageOs/out/target/product/libra/userdata.img /home/zhj/code/LineageOs/out/target/product/libra/data /home/zhj/code/LineageOs/out/target/product/libra/system
Creating filesystem with parameters:
Size: 12469645312
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 32768
Label: data
Blocks: 3044347
Block groups: 93
Reserved block group size: 743
Created filesystem with 38/761856 inodes and 90385/3044347 blocks
/home/zhj/code/LineageOs/out/target/product/libra/userdata.img maxsize=12730643904 blocksize=135168 total=149892064 reserve=128679936
[ 97% 654/668] Building Kernel
make: Entering directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'
GEN /home/zhj/code/LineageOs/out/target/product/libra/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))
warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))
GEN /home/zhj/code/LineageOs/out/target/product/libra/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
Using /home/zhj/code/LineageOs/kernel/xiaomi/libra as source for kernel
CHK include/generated/utsrelease.h
CALL /home/zhj/code/LineageOs/kernel/xiaomi/libra/scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
make[2]: 'arch/arm64/boot/Image' is up to date.
make: Leaving directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'
Building DTBs
make: Entering directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make[2]: Nothing to be done for 'dtbs'.
make: Leaving directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'
[ 98% 657/668] Target boot image: /home/zhj/code/LineageOs/out/target/product/libra/boot.img
FAILED: /home/zhj/code/LineageOs/out/target/product/libra/boot.img
/bin/bash -c "(/home/zhj/code/LineageOs/out/host/linux-x86/bin/mkbootimg --kernel /home/zhj/code/LineageOs/out/target/product/libra/kernel --ramdisk /home/zhj/code/LineageOs/out/target/product/libra/ramdisk.img --base 0x00000000 --pagesize 4096 --cmdline "console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-5 buildvariant=userdebug" --os_version 8.1.0 --os_patch_level 2018-05-05 -2 --output /home/zhj/code/LineageOs/out/target/product/libra/boot.img ) && (size=\$(for i in /home/zhj/code/LineageOs/out/target/product/libra/boot.img; do stat --format "%s" "\$i" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo "\$size" ) )); printname=\$(echo -n "/home/zhj/code/LineageOs/out/target/product/libra/boot.img" | tr " " +); img_blocksize=135168; twoblocks=\$((img_blocksize * 2)); onepct=\$(((((69206016 / 100) - 1) / img_blocksize + 1) * img_blocksize)); reserve=\$((twoblocks > onepct ? twoblocks : onepct)); maxsize=\$((69206016 - reserve)); echo "\$printname maxsize=\$maxsize blocksize=\$img_blocksize total=\$total reserve=\$reserve"; if [ "\$total" -gt "\$maxsize" ]; then echo "error: \$printname too large (\$total > [69206016 - \$reserve])"; false; elif [ "\$total" -gt \$((maxsize - 32768)) ]; then echo "WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)"; fi )"
usage: mkbootimg [-h] --kernel KERNEL [--ramdisk RAMDISK] [--second SECOND]
[--cmdline CMDLINE] [--base BASE]
[--kernel_offset KERNEL_OFFSET]
[--ramdisk_offset RAMDISK_OFFSET]
[--second_offset SECOND_OFFSET] [--os_version OS_VERSION]
[--os_patch_level OS_PATCH_LEVEL] [--tags_offset TAGS_OFFSET]
[--board BOARD]
[--pagesize {2048,4096,8192,16384,32768,65536,131072}] [--id]
[--dt DT] -o OUTPUT
mkbootimg: error: unrecognized arguments: -2
ninja: build stopped: subcommand failed.
10:58:38 ninja failed with: exit status 1
Ippfcox said:
Wow! You are great! Waiting for you
Click to expand...
Click to collapse
Can you send me a copy of makefile? I also encountered this problem. Thank
orfik said:
Yes. And i have build kernel successfully. Change Makefile in kernel folder and build kernel for RR based on cm-14.1
I send you this Makefile in pm later. After work
Click to expand...
Click to collapse
can you send me a copy of makefile? I also encountered this problem. Thank
zhanyue1124 said:
[ 96% 647/668] Target userdata fs image: /home/zhj/code/LineageOs/out/target/product/libra/userdata.img
Running: mkuserimg.sh -s /home/zhj/code/LineageOs/out/target/product/libra/data /home/zhj/code/LineageOs/out/target/product/libra/userdata.img ext4 data 12469648896 -D /home/zhj/code/LineageOs/out/target/product/libra/system -L data /home/zhj/code/LineageOs/out/target/product/libra/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin
make_ext4fs -s -T -1 -S /home/zhj/code/LineageOs/out/target/product/libra/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -L data -l 12469648896 -a data /home/zhj/code/LineageOs/out/target/product/libra/userdata.img /home/zhj/code/LineageOs/out/target/product/libra/data /home/zhj/code/LineageOs/out/target/product/libra/system
Creating filesystem with parameters:
Size: 12469645312
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 32768
Label: data
Blocks: 3044347
Block groups: 93
Reserved block group size: 743
Created filesystem with 38/761856 inodes and 90385/3044347 blocks
/home/zhj/code/LineageOs/out/target/product/libra/userdata.img maxsize=12730643904 blocksize=135168 total=149892064 reserve=128679936
[ 97% 654/668] Building Kernel
make: Entering directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'
GEN /home/zhj/code/LineageOs/out/target/product/libra/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))
warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))
GEN /home/zhj/code/LineageOs/out/target/product/libra/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
Using /home/zhj/code/LineageOs/kernel/xiaomi/libra as source for kernel
CHK include/generated/utsrelease.h
CALL /home/zhj/code/LineageOs/kernel/xiaomi/libra/scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
make[2]: 'arch/arm64/boot/Image' is up to date.
make: Leaving directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'
Building DTBs
make: Entering directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make[2]: Nothing to be done for 'dtbs'.
make: Leaving directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'
[ 98% 657/668] Target boot image: /home/zhj/code/LineageOs/out/target/product/libra/boot.img
FAILED: /home/zhj/code/LineageOs/out/target/product/libra/boot.img
/bin/bash -c "(/home/zhj/code/LineageOs/out/host/linux-x86/bin/mkbootimg --kernel /home/zhj/code/LineageOs/out/target/product/libra/kernel --ramdisk /home/zhj/code/LineageOs/out/target/product/libra/ramdisk.img --base 0x00000000 --pagesize 4096 --cmdline "console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-5 buildvariant=userdebug" --os_version 8.1.0 --os_patch_level 2018-05-05 -2 --output /home/zhj/code/LineageOs/out/target/product/libra/boot.img ) && (size=\$(for i in /home/zhj/code/LineageOs/out/target/product/libra/boot.img; do stat --format "%s" "\$i" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo "\$size" ) )); printname=\$(echo -n "/home/zhj/code/LineageOs/out/target/product/libra/boot.img" | tr " " +); img_blocksize=135168; twoblocks=\$((img_blocksize * 2)); onepct=\$(((((69206016 / 100) - 1) / img_blocksize + 1) * img_blocksize)); reserve=\$((twoblocks > onepct ? twoblocks : onepct)); maxsize=\$((69206016 - reserve)); echo "\$printname maxsize=\$maxsize blocksize=\$img_blocksize total=\$total reserve=\$reserve"; if [ "\$total" -gt "\$maxsize" ]; then echo "error: \$printname too large (\$total > [69206016 - \$reserve])"; false; elif [ "\$total" -gt \$((maxsize - 32768)) ]; then echo "WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)"; fi )"
usage: mkbootimg [-h] --kernel KERNEL [--ramdisk RAMDISK] [--second SECOND]
[--cmdline CMDLINE] [--base BASE]
[--kernel_offset KERNEL_OFFSET]
[--ramdisk_offset RAMDISK_OFFSET]
[--second_offset SECOND_OFFSET] [--os_version OS_VERSION]
[--os_patch_level OS_PATCH_LEVEL] [--tags_offset TAGS_OFFSET]
[--board BOARD]
[--pagesize {2048,4096,8192,16384,32768,65536,131072}] [--id]
[--dt DT] -o OUTPUT
mkbootimg: error: unrecognized arguments: -2
ninja: build stopped: subcommand failed.
10:58:38 ninja failed with: exit status 1
Click to expand...
Click to collapse
have you got the solution as I am also running into same error

build error

I' m trying to build resurrection remix oreo rom for moto c plus, I'm getting error when I give input .build/envsetup.sh && brunch m_e_arm-userdebug
Code:
[592/1070] including ./packages/apps/ResurrectionOTA/Android.mk ...
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
[739/1070] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1070/1070] including ./vendor/rr/prebuilt/common/Android.mk ...
[100% 1/1] build bacon
FAILED: bacon
/bin/bash -c "(mv /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip ) && (mv /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/system/etc/RR/Changelog.txt /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/-Changelog.txt ) && (md5 -q /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip | sed \"s|/Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/||\" > /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip.md5sum ) && (echo \"Package Complete: /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip\" >&2 ) && (./vendor/rr/tools/rr.sh )"
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
ninja: build stopped: subcommand failed.
15:48:04 ninja failed with: exit status 1
#### failed to build some targets (09:51 (mm:ss)) ####

Categories

Resources