AOSP Make errors - Nexus 5 Q&A, Help & Troubleshooting

I'm attempting to build aosp, but make keeps failing with the following error. I have not been able to determine the cause/solution.
Code:
out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_instrumentation_exit: error: unsupported reloc 42
out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_deoptimize: error: unsupported reloc 42
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:51: recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed
make: *** [out/host/linux-x86/obj/lib/libart.so] Error 1
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=aosp_hammerhead
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-4.4.0-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=M4B30Z
OUT_DIR=out
Any ideas?

Related

[Q] How to build Android Source for Moto G?

I want to know how to build android source code
using Motorola-provided sources at sourceforge.net/projects/motog.motorola/files
I tried following works:
Download pure Android Sources from google
Replace some files with Motorola-provided sources
Follow README file instructions
----------------------------- My terminal output messages ------------------------------------
[email protected]:~/android1$ source build/envsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/samsung_slsi/arndale/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/android1$ lunch generic-user
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JLS36G
OUT_DIR=out
============================================
[email protected]:~/android1$ make BOARD_HAVE_BLUETOOTH=true TARGET_BOARD_PLATFORM=msm8226 out/target/product/generic/system/bin/bluetoothd
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JLS36G
OUT_DIR=out
============================================
Checking build tools versions...
motorola/security/moto_crypto/Android.mk:15: build/dlkm/AndroidKernelModule.mk: No such file or directory
make: *** No rule to make target `build/dlkm/AndroidKernelModule.mk'. Stop.
Shouldn't you have a device/motorola/falcon or something similar included upon running lunch? (At least if you're trying to build en entire ROM vs just a kernel.)
You might be missing a dependency, check out line 15 in that Android.mk file for possible clues.
Thanks for reply
I think I need some more files to succeed in building but there are no more files at Motorola Opensource Site
I've already suceeded in building for GS3 in the same way.
bump

CM14 Building (fail?!)

Hey Guys,
im trying to build CM14 for the galaxy S6 (g920f/i).
I 'm on Ubuntu 16.04 64bit with virtaulbox. I already done with the most steps like setting up git and syncing the repo. Now i have to repo sync device specific files, but it fails every time with a fetching error:
Code:
Fetching projects: 99% (581/586) error: Cannot fetch CyanogenMod/android_device_samsung_zerofltexx
Warn: --force-broken, continuing to sync
Fatal: couldn't find remote ref refs/heads/cm-14
error: cannot fetch bmc08gt/kernel_samsung_exynos7420
Warn: --force-broken, continuing to sync
Fetching projects: 100% (586/586)
Error: exited sync due to fetch errors
I tryed to sync like 10000000 times with commands like:
repo sync -j4
repo sync -j4 -f
repo sync -j4 -f --force-broken
Any ideas?
The "couldn't find remote ref refs/heads/cm-14" part shows the actual error.
There's no such branch "cm-14". Check your xml files.
OK, i got all thing together, but now i have a new problem
Code:
[email protected]:~/android/system$ 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
[email protected]:~/android/system$ brunch zerofltexx
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
CM_VERSION=14.0-20161220-UNOFFICIAL-zerofltexx
TARGET_PRODUCT=cm_zerofltexx
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
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-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=NBD90Z
OUT_DIR=/home/spongebob/android/system/out
============================================
make: Verzeichnis „/home/spongebob/android/system“ wird betreten
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
CM_VERSION=14.0-20161220-UNOFFICIAL-zerofltexx
TARGET_PRODUCT=cm_zerofltexx
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
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-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=NBD90Z
OUT_DIR=/home/spongebob/android/system/out
============================================
Running kati to generate build-cm_zerofltexx.ninja...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
CM_VERSION=14.0-20161220-UNOFFICIAL-zerofltexx
TARGET_PRODUCT=cm_zerofltexx
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
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-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=NBD90Z
OUT_DIR=/home/spongebob/android/system/out
============================================
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
build/core/binary.mk:1236: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1236: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1236: 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:1236: 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/spongebob/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates": Datei oder Verzeichnis nicht gefunden
No private recovery resources for TARGET_DEVICE zerofltexx
vendor/cm/build/tasks/kernel.mk:160: ***************************************************************
vendor/cm/build/tasks/kernel.mk:161: * Using prebuilt kernel binary instead of source *
vendor/cm/build/tasks/kernel.mk:162: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
vendor/cm/build/tasks/kernel.mk:163: * Please configure your device to download the kernel *
vendor/cm/build/tasks/kernel.mk:164: * source repository to kernel/samsung/exynos7420
vendor/cm/build/tasks/kernel.mk:165: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
vendor/cm/build/tasks/kernel.mk:166: * for more information *
vendor/cm/build/tasks/kernel.mk:167: ***************************************************************
build/core/binary.mk:703: warning: overriding commands for target `/home/spongebob/android/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:703: warning: ignoring old commands for target `/home/spongebob/android/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:708: warning: overriding commands for target `/home/spongebob/android/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:708: warning: ignoring old commands for target `/home/spongebob/android/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/base_rules.mk:316: warning: overriding commands for target `/home/spongebob/android/system/out/target/product/zerofltexx/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/spongebob/android/system/out/target/product/zerofltexx/root/res/images/charger/battery_fail.png'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/spongebob/android/system/out/target/product/zerofltexx/kernel', needed by '/home/spongebob/android/system/out/target/product/zerofltexx/boot.img', 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/spongebob/android/system“ wird verlassen
#### make failed to build some targets (21:13 (mm:ss)) ####
[email protected]:~/android/system$
i think my laptop trolls like a boss.
Code:
vendor/cm/build/tasks/kernel.mk:160: ***************************************************************
vendor/cm/build/tasks/kernel.mk:161: * Using prebuilt kernel binary instead of source *
vendor/cm/build/tasks/kernel.mk:162: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
vendor/cm/build/tasks/kernel.mk:163: * Please configure your device to download the kernel *
vendor/cm/build/tasks/kernel.mk:164: * source repository to kernel/samsung/exynos7420
vendor/cm/build/tasks/kernel.mk:165: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
vendor/cm/build/tasks/kernel.mk:166: * for more information *
vendor/cm/build/tasks/kernel.mk:167: ***************************************************************
Console output says everything
Sry i'm so stupid? its my first try to build from source.
ItzTazzy said:
Sry i'm so stupid its my first try to build from source.
Click to expand...
Click to collapse
hey bro can you share when is done? thx
When its done i will share it ?
ItzTazzy said:
When its done i will share it
Click to expand...
Click to collapse
Yes. Please

