Make error during brunch, cm-14.1 - LineageOS Questions & Answers

Hi all, getting an odd error during brunch when building cm-14.1. I don't understand what is happening here - I guess it's trying to build kernel modules and can't find the kernel source. Any ideas??
Brunch:
Code:
make: Entering directory '/home/kalpol/Documents/android/lineage/kernel/lge/msm8992'
INSTALL block/test-iosched.ko
INSTALL drivers/gud/mcDrvModule.ko
Can't read private key
make[2]: *** [/home/kalpol/Documents/android/lineage/kernel/lge/msm8992/scripts /Makefile.modinst:30: block/test-iosched.ko] Error 255
make[2]: *** Waiting for unfinished jobs....
Can't read private key
make[2]: *** [/home/kalpol/Documents/android/lineage/kernel/lge/msm8992/scripts /Makefile.modinst:30: drivers/gud/mcDrvModule.ko] Error 255
make[1]: *** [/home/kalpol/Documents/android/lineage/kernel/lge/msm8992/Makefile:1002: modinst_] Error 2
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory '/home/kalpol/Documents/android/lineage/kernel/lge/msm8992' [ 8% 4439/50348] target Java: android...t-core-ui-api21_intermediates/classes)
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/kalpol/Documents/android/lineage'
make failed to build some targets (45:23 (mm:ss))
Roomservice:
Code:
<manifest>
<project name="LineageOS/android_device_lge_h815" path="device/lge/h815" remote="github" />
<project name="LineageOS/android_device_lge_g4-common" path="device/lge/g4-common" remote="github" />
<project name="LineageOS/android_kernel_lge_msm8992" path="kernel/lge/msm8992" remote="github" />
<project name="LineageOS/android_device_lge_common" path="device/lge/common" remote="github" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="LineageOS/android_hardware_sony_thermanager" path="hardware/sony/thermanager" remote="github" />
<project name="LineageOS/android_hardware_sony_timekeep" path="hardware/sony/timekeep" remote="github" />
<project name="LineageOS/android_packages_apps_FlipFlap" path="packages/apps/FlipFlap" remote="github" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge" depth="1" /> </manifest>

Related

[Q] How We Can Fix camera.msm7x30.so error?

Hello mates
During a brunch ancora for Ubuntu Touch i got the following error:
HTML:
device/samsung/ancora/camerahal/cameraHAL.cpp:517: error: undefined reference to 'android::eek:verlay::eek:verlay(void (*)(void*, int), void (*)(void*, unsigned int, unsigned int, unsigned int, unsigned int), void (*)(void*, void*), void*)'
collect2: error: ld returned 1 exit status
make: *** [/root/WORKING_DIRECTORY/out/target/product/ancora/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so] Error 1
make: *** Waiting for unfinished jobs....
Here my .repo/local_manifests/roomservice.xml configuration and if are there any other repos should be downloaded?
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="hak86/android_device_samsung_ancora" path="device/samsung/ancora" remote="github" revision="cm-10.1" />
<project name="hak86/samsung-kernel-msm7x30" path="kernel/samsung/msm7x30" remote="github" revision="cm-10.1" />
<project name="hak86/android_vendor_samsung_ancora" path="vendor/samsung/ancora" remote="github" revision="cm-10.1" />
<project name="hak86/android_device_samsung_msm8930-common" path="device/samsung/msm8930-common" remote="github" revision="cm-10.1" />
</manifest>
Any suggestions to fix it?
Thanks
No Answers
Admin please close this post because there are no answers, thanks.

[Q] Building CM12 for d2spr

First time building CyanogenMod from source and I've run into a roadblock.
I am at the point where I have CM12 repo synced and when i run
Code:
breakfast d2spr
I get the error:
** Don't have a product spec for: 'cm_d2spr'
** Do you have the right repo manifest?
so then I run
Code:
breakfast
it returns a list of devices and d2spr is not in the list.
So I'm kinda stuck here. how do I get the vendor files for d2spr?
Thanks!
I had to add a roomservice.xml to the local_manifests folder (under .repo in your main directory), to get it up and running:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Hrubak/d2spr-tools.git" path="d2spr-tools" remote="github" revision="cm-12.0" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" revision="cm-12.0" />
<project name="CyanogenMod/android_device_samsung_d2spr" path="device/samsung/d2spr" remote="github" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />
<project name="CyanogenMod/android_device_samsung_msm8960-common" path="device/samsung/msm8960-common" />
<project name="CyanogenMod/android_device_samsung_d2-common" path="device/samsung/d2-common" remote="github" />
<project name="CyanogenMod/android_kernel_samsung_d2" path="kernel/samsung/d2" remote="github" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" />
</manifest>
and then run
Code:
d2spr-tools/apply.sh
Be advised that when I ran the shell script I got a conflict with one of the files. You can either attempt to correct the error or run "git cherry-pick --abort" in the conflicting directory.
and then finally
Code:
. build/envsetup.sh && brunch d2spr
will compile it.
got these instructions from here:
github.com/Hrubak/d2spr-tools

mondrianwifi CM14 breakfast error

