failed to compile jfltexx, ninja error, missing files - LineageOS Questions & Answers

Any idea why?
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/samsung/jf-gsm-common/proprietary/bin/rild', needed by '/home/huan/android/lineage/out/target/product/jfltexx/system/bin/rild', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/huan/android/lineage'
-------------------------
/home/huan/android/lineage/out/build-lineage_jfltexx.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20170507-UNOFFICIAL-jfltexx
TARGET_PRODUCT=lineage_jfltexx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-38-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N2G47O
OUT_DIR=/home/huan/android/lineage/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/huan/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE jfltexx
build/core/java.mk:334: warning: overriding commands for target `/home/huan/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/home/huan/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:320: warning: overriding commands for target `/home/huan/android/lineage/out/target/product/jfltexx/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/product/jfltexx/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/bin/rild'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/bin/rild'
build/core/Makefile:34: warning: overriding commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libreference-ril.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libreference-ril.so'
build/core/Makefile:34: warning: overriding commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libril.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libril.so'
build/core/Makefile:34: warning: overriding commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libsecril-client.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libsecril-client.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/samsung/jf-gsm-common/proprietary/bin/rild', needed by '/home/huan/android/lineage/out/target/product/jfltexx/system/bin/rild', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/huan/android/lineage'
#### make failed to build some targets (01:16 (mm:ss)) ####

i am facing the same issue

This mean you are missing the proprietary vendor files.
Check this site out, https://github.com/TheMuppets/proprietary_vendor_samsung
Make note of this error:
ninja: error: 'vendor/samsung/jf-gsm-common/proprietary/bin/rild', needed by '/home/huan/android/lineage/out/target/product/jfltexx/system/bin/rild', missing and no known rule to make it
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jf-gsm-common/proprietary/bin/rild
above is the path to the files you want, follow that on the repo page I provided.

Related

[Q] Problem compiling CM7 from source

Hey guys,
I've tried to get CM7 to compile from source on xubuntu x64 by following this, substituting the blade specific commands for buzz ones, but keep on hitting the following error.
Does anyone know what might be causing it? My google-fu isn't helping much.
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_buzz
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
build/core/base_rules.mk:479: warning: overriding commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
bootable/recovery/Android.mk:92: warning: ignoring old commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
No private recovery resources for TARGET_DEVICE buzz
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/tools/acp/acp.c:22:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/libs/host/CopyFile.c:24:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
C4NCER said:
Hey guys,
I've tried to get CM7 to compile from source on xubuntu x64 by following this, substituting the blade specific commands for buzz ones, but keep on hitting the following error.
Does anyone know what might be causing it? My google-fu isn't helping much.
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_buzz
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
build/core/base_rules.mk:479: warning: overriding commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
bootable/recovery/Android.mk:92: warning: ignoring old commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
No private recovery resources for TARGET_DEVICE buzz
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/tools/acp/acp.c:22:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/libs/host/CopyFile.c:24:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
Click to expand...
Click to collapse
Weird error. Never seen it before.
Anyway, you shouldn't do the extract-files part in that guide, it's kinda not used anymore. You should clone Arne's vendor config from here ($git clone https://github.com/arco/proprietary_vendor_htc.git /android/system/vendor/htc)
Oh and here's what I always do to build (I have the vendor config cloned to vendor/htc):
Code:
$cd /android/system
$repo sync -j7
$cd vendor/htc
$git pull
$cd ../..
$. build/envsetup.sh && lunch cyanogen_buzz-eng
$make -j7 bacon
nhnt11 said:
Weird error. Never seen it before.
Anyway, you shouldn't do the extract-files part in that guide, it's kinda not used anymore. You should clone Arne's vendor config from here ($git clone https://github.com/arco/proprietary_vendor_htc.git /android/system/vendor/htc)
Oh and here's what I always do to build (I have the vendor config cloned to vendor/htc):
Code:
$cd /android/system
$repo sync -j7
$cd vendor/htc
$git pull
$cd ../..
$. build/envsetup.sh && lunch cyanogen_buzz-eng
$make -j7 bacon
Click to expand...
Click to collapse
Cheers, I figured it out, was missing gcc and g++ multilibs, and then an ncurses-dev package and then an package for lz compression. Most of it seems to be due to running a 64bit build of linux and ubuntu dropping/renaming a few packages.
C4NCER said:
Cheers, I figured it out, was missing gcc and g++ multilibs, and then an ncurses-dev package and then an package for lz compression. Most of it seems to be due to running a 64bit build of linux and ubuntu dropping/renaming a few packages.
Click to expand...
Click to collapse
oh lol ok xD
Alternate fix for asm/errno.h: No such file or directory
Got the error building on ubuntu x86_64 11.04 (natty) while following docs at source.android.com/source/building.html
I fixed it by going into /usr/include/asm and symlinking everying from ../x86_64-linux-gnu/asm/ to the current directory.
# for f in `ls ../x86_64-linux-gnu/asm/*.h`; do echo "$f"; link=`basename "$f"`; ln -s "$f" $link; done
Click to expand...
Click to collapse
Don't do what is suggested above.
Correct thing to do is just make sure gcc-multilib is installed / up-to date
(I had the same issue with current Debian unstable)
If you really cannot install packages for whatever reason just make a symlink.