module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'

module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'
Os-Ubuntu 18.10
android os-lineage os 16
download the lineage os 16 code using git
cd lineage_16
repo sync
make clobber
output
----------
15:09:36 Entire build directory removed.
source build/envsetup.sh
o/p
------------
including device/generic/car/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-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/uml/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including vendor/lineage/vendorsetup.sh
including sdk/bash_completion/adb.bash
lunch
o/p
-------
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. aosp_car_arm-userdebug
8. aosp_car_arm64-userdebug
9. aosp_car_x86-userdebug
10. aosp_car_x86_64-userdebug
11. mini_emulator_arm64-userdebug
12. m_e_arm-userdebug
13. mini_emulator_x86_64-userdebug
14. mini_emulator_x86-userdebug
15. uml-userdebug
16. aosp_angler-userdebug
Which would you like? [aosp_arm-eng] :11
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=mini_emulator_arm64
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=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-Ubuntu-18.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/home/taqi/Documents/android-lineage-16.0/out
============================================
$make -j4
o/p
--------------
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=mini_emulator_arm64
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=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-Ubuntu-18.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/home/taqi/Documents/android-lineage-16.0/out
============================================
[1/1] /home/taqi/Documents/android-lineage-16.0/out/soong/.mi...cuments/android-lineage-16.0/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[80/80] /home/taqi/Documents/android-lineage-16.0/out/soong/....ome/taqi/Documents/android-lineage-16.0/out/soong/build.ninja
FAILED: /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja
/home/taqi/Documents/android-lineage-16.0/out/soong/.bootstrap/bin/soong_build -t -l /home/taqi/Documents/android-lineage-16.0/out/.module_paths/Android.bp.list -b /home/taqi/Documents/android-lineage-16.0/out/soong -n /home/taqi/Documents/android-lineage-16.0/out -d /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja.d -o /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja Android.bp
error: vendor/lineage/build/soong/Android.bp:31:8: module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'
ninja: build stopped: subcommand failed.
15:49:16 soong bootstrap failed with: exit status 1
#### failed to build some targets (03:03 (mm:ss)) ####
Please conduct "repo sync" again. This issue will solve.
I've got the same issue. Unfortunately repo sync did not fix it. What is the patch/commit that fixes this?
SaburoSiro said:
Please conduct "repo sync" again. This issue will solve.
Click to expand...
Click to collapse
Could you please link the commit?
[email protected] said:
Os-Ubuntu 18.10
android os-lineage os 16
download the lineage os 16 code using git
cd lineage_16
repo sync
make clobber
output
----------
15:09:36 Entire build directory removed.
source build/envsetup.sh
o/p
------------
including device/generic/car/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-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/uml/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including vendor/lineage/vendorsetup.sh
including sdk/bash_completion/adb.bash
lunch
o/p
-------
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. aosp_car_arm-userdebug
8. aosp_car_arm64-userdebug
9. aosp_car_x86-userdebug
10. aosp_car_x86_64-userdebug
11. mini_emulator_arm64-userdebug
12. m_e_arm-userdebug
13. mini_emulator_x86_64-userdebug
14. mini_emulator_x86-userdebug
15. uml-userdebug
16. aosp_angler-userdebug
Which would you like? [aosp_arm-eng] :11
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=mini_emulator_arm64
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=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-Ubuntu-18.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/home/taqi/Documents/android-lineage-16.0/out
============================================
$make -j4
o/p
--------------
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=mini_emulator_arm64
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=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-Ubuntu-18.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/home/taqi/Documents/android-lineage-16.0/out
============================================
[1/1] /home/taqi/Documents/android-lineage-16.0/out/soong/.mi...cuments/android-lineage-16.0/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[80/80] /home/taqi/Documents/android-lineage-16.0/out/soong/....ome/taqi/Documents/android-lineage-16.0/out/soong/build.ninja
FAILED: /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja
/home/taqi/Documents/android-lineage-16.0/out/soong/.bootstrap/bin/soong_build -t -l /home/taqi/Documents/android-lineage-16.0/out/.module_paths/Android.bp.list -b /home/taqi/Documents/android-lineage-16.0/out/soong -n /home/taqi/Documents/android-lineage-16.0/out -d /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja.d -o /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja Android.bp
error: vendor/lineage/build/soong/Android.bp:31:8: module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'
ninja: build stopped: subcommand failed.
15:49:16 soong bootstrap failed with: exit status 1
Click to expand...
Click to collapse
[email protected] said:
#### failed to build some targets (03:03 (mm:ss)) ####
Click to expand...
Click to collapse
your command make -j4 is wrong. Just use 'mka bacon -j4' if you are building a rom.
Im having the same issue building for flounder.
Hi. A am having the same issue.
Dut found solution, may be.
This link can be helpful.
This is a device tree adaptation problem. You just need to do a "breakfast <device_code>", and the error that it throws will automatically tell you what filename that your aosp_device.mk should have...
In my case, I had the same problem, when I'm trying with xpe_sunny.mk, but the actual string I should have was xperience_sunny.mk
After adapting my device tree (Android.mk, common lunch choices, rom.dependencies, etc,) then PRODUCT_SOONG_NAMESPACES successfully took all the directories that it needed.