I'm trying to build Nougat for this device, which has recently been given a CM14 branch.
I'm getting binary blobs from TheMuppets and after syncing, breakfast gives me this error.
Code:
$ breakfast mondrianwifi
including vendor/cm/vendorsetup.sh
build/core/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Alto.
Device mondrianwifi not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_samsung_mondrianwifi
Default revision: staging/cm-14.0
Checking branch info
Using fallback branch: cm-14.0
Checking if device/samsung/mondrianwifi is fetched from android_device_samsung_mondrianwifi
CyanogenMod/android_device_samsung_mondrianwifi already fetched to device/samsung/mondrianwifi
Syncing repository to retrieve project.
Fetching project CyanogenMod/android_device_samsung_mondrianwifi
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies
Done
build/core/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Alto.
build/core/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Alto.
** Don't have a product spec for: 'cm_mondrianwifi'
** Do you have the right repo manifest?
This is my local manifest.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_mondrianwifi" path="device/samsung/mondrianwifi" remote="github" revision="cm-14.0" />
<project name="CyanogenMod/android_external_sony_boringssl-compat" path="external/sony/boringssl-compat" remote="github" revision="cm-14.0" />
<project name="CyanogenMod/android_device_samsung_msm8974-common" path="device/samsung/msm8974-common" remote="github" revision="cm-14.0" />
<project name="CyanogenMod/android_kernel_samsung_mondrianwifi" path="kernel/samsung/mondrianwifi" remote="github" revision="cm-14.0" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-14.0" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" revision="cm-14.0" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-14.0" />
</manifest>
Any clue?
Thanks.
Did you forget to run envsetup.sh first?
Which version of the MSM are you attempting to use?
Ichijoe said:
Did you forget to run envsetup.sh first?
Which version of the MSM are you attempting to use?
Click to expand...
Click to collapse
I didn't forget to run envsetup.sh
I'm using the MSM8974 repo that appears on github.
https://github.com/CyanogenMod/android_device_samsung_mondrianwifi/blob/cm-14.0/cm.dependencies
Which is this one
https://github.com/CyanogenMod/android_device_samsung_msm8974-common/tree/cm-14.0
Thanks for your reply.
(ratafraking stupid spellcheck!!)
It corrected JDK (Java Development Kit), back to MSM... Which is (if we're to be quite honest) a redundant question. As you really don't have much choice beyond the 8974.
But, my rational thinking is either telling me that JDK 7 is no longer supported, or you might have missed some dependency for JDK 8.
I only have JDK 8 installed, I have successfully compiled CM13 with it.

Device tree for AOSP?

Hello,
I'm trying to compile android-6.0.1_r74 for my HTC One M8, but the device tree from CyanogenMod doesn't even get recognized by the AOSP build environment.
I only get:
Code:
[email protected]:~/android-6.0.1_r74$ . build/envsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/htc/flounder/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including device/lge/bullhead/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/moto/shamu/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/android-6.0.1_r74$ choosecombo
Build type choices are:
1. release
2. debug
Which would you like? [1] 1
Which product would you like? [full] cm_m8
build/core/product_config.mk:222: *** Can not locate config makefile for product "cm_m8". Stop.
** Not a valid product: cm_m8
Which product would you like? [full] m8
build/core/product_config.mk:222: *** Can not locate config makefile for product "m8". Stop.
** Not a valid product: m8
Which product would you like? [full] cm
build/core/product_config.mk:222: *** Can not locate config makefile for product "cm". Stop.
** Not a valid product: cm
Which product would you like? [full] ^C
[email protected]:~/android-6.0.1_r74$
Does anybody
know of a device tree for the M8 that works with AOSP?
have an idea what has to be done to get the CM-device tree to work with AOSP?
know where I could find resources/documentation that could help solve this problem?
know of a person or chat group/irc/etc. that doesn't just ignore you completely?
Here is my manifest file. I already tried different configurations, but none of them worked:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="github" fetch="https://github.com/" />
<project name="SlimRoms/device_htc_m8" path="device/htc/m8" remote="github" revision="mm6.0" />
<project name="SlimRoms/device_htc_m8-common" path="device/htc/m8-common" remote="github" revision="mm6.0" />
<project name="CyanogenMod/android_device_htc_msm8974-common" path="device/htc/msm8974-common" remote="github" revision="cm-13.0" />
<project name="SlimRoms/kernel_htc_msm8974" path="kernel/htc/msm8974" remote="github" revision="mm6.0" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_hardware_sony_thermanager" path="hardware/sony/thermanager" remote="github" revision="cm-13.0" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_vendor_cm" path="vendor/cm" remote="github" revision="cm-13.0" />
</manifest>
<!-- somewehre from github
<manifest>
<remote name="github" fetch="https://github.com/" />
<project name="CyanogenMod/android_device_htc_m8" path="device/htc/m8" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_htc_m8-common" path="device/htc/m8-common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_htc_msm8974-common" path="device/htc/msm8974-common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_kernel_htc_msm8974" path="kernel/htc/msm8974" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" revision="cm-13.0" />
</manifest>-->
<!-- original
<manifest>
<remote name="github" fetch="https://github.com/" />
<project name="CyanogenMod/android_device_htc_m8" path="device/htc/m8" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_htc_m8-common" path="device/htc/m8-common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_htc_msm8974-common" path="device/htc/msm8974-common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_kernel_htc_msm8974" path="kernel/htc/msm8974" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_hardware_sony_thermanager" path="hardware/sony/thermanager" remote="github" revision="cm-13.0" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_vendor_cm" path="vendor/cm" remote="github" revision="cm-13.0" />
</manifest>-->

Problem building ROM (LineageOS CM14.1)

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

Categories

Resources