I am trying to build nexus 5 AOSP from nougat source 7.1.1 from AOSP github
but Im getting the following errors
Code:
[email protected]:~/bin/swi-ahmed-aosp$ sudo make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
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.8.0-39-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=N6F26U
OUT_DIR=out
============================================
Running kati to generate build-aosp_arm.ninja...
out/build-aosp_arm.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
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.8.0-39-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=N6F26U
OUT_DIR=out
============================================
Checking build tools versions...
************************************************************
You asked for an OpenJDK based build but your version is
java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode).
************************************************************
build/core/main.mk:231: *** stop.
build/core/ninja.mk:163: recipe for target 'out/build-aosp_arm.ninja' failed
make: *** [out/build-aosp_arm.ninja] Error 1
Can anyone please help I followed the steps from google side
1. Repo init
2. Repo Sync
3. source build/envsetup.sh
4. lunch
5. Select 'bullhead' , Nexus 5X
can any one please help
Related
hi SM-P605 cm11 build err
help you..
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150407-UNOFFICIAL-lt03lte
TARGET_PRODUCT=cm_lt03lte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-33-generic-x86_64-with-Ubuntu-14.10-utopic
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/windows8k/cm11/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150407-UNOFFICIAL-lt03lte
TARGET_PRODUCT=cm_lt03lte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-33-generic-x86_64-with-Ubuntu-14.10-utopic
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/windows8k/cm11/out
============================================
Export includes file: system/core/logwrapper/Android.mk -- /home/windows8k/cm11/out/target/product/lt03lte/obj/STATIC_LIBRARIES/liblogwrap_intermediates/export_includes
Export includes file: external/libselinux/Android.mk -- /home/windows8k/cm11/out/target/product/lt03lte/obj/STATIC_LIBRARIES/libselinux_intermediates/export_includes
Export includes file: system/core/libmincrypt/Android.mk -- /home/windows8k/cm11/out/target/product/lt03lte/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
make: *** No rule to make target '/home/windows8k/cm11/out/target/product/lt03lte/obj/STATIC_LIBRARIES/libinit_msm_intermediates/export_includes', needed by '/home/windows8k/cm11/out/target/product/lt03lte/obj/EXECUTABLES/init_intermediates/import_includes'. 멈춤. -stop
make: *** 끝나지 않은 작업을 기다리고 있습니다....
Export includes file: system/extras/ext4_utils/Android.mk -- /home/windows8k/cm11/out/target/product/lt03lte/obj/STATIC_LIBRARIES/libext4_utils_static_intermediates/export_includes
touch /home/windows8k/cm11/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
echo '#ifndef 'policy_parse_h > /home/windows8k/cm11/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#define 'policy_parse_h >> /home/windows8k/cm11/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
cat /home/windows8k/cm11/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /home/windows8k/cm11/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> /home/windows8k/cm11/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
rm -f /home/windows8k/cm11/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
[email protected]:~/cm11$
breakfast fails with this completely useless error message:
Code:
[email protected]: ~/android/system$ breakfast idol3
including vendor/lineage/vendorsetup.sh
Looking for dependencies in device/alcatel/idol3
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
LINEAGE_VERSION=15.0-20171101-UNOFFICIAL-idol3
TARGET_PRODUCT=lineage_idol3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPR1
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.9-1-ARCH-x86_64-with-glibc2.2.5
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR6.170623.012
OUT_DIR=/home/runemoro/android/system/out
AUX_OS_VARIANT_LIST=
============================================
Why isn't it telling me which dependency file exactly is missing? How can I check?
same problem, common answer is to add <project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1" /> to roomservice, and resync repo, which i did, i checked that it download the files from github, but no change
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.
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
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