Building from source, XT1955-5 - Moto G7 Power Guides, News, & Discussion

The official ROM for ocean should be available soon, but not soon enough for me. I am new to LineageOS and custom ROMs in general, but I want to learn by doing.
I have so far
repo sync of LineageOS source
breakfast ocean
after step 2, the repo for the Lineage kernel of ocean downloaded sucesfully, but I got an error at the end that said:
Code:
frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk:19: error: _nic.PRODUCTS.[[device/motorola/ocean/lineag$
_ocean.mk]]: "vendor/motorola/sdm632-common/sdm632-common-vendor.mk" does not exist.
21:42:25 dumpvars failed with: exit status 1
frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk:19: error: _nic.PRODUCTS.[[device/motorola/ocean/lineag$
_ocean.mk]]: "vendor/motorola/sdm632-common/sdm632-common-vendor.mk" does not exist.
21:42:26 dumpvars failed with: exit status 1
** Don't have a product spec for: 'lineage_ocean'
** Do you have the right repo manifest?
Can someone explain what this error means and how I can resolve it?
Many thanks.

Oh you're asking questions. I feel misled.

You need the vendor tree. Check The Muppets GitHub.

Rondeau79 said:
You need the vendor tree. Check The Muppets GitHub.
Click to expand...
Click to collapse
Ok I found what you are talking about. Now do I need to do a `repo sync` on the Muppets repo corresponding to my device's kernel? Is that what you mean by getting the vendor tree? Or do I do that but for the manifest repo instead? If so where do I put it?

Economic_Hitman said:
Ok I found what you are talking about. Now do I need to do a `repo sync` on the Muppets repo corresponding to my device's kernel? Is that what you mean by getting the vendor tree? Or do I do that but for the manifest repo instead? If so where do I put it?
Click to expand...
Click to collapse
You need to clone the vendor motorola repository.

I followed these instructions: https://wiki.lineageos.org/devices/ocean/build
However, I was unable to get the vendor files using the method described on that page. I pulled them from a github repository, as mentioned by the previous posters.
Now I just need to get the courage to install my newly-built Lineage onto my device...

Greek2me said:
I followed these instructions: https://wiki.lineageos.org/devices/ocean/build
However, I was unable to get the vendor files using the method described on that page. I pulled them from a github repository, as mentioned by the previous posters.
Now I just need to get the courage to install my newly-built Lineage onto my device...
Click to expand...
Click to collapse
Only way to learn

Greek2me said:
However, I was unable to get the vendor files using the method described on that page. I pulled them from a github repository, as mentioned by the previous posters.
Now I just need to get the courage to install my newly-built Lineage onto my device...
Click to expand...
Click to collapse
Congratulations!
My build failed, I think I don't have enough RAM.
Here's my output for brunch
Code:
$ brunch ocean
Looking for dependencies in device/motorola/ocean
Looking for dependencies in device/motorola/sdm632-common
Looking for dependencies in kernel/motorola/sdm632
kernel/motorola/sdm632 has no additional dependencies.
Looking for dependencies in external/bson
external/bson has no additional dependencies.
Looking for dependencies in system/qcom
system/qcom has no additional dependencies.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200910-UNOFFICIAL-ocean
TARGET_PRODUCT=lineage_ocean
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-47-generic-x86_64-Ubuntu-18.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/motorola/ocean vendor/motorola/sdm632-common device/motorola/sdm632-common device/motorola/ocean hard$
are/qcom-caf/msm8996
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200910-UNOFFICIAL-ocean
TARGET_PRODUCT=lineage_ocean
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-47-generic-x86_64-Ubuntu-18.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/motorola/ocean vendor/motorola/sdm632-common device/motorola/sdm632-common device/motorola/ocean hardw
are/qcom-caf/msm8996
============================================
[100% 140/140] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile
out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
Killed
15:39:25 soong bootstrap failed with: exit status 1
#### failed to build some targets (01:49 (mm:ss)) ####

Economic_Hitman said:
Congratulations!
My build failed, I think I don't have enough RAM.
Here's my output for brunch
Click to expand...
Click to collapse
Maby internet problem

roadkill42 said:
Maby internet problem
Click to expand...
Click to collapse
Well, I have a 100mbps Ethernet connection, it's not the best but it's consistent. And I tried brunch 3 times and it failed at this point each time.
¯\_(⊙︿⊙)_/¯

