Hi everyone ,
I have faced problems. Before telling the problems ;
I want to learn how to build LineageOS on Ubuntu 18.04. I create the virtual device which is Ubuntu 18.04 64 Bit, 110GB 4 core 8GB.
And search the source on internet how to build custom rom
Then
I had installed the java jdk 8
I have created the rom file which is lineage , cd lineage
repo init -u git://github.com/LineageOS/android.git -b lineage-17.1
repo sync
git clone https://github.com/sm6150-dev/android_device_xiaomi_davinci/tree/lineage-17.1 -b lineage-17.1 device/xiaomi/davinci
git clone https://github.com/mishamyrt/davinci-pancake-kernel -b ten kernel/xiaomi/davinci
Some sources say you have to export/repo common tree but I did not find this, and you have to replace name, device name in some mk files which are the AndroidProducts.mk
when I see these files and open their, it seems ok I did not change anything.
croot
brunch davinci
and I faced this problem :
[100% 139/139] 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
internal error: failed to find dex jar path for module "WfdCommon"
internal error: failed to find dex jar path for module "WfdCommon"
13:52:32 soong bootstrap failed with: exit status 1
#### failed to build some targets (02:42 (mm:ss)) ####
Could you please tell me what can I do, How can I build unoffical LineageOS 17.1, I want to build.
What trees do I use ?
Thanks
I also have the same problem
06:51:32 Build sandboxing disabled due to nsjail error.
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200618-UNOFFICIAL-lmi
TARGET_PRODUCT=lineage_lmi
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a75
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-4.19.0-9-cloud-amd64-x86_64-Debian-GNU/Linux-10-(buster)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200605.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/xiaomi/lmi device/xiaomi/lmi hardware/qcom-caf/kona
============================================
[100% 2/2] 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/bu
ild.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
internal error: failed to find dex jar path for module "WfdCommon"
internal error: failed to find dex jar path for module "WfdCommon"
06:52:34 soong bootstrap failed with: exit status 1
ninja: build stopped: subcommand failed.
#### failed to build some targets (01:01 (mm:ss)) ####
Click to expand...
Click to collapse
I think something wrong with your local manifest.
Related
Hello all,
I'm getting started with Omnirom and wanted to compile a new device. After reading up on how this should be done, I tried a to set up a new device and compile but that resulted in errors. I figured it would be better to start out by trying to compile an existing device, however I get the same error message. Figuring this might be due to my set up, I ran the compilation in a clean docker instance with freshly installed openjdk-8-jdk and build tools, but same problem. I tried to find information about the error but there is not much to find online, so therefore I'm requesting your help.
The error I keep getting is:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/platform-test-annotations-host_intermediates/javalib.jar', needed by '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/compatibility-common-util-hostsidelib_intermediates/classes-full-debug.jar', missing and no known rule to make it
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Details about the steps and error are below:
Init and sync:
Code:
repo init -u git://github.com/omnirom/android.git -b android-7.1
repo sync
Add device in .repo/local_manifests:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/xiaomi/kenzo" name="android_device_xiaomi_kenzo" remote="omnirom" revision="android-7.1" />
</manifest>
Compile:
Code:
[email protected]:~/dev/doit2$ . build/envsetup.sh
including device/xiaomi/kenzo/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/dev/doit2$ lunch
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. omni_kenzo-userdebug
Which would you like? [aosp_arm-eng] 7
Looking for dependencies on: device/xiaomi/msm8956-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=omni_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
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.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-generic-x86_64-with-Ubuntu-17.10-artful
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/floeperd/dev/doit2/out
============================================
but I always end up with this error:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/platform-test-annotations-host_intermediates/javalib.jar', needed by '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/compatibility-common-util-hostsidelib_intermediates/classes-full-debug.jar', missing and no known rule to make it
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
I would appreciate any help. Thank you.
hi guys need help for build
[ 99% 1589/1590] glob vendor/qcom/opensource/interfaces/wifi/supplicant/1.0/Android.bp
ninja: error: '/home/eijounited99/android/hexagon/out/target/product/tissot/obj/STATIC_LIBRARIES/libgptutils_intermediates/export_includes', needed by '/home/eijounited99/android/hexagon/out/target/product/tissot/obj/EXECUTABLES/update_engine_sideload_intermediates/import_includes', missing and no known rule to make it
04:33:10 ninja failed with: exit status 1
#### failed to build some targets (01:26 (mm:ss)) ####
Click to expand...
Click to collapse
Sources:
git clone https://github.com/TheScarastic/android_device_xiaomi_msm8953-common device/xiaomi/msm8953-common
git clone https://github.com/TheScarastic/android_device_xiaomi_tissot device/xiaomi/tissot
git clone https://github.com/TheScarastic/android_kernel_xiaomi_msm8953 -b lineage-15.1-tissot kernel/xiaomi/msm8953
git clone https://github.com/TheScarastic/proprietary_vendor_xiaomi -b lineage-15.1-tissot vendor/xiaomi
Hi,
since last week I've been trying to port Omni to the ZTE nubia Z18 (NX606J) with more or less success but a few more obstacles to clear.
Basically, what I'm stuck at at the moment is the final make to build the actual ROM itself, but it's a bit more than that.. but first things first:
- I initialized the repo from OmniRom's android repository on GitHub and successfully ran repo sync
Code:
repo init -u git://github.com/omnirom/android.git -b android-9.0 && repo sync -j `nproc` -c -f --no-clone-bundle
- I cloned the device's config from youyim123's GitHub into device/nubia/nx606j, as per the envsetup.mk (so it finds the appropriate vendorsetup)
Code:
git clone https://github.com/youyim123/android_device_nubia_nx609j.git -b master
- I run . build/envsetup.sh and then lunch omni-nx606j-eng which produces
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=omni_nx606j
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
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-4.18.16-96.current-x86_64-Solus-3.9999
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PD1A.180720.031
OUT_DIR=/run/media/curtisy/Solus-Data/Omni_NX606J/out
============================================
- I run make clean && make -j4, this works for a while and then exits with of the following error:
Code:
ninja: error: 'prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libunwind.a', needed by '/run/media/curtisy/Solus-Data/Omni_NX606J/out/soong/.intermediates/external/boringssl/libcrypto/android_arm_armv8-a_cortex-a53_core_shared/libcrypto.so', missing and no known rule to make it
20:00:44 ninja failed with: exit status 1
I see it's missing some files, but repo sync again, doesn't help either, so I'm lost.
One pretty weird thing I noticed is that the second ninja step is only showing 55/56 as done but still continues. Is this normal?
Code:
[1/1] /run/media/curtisy/Solus-Data/Om...X606J/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[77/77] /run/media/curtisy/Solus-Data/...Data/Omni_NX606J/out/soong/build.ninja
Running make recoveryimage worked once, but when I tried flashing that, my device said it wasn't trusted and I had to reflash the source image again.
I'm really hitting a dead end with my little knowledge here, so it would be cool if anyone could point me in the right direction so I could at least get TWRP to work.
The phone has a Snapdragon 845. If you need any additional information, feel free to ask as I'm happy about any straw I can grab here.
Update: I somehow got around this issue doing another repo sync but now I'm prompted with another issue.
Code:
[945/945] including vendor/omni/Android.mk ...
packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm) missing libbluetooth_jni (SHARED_LIBRARIES android-arm)
Available variants:
libbluetooth_jni (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:833: error: exiting from previous errors.
03:34:57 ckati failed with: exit status 1
Or with ALLLOW_MISSING_DEPENDENCIES=true
Code:
[ 99% 1390/1391] glob vendor/omni/overlay/common/**/*
ninja: error: '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj_arm/SHARED_LIBRARIES/libbluetooth_jni_intermediates/link_type', needed by '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj/APPS/Bluetooth_intermediates/2ND_jni_link_type', missing and no known rule to make it
03:39:28 ninja failed with: exit status 1
For reference, this is the kernel source and this is the device specific source I'm currently using.
curtisy said:
Update: I somehow got around this issue doing another repo sync but now I'm prompted with another issue.
Code:
[945/945] including vendor/omni/Android.mk ...
packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm) missing libbluetooth_jni (SHARED_LIBRARIES android-arm)
Available variants:
libbluetooth_jni (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:833: error: exiting from previous errors.
03:34:57 ckati failed with: exit status 1
Or with ALLLOW_MISSING_DEPENDENCIES=true
Code:
[ 99% 1390/1391] glob vendor/omni/overlay/common/**/*
ninja: error: '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj_arm/SHARED_LIBRARIES/libbluetooth_jni_intermediates/link_type', needed by '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj/APPS/Bluetooth_intermediates/2ND_jni_link_type', missing and no known rule to make it
03:39:28 ninja failed with: exit status 1
For reference, this is the kernel source and this is the device specific source I'm currently using.
Click to expand...
Click to collapse
How do for fix?
So, since I couldn't boot the GSI image of Resurrection Remix rom, I tried to build it using the sources of lineage 16 rom from @Raghu varma .
but I have got the following error!
any suggestion to fix it ?
Code:
make -j 16
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=lineage_DRG_sprout
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=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.0.0-26-generic-x86_64-Ubuntu-19.04
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ3A.190801.002
OUT_DIR=/mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out
============================================
[1/1] /mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out/soong/.miniboo...03a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/cpufeatures.bp
[80/80] /mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out/soong/.boots...ld /mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out/soong/build.ninja
FAILED: /mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out/soong/build.ninja
/mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out/soong/.bootstrap/bin/soong_build -t -l /mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out/.module_paths/Android.bp.list -b /mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out/soong -n /mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out -d /mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out/soong/build.ninja.d -o /mnt/d0203a8b-835b-4f36-b1fa-6fe0b3dad217/drg/RR/out/soong/build.ninja Android.bp
error: vendor/rr/build/soong/Android.bp:31:8: module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'
ninja: build stopped: subcommand failed.
15:31:13 soong bootstrap failed with: exit status 1
#### failed to build some targets (01:18 (mm:ss)) ####
How did you resolve this? I am getting the same thing
[1/1] /rom/tb8504/out/soong/.minibootstrap/minibp /rom/tb8504/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[80/80] /rom/tb8504/out/soong/.bootstrap/bin/soong_build /rom/tb8504/out/soong/build.ninja
FAILED: /rom/tb8504/out/soong/build.ninja
/rom/tb8504/out/soong/.bootstrap/bin/soong_build -t -l /rom/tb8504/out/.module_paths/Android.bp.list -b /rom/tb8504/out/soong -n /rom/tb8504/out -d /rom/tb8504/out/soong/build.ninja.d -o /rom/tb8504/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.
18:08:14 soong bootstrap failed with: exit status 1
I am trying to compile pure aosp source and keep getting these two errors. I am using the lineage vendor files and am using aosp device trees P.S. I'm using a live system but the issue is that there are two undefined methods in the lineage vendor files.
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_trlte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-7634-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=QP1A.190711.019
OUT_DIR=out
============================================
[ 43% 49/113] compile out/soong/.bootstrap/soong-lineage-generator/pkg/lineage/soong/generator.a
FAILED: out/soong/.bootstrap/soong-lineage-generator/pkg/lineage/soong/generator.a
GOROOT='prebuilts/go/linux-x86' prebuilts/go/linux-x86/pkg/tool/linux_amd64/compile -c 8 -o out/soong/.bootstrap/soong-lineage-generator/pkg/lineage/soong/generator.a.tmp -p lineage/soong/generator -complete -I out/soong/.bootstrap/blueprint-parser/pkg -I out/soong/.bootstrap/blueprint-deptools/pkg -I out/soong/.bootstrap/blueprint-pathtools/pkg -I out/soong/.bootstrap/blueprint-proptools/pkg -I out/soong/.bootstrap/blueprint/pkg -I out/soong/.bootstrap/soong/pkg -I out/soong/.bootstrap/blueprint-bootstrap-bpdoc/pkg -I out/soong/.bootstrap/blueprint-bootstrap/pkg -I out/soong/.bootstrap/soong-env/pkg -I out/soong/.bootstrap/soong-android/pkg -I out/soong/.bootstrap/soong-shared/pkg -pack vendor/lineage/build/soong/generator/generator.go vendor/lineage/build/soong/generator/variables.go && if cmp --quiet out/soong/.bootstrap/soong-lineage-generator/pkg/lineage/soong/generator.a.tmp out/soong/.bootstrap/soong-lineage-generator/pkg/lineage/soong/generator.a; then rm out/soong/.bootstrap/soong-lineage-generator/pkg/lineage/soong/generator.a.tmp; else mv -f out/soong/.bootstrap/soong-lineage-generator/pkg/lineage/soong/generator.a.tmp out/soong/.bootstrap/soong-lineage-generator/pkg/lineage/soong/generator.a; fi
vendor/lineage/build/soong/generator/generator.go:124:48: ctx.Config().BuildOSTarget undefined (type android.Config has no field or method BuildOSTarget)
vendor/lineage/build/soong/generator/generator.go:229:38: undefined: android.PathForSourceRelaxed
03:19:35 soong bootstrap failed with: exit status 1
#### failed to build some targets (2 seconds) ####