[Issue] ninja: build stopped: subcommand failed

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=aosp_x86_64
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.11.0-7633-generic-x86_64-Pop!_OS-20.04-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.210805.001.A1
OUT_DIR=/home/ashutoshtripathi/RevengeOS/out
PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl
hardware/google/camera hardware/google/camera/devices/EmulatedCamera device/gene
ric/goldfish device/generic/goldfish-opengl
============================================
[100% 183/183] /home/ashutoshtripathi/RevengeOS/out/soong/.bootstrap/bin/soong_b
FAILED: /home/ashutoshtripathi/RevengeOS/out/soong/build.ninja
/home/ashutoshtripathi/RevengeOS/out/soong/.bootstrap/bin/soong_build -t -l /hom
e/ashutoshtripathi/RevengeOS/out/.module_paths/Android.bp.list -b /home/ashutosh
tripathi/RevengeOS/out/soong -n /home/ashutoshtripathi/RevengeOS/out -d /home/as
hutoshtripathi/RevengeOS/out/soong/build.ninja.d -globFile /home/ashutoshtripath
i/RevengeOS/out/soong/.bootstrap/build-globs.ninja -o /home/ashutoshtripathi/Rev
engeOS/out/soong/build.ninja Android.bp
error: vendor/revengeos/build/soong/Android.bp:24:8: module "generated_kernel_in
cludes": cmd: unknown variable '$(ORIG_PATH)'
09:53:11 soong bootstrap failed with: exit status 1
ninja: build stopped: subcommand failed.
#### failed to build some targets (01:58 (mm:ss)) ####
Please solve this issue