Economic_Hitman said:
Congratulations!
My build failed, I think I don't have enough RAM.
Here's my output for brunch
Code:
$ brunch ocean
Looking for dependencies in device/motorola/ocean
Looking for dependencies in device/motorola/sdm632-common
Looking for dependencies in kernel/motorola/sdm632
kernel/motorola/sdm632 has no additional dependencies.
Looking for dependencies in external/bson
external/bson has no additional dependencies.
Looking for dependencies in system/qcom
system/qcom has no additional dependencies.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200910-UNOFFICIAL-ocean
TARGET_PRODUCT=lineage_ocean
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-47-generic-x86_64-Ubuntu-18.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/motorola/ocean vendor/motorola/sdm632-common device/motorola/sdm632-common device/motorola/ocean hard$
are/qcom-caf/msm8996
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200910-UNOFFICIAL-ocean
TARGET_PRODUCT=lineage_ocean
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-47-generic-x86_64-Ubuntu-18.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/motorola/ocean vendor/motorola/sdm632-common device/motorola/sdm632-common device/motorola/ocean hardw
are/qcom-caf/msm8996
============================================
[100% 140/140] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile
out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
Killed
15:39:25 soong bootstrap failed with: exit status 1
#### failed to build some targets (01:49 (mm:ss)) ####
Click to expand...
Click to collapse
I tried running brunch in a tty3 session without GUI interface so I could save RAM.
When I reran brunch I tried limiting the number of threads by doing
Code:
mka bacon -j2
and even
Code:
make bacon -j2
but I got the same result.
I checked verbose.log.gz and it was the same error as my post above, simply that
Code:
out/soong/build.ninja
failed and was killed, but no more detail, like which line or call it failed on.
According to Someone On Reddit
make -j N does not work as intended in the same way mka -j N does not work. Both do actually spawn only N parallel build processes but these in turn spawn dependency build processes with -j $(nproc --all)
Click to expand...
Click to collapse

Related

DEV PLS Need Help

hi guys i download cm12.1 repos for git ....
i go terminal
. build/envsetup.sh
breakfast e975
Code:
[email protected]:~/RS/cm12.1$ breakfast e975
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1
CM_VERSION=12.1-20150421-UNOFFICIAL-e975
TARGET_PRODUCT=cm_e975
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_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-49-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY47O
OUT_DIR=/home/proxy13/RS/cm12.1/out
============================================
and i go
brunch e975 in terminal and waiting 30mnt .....
it is give me error
Code:
target thumb C++: libRSCpuRef <= frameworks/rs/cpu_ref/rsCpuScript.cpp
target thumb C++: libRSCpuRef <= frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S: Assembler messages:
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S:1429: Error: unexpected end of file in irp or irpc
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
make: *** [/home/proxy13/RS/cm12.1/out/target/product/e975/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o] Error 1
make: *** Bitmemiş işler için bekliyor....(waiting for not finished works)
[email protected]:~/RS/cm12.1$
what can i do ??
@Kevinjoa @dadi11 @mordesku
UP
metrixx02 said:
UP
Click to expand...
Click to collapse
Switch System Language to English. Then start clean buiild after reboot.

How can I build Resurrection Remix from source

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.

Building LineageOS 14.1 fail

I am following the instructions at: https://wiki.lineageos.org/devices/addison/build
And I get:
Running kati to generate build-lineage_addison.ninja...
Environment variable BUILD_NUMBER was modified (d9e3d5f346 => cb6897b824), regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20171114_151325-UNOFFICIAL-addison
TARGET_PRODUCT=lineage_addison
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
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.10.0-38-generic-x86_64-with-Ubuntu-17.04-zesty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/motozplay/android/lineage/out
============================================
find: ‘/home/motozplay/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/motorola/addison/proprietary/framework/izat.xt.srv.jar', needed by '/home/motozplay/android/lineage/out/target/product/addison/obj/JAVA_LIBRARIES/izat.xt.srv_intermediates/izat.xt.srv.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: Leaving directory '/home/motozplay/android/lineage'
#### make failed to build some targets (20 seconds) ####
[email protected]:~/android/lineage$
https://wiki.lineageos.org/extracting_blobs_from_zips.html fixed it.
Help compiling LineageOS 14 for T580 [SOLVED]
I'm trying to compile LineageOS 14 for the T580 because I always wanted to learn how but I'm running into a problem. I have synced the repo, device tree, vendor tree and kernel source. When I run...
forum.xda-developers.com
fixed it.

[SOLVED]Need help building LineageOS