[Q] issues with compiling CM10 kernel

Hey guys,
I'm trying to compile CM10 for my d2tmo and I'm running into a snag with the kernel. I compiled CM7 for my old Glacier with no issues, but I can't find out why this is causing a problem. The output log is
Spoiler
Code:
[email protected]:~/cm$ brunch cm_d2tmo-userdebug
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=cm_d2tmo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=/home/matada/cm/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=cm_d2tmo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=/home/matada/cm/out
============================================
find: `src': No such file or directory
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/bin/rild'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libreference-ril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libreference-ril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libinvensense_hal.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libinvensense_hal.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libmllite.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libmllite.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libmlplatform.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libmlplatform.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/snd_soc_msm/snd_soc_msm_2x'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/snd_soc_msm/snd_soc_msm_2x'
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Generic.kcm:system/usr/keychars/Generic.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/qwerty.kcm:system/usr/keychars/qwerty.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/qwerty2.kcm:system/usr/keychars/qwerty2.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/idc/qwerty.idc:system/usr/idc/qwerty.idc ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/idc/qwerty2.idc:system/usr/idc/qwerty2.idc ignored.
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/egl/egl.cfg'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/egl/egl.cfg'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/mkshrc'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/mkshrc'
No private recovery resources for TARGET_DEVICE d2tmo
make -C kernel/samsung/d2 O=/home/matada/cm/out/target/product/d2tmo/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/matada/cm/prebuilts/misc/linux-x86/ccache/ccache /home/matada/cm/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" kernel/samsung/d2
make[1]: Entering directory `/home/matada/cm/kernel/samsung/d2'
GEN /home/matada/cm/out/target/product/d2tmo/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/battery/Kconfig:126:warning: type of 'CHARGER_SMB347' redefined from 'boolean' to 'tristate'
drivers/misc/inv_mpu/Kconfig:58:warning: choice value used outside its choice group
drivers/misc/inv_mpu/Kconfig:62:warning: choice value used outside its choice group
drivers/media/video/msm_zsl/Kconfig:117:warning: choice value used outside its choice group
drivers/media/video/msm_zsl/Kconfig:122:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[4]: *** [silentoldconfig] Error 1
make[3]: *** [silentoldconfig] Error 2
make[2]: *** No rule to make target `kernel/samsung/d2'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/matada/cm/kernel/samsung/d2'
make: *** [/home/matada/cm/out/target/product/d2tmo/obj/KERNEL_OBJ/.config] Error 2
[email protected]:~/cm$
I've set a config file (cyanogen_d2_defconfig) in xconfig and it's still erroring out. Any help?
hope this helps
matada said:
Hey guys,
I'm trying to compile CM10 for my d2tmo and I'm running into a snag with the kernel. I compiled CM7 for my old Glacier with no issues, but I can't find out why this is causing a problem. The output log is
Spoiler
Code:
[email protected]:~/cm$ brunch cm_d2tmo-userdebug
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=cm_d2tmo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=/home/matada/cm/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=cm_d2tmo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=/home/matada/cm/out
============================================
find: `src': No such file or directory
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/bin/rild'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libreference-ril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libreference-ril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libinvensense_hal.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libinvensense_hal.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libmllite.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libmllite.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libmlplatform.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/libmlplatform.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/snd_soc_msm/snd_soc_msm_2x'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/snd_soc_msm/snd_soc_msm_2x'
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Generic.kcm:system/usr/keychars/Generic.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/qwerty.kcm:system/usr/keychars/qwerty.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/qwerty2.kcm:system/usr/keychars/qwerty2.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/idc/qwerty.idc:system/usr/idc/qwerty.idc ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/idc/qwerty2.idc:system/usr/idc/qwerty2.idc ignored.
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/egl/egl.cfg'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/lib/egl/egl.cfg'
build/core/Makefile:44: warning: overriding commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/mkshrc'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matada/cm/out/target/product/d2tmo/system/etc/mkshrc'
No private recovery resources for TARGET_DEVICE d2tmo
make -C kernel/samsung/d2 O=/home/matada/cm/out/target/product/d2tmo/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/matada/cm/prebuilts/misc/linux-x86/ccache/ccache /home/matada/cm/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" kernel/samsung/d2
make[1]: Entering directory `/home/matada/cm/kernel/samsung/d2'
GEN /home/matada/cm/out/target/product/d2tmo/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/battery/Kconfig:126:warning: type of 'CHARGER_SMB347' redefined from 'boolean' to 'tristate'
drivers/misc/inv_mpu/Kconfig:58:warning: choice value used outside its choice group
drivers/misc/inv_mpu/Kconfig:62:warning: choice value used outside its choice group
drivers/media/video/msm_zsl/Kconfig:117:warning: choice value used outside its choice group
drivers/media/video/msm_zsl/Kconfig:122:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[4]: *** [silentoldconfig] Error 1
make[3]: *** [silentoldconfig] Error 2
make[2]: *** No rule to make target `kernel/samsung/d2'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/matada/cm/kernel/samsung/d2'
make: *** [/home/matada/cm/out/target/product/d2tmo/obj/KERNEL_OBJ/.config] Error 2
[email protected]:~/cm$
I've set a config file (cyanogen_d2_defconfig) in xconfig and it's still erroring out. Any help?
Click to expand...
Click to collapse
CM10 uses /arch/arm/configs/cm10_defconfig for kernel configuration.
so you would use the .config file or whatever name you had given to it. rename it cm10_defconfig and copy to kernel/arch/arm/configs/
you can also use a pre-built kernel
just copy the zImage to your device directory. and rename it kernel
or you can build without a kernel and just build the rom itself
I hope this helped you out.