Lineage OS 18.1 for kiwi UNOFFICIAL build failed

I tried to use the devicetree of lineage 17.1 to develop lineage 18.1(for kiwi), but it failed. The following information is displayed:
[email protected]:/media/boomhacker/9095972d-2b3b-4b05-a695-92bd6035c910/lineagekiwi$ source build/envsetup.sh
[email protected]:/media/boomhacker/9095972d-2b3b-4b05-a695-92bd6035c910/lineagekiwi$ breakfast kiwi
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
LINEAGE_VERSION=18.1-20211208-UNOFFICIAL-kiwi
TARGET_PRODUCT=lineage_kiwi
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.11.0-41-generic-x86_64-Zorin-OS-16
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.211001.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/huawei/kiwi device/huawei/kiwi/init device/huawei/kiwi/libshims device/huawei/kiwi/libwcnss_qmi device/huawei/kiwi/light hardware/qcom-caf/msm8916 vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensource/dataservices packages/apps/Bluetooth
============================================
[email protected]:/media/boomhacker/9095972d-2b3b-4b05-a695-92bd6035c910/lineagekiwi$ brunch kiwi
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
LINEAGE_VERSION=18.1-20211208-UNOFFICIAL-kiwi
TARGET_PRODUCT=lineage_kiwi
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.11.0-41-generic-x86_64-Zorin-OS-16
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.211001.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/huawei/kiwi device/huawei/kiwi/init device/huawei/kiwi/libshims device/huawei/kiwi/libwcnss_qmi device/huawei/kiwi/light hardware/qcom-caf/msm8916 vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensource/dataservices packages/apps/Bluetooth
============================================
21:14:39 ************************************************************
21:14:39 You are building on a machine with 15.5GB of RAM
21:14:39
21:14:39 The minimum required amount of free memory is around 16GB,
21:14:39 and even with that, some configurations may not work.
21:14:39
21:14:39 If you run into segfaults or other errors, try reducing your
21:14:39 -j value.
21:14:39 ************************************************************
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
LINEAGE_VERSION=18.1-20211208-UNOFFICIAL-kiwi
TARGET_PRODUCT=lineage_kiwi
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.11.0-41-generic-x86_64-Zorin-OS-16
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.211001.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/huawei/kiwi device/huawei/kiwi/init device/huawe
i/kiwi/libshims device/huawei/kiwi/libwcnss_qmi device/huawei/kiwi/light hardwar
e/qcom-caf/msm8916 vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensourc
e/dataservices packages/apps/Bluetooth
============================================
[100% 41/41] 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
error: device/huawei/kiwi/touch/Android.bp:16:1: module "[email protected]
0-service.kiwi" variant "android_arm64_armv8-a_cortex-a53": depends on //system/
libhidl:libhidltransport which is not visible to this module
21:14:49 soong bootstrap failed with: exit status 1
#### failed to build some targets (10 seconds) ####
[email protected]:/media/boomhacker/9095972d-2b3b-4b05-a695-92bd6035c910/lineagekiwi$
Can you help me? Thank you!
I'm trying to make devicetree for kiwi myself.

Categories

Resources