I am trying to build LineageOS for the HTC M9 Himaul following these directions CyanogenMod Wiki: How to build himaul using "git://github.com/LineageOS/android.git -b cm-14.1" for the repo.
The repo syncs successfully and I don't get any errors when I run "source build/envsetup.sh", but when I run "breakfast himaul" I get this
Code:
~/android/system $ breakfast himaul
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/himaul/lineage.mk]]: "vendor/qcom/binaries/msm8994/graphics/graphics-vendor.mk" does not exist. Stop.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/himaul/lineage.mk]]: "vendor/qcom/binaries/msm8994/graphics/graphics-vendor.mk" does not exist. Stop.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/himaul/lineage.mk]]: "vendor/qcom/binaries/msm8994/graphics/graphics-vendor.mk" does not exist. Stop.
Device himaul not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_htc_himaul
Default revision: cm-14.1
Checking branch info
Checking if device/htc/himaul is fetched from android_device_htc_himaul
LineageOS/android_device_htc_himaul already fetched to device/htc/himaul
Syncing repository to retrieve project.
Fetching project LineageOS/android_device_htc_himaul
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies in device/htc/himaul
Looking for dependencies in device/htc/hima-common
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/himaul/lineage.mk]]: "vendor/qcom/binaries/msm8994/graphics/graphics-vendor.mk" does not exist. Stop.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/himaul/lineage.mk]]: "vendor/qcom/binaries/msm8994/graphics/graphics-vendor.mk" does not exist. Stop.
** Don't have a product spec for: 'lineage_himaul'
** Do you have the right repo manifest?
I attached my manifest.xml and roomservice.xml
add this project on your roomservice.xml
Code:
<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1" />
Then repo sync again
Thanks, I tried your suggestion and every other one I could find but unfortunately couldn't ever get version 14 to work.
I was successful with version 13.
I appreciate the help.
i get the same , if somebody findes out please PM me ..
Hey!
You additionally have to add the device specific binaries, so please also add this to your roomservice.xml :
Code:
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-14.1" />
Then do a
Code:
repo sync
and try again. Maybe a make clean is necessary.
If you don't have a good internet connection AND an already running M9 you can also extract the proprietary blobs with
Code:
~/android/system/device/htc/himaul/extract-files.sh
That's also mentioned in your link CyanogenMod Wiki: How to build himaul. Sorry - I can't post links.
A third method is extracting the binary blobs from an already built zip image (maybe cm 13)...
Happy compiling
For me it worked - but I still haven't flashed it
---------- Post added at 07:07 PM ---------- Previous post was at 06:40 PM ----------
Yeeha!
It successfully booted
Wifi is working, but there are a lot of buggy things around... e.g. the camera
Actually I wanted to post a screenshot, but I can't find the upload button
115ek said:
Hey!
You additionally have to add the device specific binaries, so please also add this to your roomservice.xml :
Then do a and try again. Maybe a make clean is necessary.
If you don't have a good internet connection AND an already running M9 you can also extract the proprietary blobs with
That's also mentioned in your link CyanogenMod Wiki: How to build himaul. Sorry - I can't post links.
A third method is extracting the binary blobs from an already built zip image (maybe cm 13)...
Happy compiling
For me it worked - but I still haven't flashed it
---------- Post added at 07:07 PM ---------- Previous post was at 06:40 PM ----------
Yeeha!
It successfully booted
Wifi is working, but there are a lot of buggy things around... e.g. the camera
Actually I wanted to post a screenshot, but I can't find the upload button
Click to expand...
Click to collapse
I'll give this a shot this weekend.
Thank you
I added the two things above to my roomservice.xml so it looks like this now
Roomservice.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LineageOS/android_device_htc_himaul" path="device/htc/himaul" remote="github" />
<project name="LineageOS/android_device_htc_hima-common" path="device/htc/hima-common" remote="github" />
<project name="LineageOS/android_kernel_htc_msm8994" path="kernel/htc/msm8994" remote="github" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-14.1" />
</manifest>
I did a 'repo sync' and a 'make clean' before attempting to build. I still get numerous errors so I must be doing something wrong still.
Here is the output from my brunch command
brunch himaul
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/htc/himaul
Looking for dependencies in device/htc/hima-common
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-20170205-UNOFFICIAL-himaul
TARGET_PRODUCT=lineage_himaul
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
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.4.0-62-generic-x86_64-with-LinuxMint-18.1-serena
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/shelby/android/system/out
============================================
make: Entering directory '/home/shelby/android/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170205-UNOFFICIAL-himaul
TARGET_PRODUCT=lineage_himaul
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
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.4.0-62-generic-x86_64-with-LinuxMint-18.1-serena
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/shelby/android/system/out
============================================
***TEXT HERE REMOVED TO MEET CHARACTER LIMIT***
Running kati to generate build-lineage_himaul.ninja...
/home/shelby/android/system/out/build-lineage_himaul.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170205-UNOFFICIAL-himaul
TARGET_PRODUCT=lineage_himaul
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
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.4.0-62-generic-x86_64-with-LinuxMint-18.1-serena
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/shelby/android/system/out
============================================
Checking build tools versions...
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/shelby/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
PRODUCT_COPY_FILES vendor/qcom/binaries/msm8994/graphics/proprietary/vendor/lib64/libmm-qdcm.so:system/vendor/lib64/libmm-qdcm.so ignored.
build/core/Makefile:53: Duplicate header copy: /home/shelby/android/system/out/target/product/himaul/obj/include/qcom/display/copybit.h
build/core/Makefile:53: Defined in: hardware/qcom/display-caf/msm8994/libcopybit/Android.mk hardware/qcom/display-caf/msm8994/libcopybit/Android.mk
build/core/Makefile:53: Duplicate header copy: /home/shelby/android/system/out/target/product/himaul/obj/include/qcom/display/copybit_priv.h
build/core/Makefile:53: Defined in: hardware/qcom/display-caf/msm8994/libcopybit/Android.mk hardware/qcom/display-caf/msm8994/libcopybit/Android.mk
build/core/Makefile:53: Duplicate header copy: /home/shelby/android/system/out/target/product/himaul/obj/include/qcom/display/c2d2.h
build/core/Makefile:53: Defined in: hardware/qcom/display-caf/msm8994/libcopybit/Android.mk hardware/qcom/display-caf/msm8994/libcopybit/Android.mk
No private recovery resources for TARGET_DEVICE himaul
build/core/java.mk:334: warning: overriding commands for target `/home/shelby/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 `/home/shelby/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 `/home/shelby/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 `/home/shelby/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 `/home/shelby/android/system/out/target/product/himaul/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/shelby/android/system/out/target/product/himaul/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/shelby/android/system/out/target/product/himaul/system/lib64/hw/consumerir.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/shelby/android/system/out/target/product/himaul/system/lib64/hw/consumerir.default.so'
build/core/Makefile:34: warning: overriding commands for target `/home/shelby/android/system/out/target/product/himaul/system/lib/hw/consumerir.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/shelby/android/system/out/target/product/himaul/system/lib/hw/consumerir.default.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/htc/hima-common/proprietary/etc/firmware/BCM4354A2_001.003.015.0100.0102.hcd', needed by '/home/shelby/android/system/out/target/product/himaul/system/etc/firmware/BCM4354A2_001.003.015.0100.0102.hcd', 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/shelby/android/system'
#### make failed to build some targets (23 seconds) ####
Very interesting...
Please find out what your directory /home/shelby/android/system/vendor/htc/hima-common/proprietary/etc/firmware/ contains. Or if it actually exists.
Do you find BCM4354A2_001.003.015.0100.0102.hcd or BCM4356A2_001.003.015.0100.0102.hcd there?
If not: please do a 'repo --force-sync' (if you don't have local changes in your sourcetree...)
BCM4354A2_001.003.015.0100.0102.hcd was replaced by a newer bluetooth firmware version BCM4356A2_001.003.015.0100.0102.hcd
But it's still copied under the old name into the output.
So, your problem is that a makefile might be outdated and looks for the old version (and can't find it) or your repo isn't synced correctly.
I looked in that directory and did not find either of those files.
I ran the repo --force-sync as suggested but no changes were made to the directory as far as I could see.
I did a search for BCM435* in android/system and it returned one file with a .hcd extension.
BCM4359C0_003.001.006.0065.0111.hcd in android/system/vendor/htc/pme/proprietary/etc/firmware
Dunno what that means...
I'm not opposed to deleting the directory and starting over if need be
I'm not opposed to deleting the directory and starting over if need be
Click to expand...
Click to collapse
Yes.
Try removing the htc directory under system/vendor and re-sync. It shouldn't take too much time. Your directory should look like h ttps://github.com/TheMuppets/proprietary_vendor_htc (had to insert a space, because I can't post links here )
If that doesn't work you can also download the repo as zip and unpack it in the right place.
Give it a try :good:
115ek said:
Yes.
Try removing the htc directory under system/vendor and re-sync. It shouldn't take too much time. Your directory should look like h ttps://github.com/TheMuppets/proprietary_vendor_htc (had to insert a space, because I can't post links here )
If that doesn't work you can also download the repo as zip and unpack it in the right place.
Give it a try :good:
Click to expand...
Click to collapse
I didn't get the chance to try any of this until this morning.
I deleted the whole directory and started over with the new lines in my roomservice.xml and I was able to build and flash the image successfully!
Thanks for the help! :good:
I know this tread is very old but as our device has been removed from the official builds, I wanted to try to build on my own to get the latest security patches.
I followed the instructions at htt ps://wiki.lineageos.org/devices/himaul/build and added both links to my roomservice.xml, did several re-syncs and extracted the proprietary blobs a second time but the build still fails and i still have the "Dependencies file not found, bailing out." message at breakfast / brunch.
Code:
<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-14.1" />
os: ubuntu 17.10 x64 on virtual machine, assigned 1 core, 4.5GB of ram
Related
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
Hi, I'm not sure this is the right place to deal with this issue and I apologize in advance if I'm wrong.
I'm trying to build a ROM for my hlte (Galaxy Note 3 N9005) but when i use the command "brunch hlte", i get this error:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/root/android/system/out/target/product/hlte/obj/STATIC_LIBRARIES/libinit_msm_intermediates/export_includes', needed by '/root/android/system/out/target/product/hlte/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: set di istruzioni per l'obiettivo "ninja_wrapper" non riuscito
make: *** [ninja_wrapper] Errore 1
make: uscita dalla directory "/root/android/system"
#### make failed to build some targets (01:48 (mm:ss)) ####
Thorn655 said:
Hi, I'm not sure this is the right place to deal with this issue and I apologize in advance if I'm wrong.
I'm trying to build a ROM for my hlte (Galaxy Note 3 N9005) but when i use the command "brunch hlte", i get this error:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/root/android/system/out/target/product/hlte/obj/STATIC_LIBRARIES/libinit_msm_intermediates/export_includes', needed by '/root/android/system/out/target/product/hlte/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: set di istruzioni per l'obiettivo "ninja_wrapper" non riuscito
make: *** [ninja_wrapper] Errore 1
make: uscita dalla directory "/root/android/system"
#### make failed to build some targets (01:48 (mm:ss)) ####
Click to expand...
Click to collapse
You are missing the source that calls and builds a libinit module. Most likely missing a msm...-common device source dependency.
Sent from my SM-T310 using Tapatalk
Strange, this is my local manifest:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="lineage" fetch="https://github.com/LineageOS" />
<remote name="muppets" fetch="https://github.com/TheMuppets" />
<project path="vendor/samsung" name="proprietary_vendor_samsung" remote="muppets" revision="cm-14.1"/>
<project path="device/samsung/hlte" name="android_device_samsung_hlte" remote="lineage" revision="cm-13.0"/>
<project path="device/samsung/hlte-common" name="android_device_samsung_hlte-common" remote="lineage" revision="cm-13.0"/>
<project path="device/samsung/msm8974-common" name="android_device_samsung_msm8974-common" remote="lineage" revision="cm-13.0"/>
<project path="kernel/samsung/hlte" name="android_kernel_samsung_hlte" remote="lineage" revision="cm-13.0"/>
<project path="device/qcom/common" name="android_device_qcom_common" remote="lineage" revision="cm-13.0"/>
<project path="device/samsung/qcom-common" name="android_device_samsung_qcom-common" remote="lineage" revision="cm-13.0"/>
<project path="hardware/samsung" name="android_hardware_samsung" remote="lineage" revision="cm-13.0"/>
<project path="packages/resources/devicesettings" name="android_packages_resources_devicesettings" remote="lineage" revision="cm-14.1"/>
</manifest>
I began from "android_device_samsung_hlte" and then I added all cm.depancancies or lineage.depandancies here
I'm trying to port LineageOS 14.1 to my device (HTC Desire C (golfu))
I'm going to write down step by step what I did so that you could maybe see if I did something wrong before the error appeared .
To set my PC up I used this guide but started to change some things midway because my device isn't officially supported:
http://wiki.lineageos.org/cherry_build.html
Downloaded the source code for LineageOS 14.1 with:
repo init -u git://github.com/LineageOS/android.git -b cm-14.1
repo sync
Click to expand...
Click to collapse
Added device, kernel and vendor:
cd ~/android/system #my work directory
mkdir -p device/htc
git clone git://github.com/high1/android_device_htc_golfu device/htc/golfu
mkdir -p kernel/htc/
git clone git://github.com/HtcLegacy/android_kernel_htc_golfu kernel/htc/golfu
mkdir -p vendor/htc
git clone git://github.com/HtcLegacy/android_vendor_htc_golfu vendor/htc/golfu
Click to expand...
Click to collapse
"source build/envsetup.sh" lists my device:
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/htc/golfu/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
Click to expand...
Click to collapse
"breakfast golfu" gave me this errors:
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/golfu/cm.mk]]: "vendor/cm/config/nfc_enhanced.mk" does not exist. Schluss.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/golfu/cm.mk]]: "vendor/cm/config/nfc_enhanced.mk" does not exist. Schluss.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/golfu/cm.mk]]: "vendor/cm/config/nfc_enhanced.mk" does not exist. Schluss.
Device golfu not found. Attempting to retrieve device repository from LineageOS Github (github.com/LineageOS).
Repository for golfu not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/golfu/cm.mk]]: "vendor/cm/config/nfc_enhanced.mk" does not exist. Schluss.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/golfu/cm.mk]]: "vendor/cm/config/nfc_enhanced.mk" does not exist. Schluss.
** Don't have a product spec for: 'lineage_golfu'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
I couldn't find nfc_enhanced.mk online to download so I commented it out.
Will this lead to future errors?
I could fix the "Device golfu not found." by changing "PRODUCT_NAME := cm_golfu" to "PRODUCT_NAME := lineage_golfu".
The output of "breakfast golfu" is now:
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170215-UNOFFICIAL-golfu
TARGET_PRODUCT=lineage_golfu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a5
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-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/scandals/android/system/out
RECOVERY_VARIANT=omni
============================================
Click to expand...
Click to collapse
What does "Trying dependencies-only mode on a non-existing device tree?" mean?
"brunch golfu" shows this error:
including vendor/cm/vendorsetup.sh
build/core/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Schluss.
build/core/product_config.mk:268: *** No matches for product "cm_golfu". Schluss.
build/core/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Schluss.
Device golfu not found. Attempting to retrieve device repository from LineageOS Github (github.com/LineageOS).
Repository for golfu not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Schluss.
build/core/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Schluss.
** Don't have a product spec for: 'lineage_golfu'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
Click to expand...
Click to collapse
After searching the internet I found this solution:
I actually changed that.
Now I simplay commented the "COMMON_GLOBAL_CFLAGS" in my BoardConfig.mk
Open up ./build/core/config.mk, and scroll down to line 630, where you should see the below.
Code:
# ###############################################################
# Set up final options.
# ###############################################################
ifneq ($(COMMON_GLOBAL_CFLAGS)$(COMMON_GLOBAL_CPPFLAGS),)
$(warning COMMON_GLOBAL_C(PP)FLAGS changed)
$(info *** Device configurations are no longer allowed to change the global flags.)
$(info *** COMMON_GLOBAL_CFLAGS: $(COMMON_GLOBAL_CFLAGS))
$(info *** COMMON_GLOBAL_CPPFLAGS: $(COMMON_GLOBAL_CPPFLAGS))
$(error bailing…)
endif
Which I changed to this:
Code:
# ###############################################################
# Set up final options.
# ###############################################################
#I disagree with your cflags policy. So there. (Go ahead and tell AOSP how you really feel.)
#ifneq ($(COMMON_GLOBAL_CFLAGS)$(COMMON_GLOBAL_CPPFLAGS),)
#$(warning COMMON_GLOBAL_C(PP)FLAGS changed)
#$(info *** Device configurations are no longer allowed to change the global flags.)
#$(info *** COMMON_GLOBAL_CFLAGS: $(COMMON_GLOBAL_CFLAGS))
#$(info *** COMMON_GLOBAL_CPPFLAGS: $(COMMON_GLOBAL_CPPFLAGS))
#$(error bailing…)
#endif
Click to expand...
Click to collapse
Which fixed the error.
Now "brunch golfu" shows this error:
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170215-UNOFFICIAL-golfu
TARGET_PRODUCT=lineage_golfu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a5
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-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/scandals/android/system/out
RECOVERY_VARIANT=omni
============================================
make: Verzeichnis „/home/scandals/android/system“ wird betreten
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170215-UNOFFICIAL-golfu
TARGET_PRODUCT=lineage_golfu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a5
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-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/scandals/android/system/out
RECOVERY_VARIANT=omni
============================================
Running kati to generate build-lineage_golfu.ninja...
device/htc/golfu/AndroidBoard.mk was modified, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170215-UNOFFICIAL-golfu
TARGET_PRODUCT=lineage_golfu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a5
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-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/scandals/android/system/out
RECOVERY_VARIANT=omni
============================================
bionic/libc/arch-arm/arm.mk:46: *** "TARGET_CPU_VARIANT not set or set to an unknown value. Possible values are cortex-a7, cortex-a8, cortex-a9, cortex-a15, krait, scorpion, denver. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.".
build/core/ninja.mk:166: die Regel für Ziel „/home/scandals/android/system/out/build-lineage_golfu.ninja“ scheiterte
make: *** [/home/scandals/android/system/out/build-lineage_golfu.ninja] Fehler 1
make: Verzeichnis „/home/scandals/android/system“ wird verlassen
#### make failed to build some targets (3 seconds) ####
Click to expand...
Click to collapse
I had to change "TARGET_CPU_VARIANT := cortex-a5" to "TARGET_CPU_VARIANT := generic" in my BoardConfig.mk file.
I deleted "-mtune=cortex-a5" from the CFLAGS beneath believing that that will lead to errors in some future part of compiling.
Is there a way to use cortex-a5?
Maybe with a different compiler?
Now I don't know how to fix this error. Can someone help me or give some tips?
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: "/home/scandals/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates": Datei oder Verzeichnis nicht gefunden
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE golfu
device/htc/golfu/libaudio/Android.mk:60: warning for parse error in an unevaluated line: *** commands commence before first target.
device/htc/golfu/libaudio/Android.mk:61: warning for parse error in an unevaluated line: *** commands commence before first target.
build/core/java.mk:334: warning: overriding commands for target `/home/scandals/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 `/home/scandals/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 `/home/scandals/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 `/home/scandals/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 `/home/scandals/android/system/out/target/product/golfu/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/scandals/android/system/out/target/product/golfu/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/scandals/android/system/out/target/product/golfu/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/scandals/android/system/out/target/product/golfu/system/etc/permissions/android.software.live_wallpaper.xml'
Starting build with ninja
ninja: Entering directory `.'
ninja: warning: multiple rules generate /home/scandals/android/system/out/target/product/golfu/system/etc/gps.conf. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
ninja: error: '/home/scandals/android/system/out/target/product/golfu/obj/STATIC_LIBRARIES/libbootloader_message_intermediates/export_includes', needed by '/home/scandals/android/system/out/target/product/golfu/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: die Regel für Ziel „ninja_wrapper“ scheiterte
make: *** [ninja_wrapper] Fehler 1
make: Verzeichnis „/home/scandals/android/system“ wird verlassen
#### make failed to build some targets (19 seconds) ####
Click to expand...
Click to collapse
Trying to find the error I commented some parts of the config file in my device directory.
Through some trial and error I could narrow it down to the the file build/target/product/embedded.mk.
The error is caused by the line which adds "atrace" to "PRODUCT_PACKAGES".
I could simply not exclude this package but it seams to be important as the text above states the following.
# This is a build configuration for a very minimal build of the
# Open-Source part of the tree.
Click to expand...
Click to collapse
Does someone know how to fix that?
While fixing a different error I coincidentally fixed the error with atrace.
I had to download some additional files:
git clone https://github.com/LineageOS/android_device_qcom_common.git device/qcom/common
Click to expand...
Click to collapse
That fixed it.
ninja: error: '/home/scandals/android/system_lineageos_14.1/out/target/product/golfu/system/xbin/busybox', needed by '/home/scandals/android/system_lineageos_14.1/out/target/product/golfu/obj/SHARED_LIBRARIES/libbmlutils_intermediates/teamwin', missing and no known rule to make it
Click to expand...
Click to collapse
To fix that I simply copied busybox from my current working ROM.
I don't know how to fix the following error.
Can someone help me with that?
ninja: error: 'system/core/toolbox/ls.c', needed by '/home/scandals/android/system_lineageos_14.1/out/target/product/golfu/obj/EXECUTABLES/toolbox_recovery_intermediates/ls.o', missing and no known rule to make it
Click to expand...
Click to collapse
@scandals:
Is this the general way to port to a new device?
I have device specific sources (https://github.com/TeamButter/android_device_sony_taoshan) and the LineageOS repo initialised according to http://www.lineageosrom.com/2017/01/how-to-build-lineageos-rom-for-any.html
But I do not know how to integrate the device tree.
Ciao
Manuel
I've just downloaded the Resurrection Remix source,
but have some trouble to add oneplus3 vendor and device tree to the source.
I'm a newbie, and this is my first try to make a building, I've tried with a full Saturday.
there is some input and out put:
source ./build/envsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
▼ Which build-type do you want to choose?
〉 1- Official ︱ Only for the official builds by the maintainers
〉 2- Unofficial ︱ For the unofficial builds
〉 3- Nightly ︱ Only for the official daily builds by the maintainers
〉 4- Weekly ︱ Only for the official weekly builds by the maintainers
〉 5- Release ︱ Only for the official releases by the RR-Team
〉 6- Milestone ︱ Only for the milestone releases by the RR-Team
〉 7- Experimental ︱ Only for the experimental releases by the RR-Team
〉 8- Final ︱ Only for the final releases by the RR-Team
? 30/sec Time-out︱ Default option
▼ Pick a number
5
▪ Building release variant
0
▼ For how many days changelog do you want to generate?
? 30/sec Time-out ︱ 7 Days by default
▼ Type a number
√ Changelog successfully generated.
lunch 96
Looking for dependencies in device/oneplus/oneplus3
Looking for dependencies in device/oppo/common
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
RR_VERSION=RR-N-v5.8.2-20170225-oneplus3-Release
TARGET_PRODUCT=lineage_oneplus3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-63-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=NOF26W
OUT_DIR=/home/xxxxx/work/op3rr/out
make -j8
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
RR_VERSION=RR-N-v5.8.2-20170225-oneplus3-Release
TARGET_PRODUCT=lineage_oneplus3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-63-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=NOF26W
OUT_DIR=/home/xxxxx/work/op3rr/out
============================================
Running kati to generate build-lineage_oneplus3.ninja...
Environment variable BUILD_NUMBER was modified (1bdec04390 => afb90f5872), regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
RR_VERSION=RR-N-v5.8.2-20170225-oneplus3-Release
TARGET_PRODUCT=lineage_oneplus3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-63-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=NOF26W
OUT_DIR=/home/xxxxx/work/op3rr/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: `/home/xxxxx/work/op3rr/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates': 没有那个文件或目录
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
cp: 无法获取'/home/xxxxx/work/op3rr/ota_conf' 的文件状态(stat): 没有那个文件或目录
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/cm/prebuilt/NexusLauncher/NexusLauncher.apk:system/app/NexusLauncher/NexusLauncher.apk, use BUILD_PREBUILT instead!
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/cm/prebuilt/Wallpaper/Wallpaper.apk:system/app/Wallpaper/Wallpaper.apk, use BUILD_PREBUILT instead!
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/cm/prebuilt/DeskClock/DeskClock.apk:system/app/DeskClock/DeskClock.apk, use BUILD_PREBUILT instead!
No private recovery resources for TARGET_DEVICE oneplus3
build/core/java.mk:334: warning: overriding commands for target `/home/xxxxx/work/op3rr/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/xxxxx/work/op3rr/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/xxxxx/work/op3rr/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/xxxxx/work/op3rr/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 `/home/xxxxx/work/op3rr/out/target/product/oneplus3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/xxxxx/work/op3rr/out/target/product/oneplus3/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/xxxxx/work/op3rr/out/target/product/oneplus3/system/etc/libnfc-brcm.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/xxxxx/work/op3rr/out/target/product/oneplus3/system/etc/libnfc-brcm.conf'
build/core/Makefile:34: warning: overriding commands for target `/home/xxxxx/work/op3rr/out/target/product/oneplus3/system/etc/libnfc-nxp.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/xxxxx/work/op3rr/out/target/product/oneplus3/system/etc/libnfc-nxp.conf'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/xxxxx/work/op3rr/out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/javalib.jar', needed by '/home/xxxxx/work/op3rr/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-full-debug.jar', 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 failed to build some targets (26 seconds) ####
Now I have no idea how to solve the build error, I've check the tcmiface in vendor/qcom/opensource/dpm/,
It's really exist,
So, I guess there must be something wrong in my build step.
please pay attention to roomservice.xml..
Go here https://forum.xda-developers.com/oneplus-3/how-to/guide-complete-guide-building-t3477198
Read the bit about repo sync and roomservice.xml as this will download the bits needed for OP3..
The real error is actually this one:
lunch 96
Looking for dependencies in device/oneplus/oneplus3
Looking for dependencies in device/oppo/common
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
Build will not complete without dependencies, which are related to roomservice.xml if my memory serve
hagar006 said:
please pay attention to roomservice.xml..
Go here https://forum.xda-developers.com/oneplus-3/how-to/guide-complete-guide-building-t3477198
Read the bit about repo sync and roomservice.xml as this will download the bits needed for OP3..
The real error is actually this one:
lunch 96
Looking for dependencies in device/oneplus/oneplus3
Looking for dependencies in device/oppo/common
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
Build will not complete without dependencies, which are related to roomservice.xml if my memory serve
Click to expand...
Click to collapse
Thanks a lot! You save my time!
I almost give up trying building this ROM.
keai4le said:
Thanks a lot! You save my time!
I almost give up trying building this ROM.
Click to expand...
Click to collapse
You might more than likely get errors during the build but less so if roomservice.xml is in order.. Just take your time as stay calm during errors
hagar006 said:
You might more than likely get errors during the build but less so if roomservice.xml is in order.. Just take your time as stay calm during errors
Click to expand...
Click to collapse
I've been successful build this ROM! No error when building, thanks!
mind helping me out?
i trying to build for the Pixel XL....
i know it has to be tweaked but what steps did you take after you downloaded all the source code and set up the build environment?
Thanks
@hagar006 Is this thread still active? I'm having trouble building RR for my kltedv.
Hi, this is the first time I try to build a custom ROM. I'm interested in building Pixel Experience for addison. I set up build environment, ran repo sync, . build/envsetup.sh, breakfast addison and got this error:
Code:
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
Device addison not found. Attempting to retrieve device repository from PixelExperience-Devices Github ([url]http://github.com/PixelExperience-Devices[/url]).
Repository for addison not found in the PixelExperience-Devices Github repository list.
If this is in error, you may need to manually add it to your .repo/local_manifests/pixel.xml
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
** Don't have a product spec for: 'addison'
** Do you have the right repo manifest?
So I renamed my roomservice.xml to pixel.xml but nothing changed. It contains this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Alberto97/android_device_motorola_addison" path="device/motorola/addison" remote="github" revision="oreo-mr1" />
<project name="Alberto97/android_kernel_motorola_msm8953" path="kernel/motorola/msm8953" remote="github" revision="oreo-mr1" />
<project name="Alberto97/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="oreo-mr1-addison" />
</manifest>
I found out that . build/envsetup.sh looks for a file called vendorsetup.sh which is not present in @Alberto97 's device tree, so I manually created it, placed it in device/motorola/addison and put this:
Code:
add_lunch_combo aosp_addison-userdebug
add_lunch_combo aosp_addison-user
Now, . build/envsetup.sh gives (before it gave nothing):
Code:
including device/motorola/addison/vendorsetup.sh
including vendor/aosp/vendorsetup.sh
And lunch aosp_addison-userdebug gives:
Code:
Looking for dependencies
============================================
CUSTOM_VERSION=
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
BUILD_ID=OPM1.171019.013
============================================
But breakfast addison and brunch addison give the same error mentioned above
Code:
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
Device addison not found. Attempting to retrieve device repository from PixelExperience-Devices Github ([url]http://github.com/PixelExperience-Devices[/url]).
Repository for addison not found in the PixelExperience-Devices Github repository list.
If this is in error, you may need to manually add it to your .repo/local_manifests/pixel.xml
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
** Don't have a product spec for: 'addison'
** Do you have the right repo manifest?
Any ideas?
I tried running brunch aosp_addison-userdebug instead of brunch addison and got this:
Code:
including vendor/aosp/vendorsetup.sh
Looking for dependencies
============================================
CUSTOM_VERSION=
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
BUILD_ID=OPM1.171019.013
============================================
============================================
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
BUILD_ID=OPM1.171019.013
============================================
environment variables changed value:
CC_WRAPPER ("" -> "/usr/bin/ccache")
forcing build manifest regeneration
[2/2] bootstrap /home/ignacio/pixel/out/soong/.minibootstrap/build.ninja.in
[1/1] /home/ignacio/pixel/out/soong/.b...pixel/out/soong/.bootstrap/build.ninja
[52/53] glob vendor/*/*/*/*/*/*/Android.bp
[12/12] /home/ignacio/pixel/out/soong/...me/ignacio/pixel/out/soong/build.ninja
/home/ignacio/pixel/out/build-aosp_addison.ninja is missing, regenerating...
Clean step: rm -rf /home/ignacio/pixel/out/target/product/addison/system/etc/audio_policy.conf
Clean step: rm -rf /home/ignacio/pixel/out/target/product/addison/system/etc/audio_policy.conf
build/core/base_rules.mk:238: error: vendor/qcom/opensource/dataservices/rmnetctl/src: MODULE.TARGET.SHARED_LIBRARIES.librmnetctl already defined by device/motorola/addison/rmnetctl/src.
23:10:23 ckati failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
real 8m45.232s
user 1m57.032s
sys 0m13.408s
I wonder why CUSTOM_VERSION= is empty
Did you make the ROM?
Sorry it's been over a year, but I just found this thread here. I'm not working on the Z, but from what PixelExperience shows you won't need to run brunch or anything else.
Once you run lunch and it builds successfully run:
Code:
make -jx
where x is the amount of cpu threads you want to devote the make process to.
So if you have 4 cpu cores, but 8 threads, you can run:
make -j10 to speed up the process.
Usually the general amount to use is:
make -j4 so it doesn't bog down your computer if you have an i7/i5 equivalent processor.