Building CM 11 Errors

This is my first time I have ever built a ROM, but I am making a build as described here --> http://wiki.cyanogenmod.org/w/Build_for_d2att <--
Shortly after I run "brunch d2att" the console displays "find: `src': No such file or directory" and then runs off on a list of "Warning: Ignoring old commands for target" and "Warning: Overriding commands for target"
After running "brunch d2att":
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4
CM_VERSION=11-20131130-UNOFFICIAL-d2att
TARGET_PRODUCT=cm_d2att
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.11.0-14-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KRT16S
OUT_DIR=/home/matthew/android/system/out
============================================
Then it goes into the find: src and warnings.
Code:
[email protected]:~/android/system$ brunch d2att
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4
CM_VERSION=11-20131130-UNOFFICIAL-d2att
TARGET_PRODUCT=cm_d2att
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.11.0-14-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KRT16S
OUT_DIR=/home/matthew/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4
CM_VERSION=11-20131130-UNOFFICIAL-d2att
TARGET_PRODUCT=cm_d2att
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.11.0-14-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KRT16S
OUT_DIR=/home/matthew/android/system/out
============================================
find: `src': No such file or directory
frameworks/uiautomator/Android.mk:82: warning: overriding commands for target `/home/matthew/android/system/out/target/common/obj/PACKAGING/uiautomator-checkapi-last-timestamp'
frameworks/testing/uiautomator/library/Android.mk:82: warning: ignoring old commands for target `/home/matthew/android/system/out/target/common/obj/PACKAGING/uiautomator-checkapi-last-timestamp'
frameworks/uiautomator/Android.mk:99: warning: overriding commands for target `/home/matthew/android/system/out/target/common/obj/PACKAGING/uiautomator-checkapi-current-timestamp'
frameworks/testing/uiautomator/library/Android.mk:99: warning: ignoring old commands for target `/home/matthew/android/system/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'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit_priv.h'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/bin/rild'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libsecril-client.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libsecril-client.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libreference-ril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libreference-ril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libinvensense_hal.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libinvensense_hal.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmllite.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmllite.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmlplatform.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmlplatform.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/permissions/android.software.live_wallpaper.xml'
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Generic.kcm:system/usr/keychars/Generic.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm ignored.
No private recovery resources for TARGET_DEVICE d2att
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
make: *** [/home/matthew/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 127
make: *** Waiting for unfinished jobs....
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
make: *** [/home/matthew/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/rsa.o] Error 127
make: *** wait: No child processes. Stop.
[email protected]:~/android/system$
Any help is greatly appreciated!
Thanks in advance!

[Q] Stock CM 11 (4.4.1) Compiling Errors

So earlier I posted a problem I had building CM 11 (4.4.0), and due to lack of help, I never got a working build. However, this morning, I OTA Updated through CyanogenMod's servers to their first CM 11 Build for d2att (4.4.1). I did the obligatory repo sync, and also a source build/envsetup.sh, a breakfast d2att and then brunch d2att. Once it started compiling, I did not run into my usual slew of errors for a little while, and then hit them, but with the build continuing for 2 minutes after the errors, instead of the normal stop. Sadly, it did stop, but not on the same note as it did before today... Here's the code after brunch d2att:
Code:
[email protected]:~/android/system$ brunch d2att
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.1
CM_VERSION=11-20131208-UNOFFICIAL-d2att
TARGET_PRODUCT=cm_d2att
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.11.0-15-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KOT49E
OUT_DIR=/home/matthew/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.1
CM_VERSION=11-20131208-UNOFFICIAL-d2att
TARGET_PRODUCT=cm_d2att
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.11.0-15-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KOT49E
OUT_DIR=/home/matthew/android/system/out
============================================
Clean step: rm -rf /home/matthew/android/system/out/target/product/d2att/system/build.prop
/home/matthew/android/system/out/target/product/d2att/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit_priv.h'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/bin/rild'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libsecril-client.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libsecril-client.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libreference-ril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libreference-ril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libinvensense_hal.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libinvensense_hal.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmllite.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmllite.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmlplatform.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmlplatform.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/permissions/android.software.live_wallpaper.xml'
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Generic.kcm:system/usr/keychars/Generic.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm ignored.
No private recovery resources for TARGET_DEVICE d2att
Header: /home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/gralloc_priv.h
Import includes file: /home/matthew/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
make -C kernel/samsung/d2 O=/home/matthew/android/system/out/target/product/d2att/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/matthew/android/system/prebuilts/misc/linux-x86/ccache/ccache /home/matthew/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG=cyanogen_d2_defconfig SELINUX_DEFCONFIG=m2selinux_defconfig cyanogen_d2att_defconfig
make[1]: Entering directory `/home/matthew/android/system/kernel/samsung/d2'
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
make: *** [/home/matthew/android/system/out/target/product/d2att/obj/lib/crtbrand.o] Error 127
make: *** Waiting for unfinished jobs....
HOSTCC scripts/basic/fixdep
GEN /home/matthew/android/system/out/target/product/d2att/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/video/msm_apexq/Kconfig:126:warning: choice value used outside its choice group
drivers/media/video/msm_apexq/Kconfig:131:warning: choice value used outside its choice group
KCONFIG_SELINUX(arch/arm/configs/m2selinux_defconfig)
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT(arch/arm/configs/cyanogen_d2_defconfig)
arch/arm/configs/cyanogen_d2_defconfig:837:warning: override: reassigning to symbol NETWORK_SECMARK
arch/arm/configs/cyanogen_d2_defconfig:841:warning: override: reassigning to symbol NETFILTER_ADVANCED
KCONFIG_DEBUG((null))
#
# configuration written to .config
#
make[1]: Leaving directory `/home/matthew/android/system/kernel/samsung/d2'
[email protected]:~/android/system$
[/HIDE]
If anyone can tell me what went wrong or where I can get some help, my ears are open! Thanks!

Building LineageOS for cancro (Xiaomi mi3w) problem

Hello,
I'm trying to build the lineageOS cm-14.1 version for Cancro
I did
Code:
$ repo init -u ssh://[email protected]/LineageOS/android.git -b cm-14.1
$ repo sync
$ breakfast cancro
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/xiaomi/cancro
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
Then:
Code:
$ brunch cancro
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/xiaomi/cancro
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
make: Entering directory '/path/to/android/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
Running kati to generate build-lineage_cancro.ninja...
Environment variable BUILD_NUMBER was modified (8e31167344 => 8b61fedda4), regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/path/to/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE cancro
build/core/java.mk:334: warning: overriding commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/bin/wcnss_service'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/bin/wcnss_service'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b00'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b00'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b01'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b01'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b02'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b02'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b04'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b04'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b06'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b06'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b07'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b07'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b08'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b08'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b09'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b09'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.mdt'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.mdt'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libc2dcolorconvert.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libc2dcolorconvert.so'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libOmxVenc.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libOmxVenc.so'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/path/to/android/system/out/target/product/cancro/obj/lib/libtime_genoff.so.toc', needed by '/path/to/android/system/out/target/product/cancro/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/path/to/android/system'
#### make failed to build some targets (22 seconds) ####
Ending with
Code:
ninja: error: '/path/to/android/system/out/target/product/cancro/obj/lib/libtime_genoff.so.toc', needed by '/path/to/android/system/out/target/product/cancro/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/path/to/android/system'
I did extract the binaries from a cancro phone running cyanogenmod 14.1.
What is the step I am missing?
Cancro in my language is cancer.
And when we call something a cancer means that thing it worst nothing.
paulomodesto said:
Cancro in my language is cancer.
And when we call something a cancer means that thing it worst nothing.
Click to expand...
Click to collapse
I'm not against a little bit of culture here and there.
I'm quite sure xiaomi thought about your language when naming their device. Cancro is also a constellation.
This aside, your comment is what makes most of the threads on XDA so time consuming to read. So thank you!
Time consuming to read?
Just read your first post...
And beside me, who have post on this tread?
Have a good year, and be happy.
Peace!
Bump. I am having the same error
ignore this
Interestingly enough I'm trying to build Lineage OS 14.1 for Bacon on Linux Bash for Windows 10 and get this exact same error. So that gives me hope that it's not just because I'm too lazy to use actual linux lol. If anyone knows the fix I want to try and get it to build someone else says they got CM13 to build with the same method.
Hi there! First of all: Happy new year everybody
I don't have the device (cancro) but I'm pretty sure that - for some reason - the mentioned file (and maybe even more) did not get pulled from your phone. Did you extract the proprietary files via "extract-files.sh"? Check where the file is located on your device and if the script pulls that folder.
You could also use proprietary files from github.com/TheMuppets. It's an open secret that most developers use that repository. Furthermore it's very handy when it comes to building/brunching for another device that you don't even own.
Edit: If I'm not wrong, these folders should be present in your build directory:
device/xiaomi/cancro
kernel/xiaomi/cancro
vendor/xiaomi/cancro
Please check that and report back
The Flash said:
Introduction
Frequently Asked Questions
1.1 Q: I got an error, what do I do??
1.1 A: Well to start, if it is anything with Ninja, I would go ahead and disable it. You can add this to your .bashrc file:
Code:
export USE_NINJA=false
Then type this
Code:
source ~/.bashrc
. build/envsetup.sh
breakfast bullhead
mka clobber
mka bacon
If it is saying you ran out of memory, follow this post.
If it isn't Ninja related, check out @AzraelsKiss's post here, where he has documented a few common issues. If none of those apply, post here with a detailed list of what you have done and we will do our best to help you.
Click to expand...
Click to collapse
You could try this.
experience7 said:
Hi there! First of all: Happy new year everybody
I don't have the device (cancro) but I'm pretty sure that - for some reason - the mentioned file (and maybe even more) did not get pulled from your phone. Did you extract the proprietary files via "extract-files.sh"? Check where the file is located on your device and if the script pulls that folder.
You could also use proprietary files from github.com/TheMuppets. It's an open secret that most developers use that repository. Furthermore it's very handy when it comes to building/brunching for another device that you don't even own.
Edit: If I'm not wrong, these folders should be present in your build directory:
device/xiaomi/cancro
kernel/xiaomi/cancro
vendor/xiaomi/cancro
Please check that and report back
Click to expand...
Click to collapse
I have tried TheMuppets xiaomi repo and also the extract_files.sh script. The result is always the same.
tassos_chry said:
You could try this.
Click to expand...
Click to collapse
I tried disabling ninja but the error remains the same.
I also had a look at the build-manifest.xml file on my phone but I don't see what is missing.
my solution
Hi,
since I found a solution, here is what I did...
- open the file "/android/system/device/xiaomi/cancro/proprietary-files.txt" in your editor...
- search for "libtime_genoff.so"
- add a "-" as first character in that line, so it looks like this "-vendor/lib/libtime_genoff.so"
- save
- run "/android/system/device/xiaomi/cancro/setup-makefiles.sh" to propagate the modification to the tool-chain
that's it :highfive:
best regards
Spameater_de
P.S.: during the build I had another issue regarding an obviously obsolete .so - file. I removed it from the proprietary_files.txt and re-run the setup-makefiles.sh... the image is now fine

Categories

Resources