Hey guys,
I'm kind of familiar with flashing Custom ROM's (I know how to read Guides) but this is the first time im trying to build one myself, since I want to use "swap" and my current kernel does not support it.
I'm using Windows 10 and have set up VirtualBox with the latest LTS Ubuntu and this is the Guide I'm following: wiki.lineageos.org/devices/m8/build
I did everything as the Guide told me up to the step where I have to run "brunch m8" which results in an Error, see below for more details.
[email protected]:~/android/lineage$ brunch m8
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/htc/m8
Looking for dependencies in device/htc/m8-common
Looking for dependencies in device/htc/msm8974-common
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20190516-UNOFFICIAL-m8
TARGET_PRODUCT=lineage_m8
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.18.0-20-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/josha/android/lineage/out
============================================
make: Verzeichnis „/home/josha/android/lineage“ wird betreten
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20190516-UNOFFICIAL-m8
TARGET_PRODUCT=lineage_m8
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.18.0-20-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/josha/android/lineage/out
============================================
Running kati to generate build-lineage_m8.ninja...
vendor/htc/m8/BoardConfigVendor.mk was modified, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20190516-UNOFFICIAL-m8
TARGET_PRODUCT=lineage_m8
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.18.0-20-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/josha/android/lineage/out
============================================
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
find: ‘/home/josha/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: Datei oder Verzeichnis nicht gefunden
build/core/Makefile:34: warning: overriding commands for target `/home/josha/android/lineage/out/target/product/m8/system/lib/hw/consumerir.default.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/josha/android/lineage/out/target/product/m8/system/lib/hw/consumerir.default.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/htc/m8-common/proprietary/bin/cir_fw_update', needed by '/home/josha/android/lineage/out/target/product/m8/system/bin/cir_fw_update', 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: Verzeichnis „/home/josha/android/lineage“ wird verlassen
#### make failed to build some targets (02:58 (mm:ss)) ####
I have no Idea what I did wrong and after googling for hours I'm hoping to find some help here.
Also I'd like to ask a general Question about ROM's and Kernels: Can I use any Kernel (for the specific device ofc) in combination with let's say LineageOS or does the Kernel need to be made explicitly for the ROM?
Thank you very much!
UPDATE:
I rechecked everything twice and noticed I didn't set an e-mail and name when i ran "repo init -u github.com/LineageOS/android.git -b cm-14.1",
also this time I extracted the proprietary blobs from installable zip instead of my phone.
And (ofc) i ran into another Error when running "brunch m8" but "LC_ALL=C brunch m8" seemed to fix it.
It's compiling now and I'll let you know tomorrow if it worked!
UPDATE 2:
Allright it looks like I did it!
I just flashed the modified kernel and everything seems to work as intended! But time will tell.
Since I'm not allowed to post links I can't share it with you here but PM me if you want and I'll give you a download link.
All I modified was setting "CONFIG_SWAP" to true.
Greetings,
Jexome

LineageOS build failed with FAILED:bacon

Hello there,
I have to admit that this is my second thread, but it seems that my question is well too complicated to be answered. If this is the case, please tell me how i can ask "better".
1st thread without answer I've found: https://forum.xda-developers.com/android/help/semi-ported-brunch-tiare-failed-bacon-t3968087
2nd: https://forum.xda-developers.com/ch...ageos-14-1-t3551484/post82213275#post82213275
3rd / mine: https://forum.xda-developers.com/android/help/android-build-failed-bacon-t4187229
So my build ends with FAILED:bacon.
Code:
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20201106-UNOFFICIAL-nx616j
TARGET_PRODUCT=lineage_nx616j
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-52-generic-x86_64-Linux-Mint-20
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/nubia/sdm845-common device/nubia/sdm845-common hardware/qcom-caf/sdm845
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20201106-UNOFFICIAL-nx616j
TARGET_PRODUCT=lineage_nx616j
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-52-generic-x86_64-Linux-Mint-20
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/nubia/sdm845-common device/nubia/sdm845-common h
ardware/qcom-caf/sdm845
============================================
[100% 545/545] build bacon
FAILED: bacon
/bin/bash -c "(ln -f out/target/product/nx616j/lineage-17.1-20201106-UNOFFICIAL
-nx616j.zip ) && (md5sum out/target/product/nx616j/lineage-17.1-20201106-UNOFFIC
IAL-nx616j.zip | sed \"s|out/target/product/nx616j/||\" > out/target/product/nx6
16j/lineage-17.1-20201106-UNOFFICIAL-nx616j.zip.md5sum ) && (echo \"Package Comp
lete: out/target/product/nx616j/lineage-17.1-20201106-UNOFFICIAL-nx616j.zip\" >&
2 )"
ln: cannot create hard link from 'out/target/product/nx616j/lineage-17.1-2020110
6-UNOFFICIAL-nx616j.zip' to './lineage-17.1-20201106-UNOFFICIAL-nx616j.zip': No
such file or directory
19:18:14 ninja failed with: exit status 1
#### failed to build some targets (4 seconds) ####
I'm getting the same error here, i remake my tree and still getting error. But this only happen with 64bits build , 32bits working normal. You fixed ?
thanks for help !!
Hey, sorry for the late reply.
I searched for quite some time as most sites regarding android builds are pretty hidden. I assumed that bacon was the codename to build, which meant that i was building for oneplus one instead of Nubia X. But bacon is the standard variable for lunch, so "breakfast nx616j" will setup the environment and "lunch bacon" will build what you have just set up. Alternatively, you can run "brunch nx616j" which is everything in one step.
So the part that is more insteresting is the one below "FAILED: bacon" from there you'll see which problem it's having alltogether. In my case there were some bugs including makefiles so it skipped some steps and thought it was ready with building when it really was quite the opposite.
Regards

Categories

Resources