FORUMS
Remove All Ads from XDA

[GUIDE] How to build LineageOS 16.0 on Windows 10 (via WSL 1.0)

318 posts
Thanks Meter: 233
 
By Uldiniad, Senior Member on 15th February 2018, 05:54 PM
Post Reply Email Thread
14th July 2019, 03:01 PM |#511  
Uldiniad's Avatar
OP Senior Member
Thanks Meter: 233
 
Donate to Me
More
Quote:
Originally Posted by VincentJoshuaET

Is it possible to only just build android_system_bt? Thanks.

Probably. Check the directory of that module for a makefile. If there's is one and you've setup the environment with envsetup.sh, run mm in the directory to build that module.
16th July 2019, 10:45 AM |#512  
scottysau's Avatar
Member
Flag Perth
Thanks Meter: 47
 
Donate to Me
More
Quote:
Originally Posted by Uldiniad

I haven't tried with docker. Docker on windows has been annoying to me given the use of hyper-v. what do you mean by docker resetting?


WSL is problematical if you need to reset your environment. Docker is much easier and by saving the image incrementally you can multiple containers with different configurations or stages.

Docker is meant to be testing WSL2 support as I write this so hopefully we will see some performance improvements.
1st August 2019, 08:31 PM |#513  
Member
Flag Kolkata
Thanks Meter: 65
 
More
Linage 16.0 and RR 7.0.2 builds are successful out of da box in WSL2 at Windows 1903. but im stuck in case of AOSIP & AEX roms.
mylog.txt

Problem solve.. It seems GSI/Treble problem.
Its not a WSL problem.
The Following User Says Thank You to ArcherTanu For This Useful Post: [ View ] Gift ArcherTanu Ad-Free
26th August 2019, 03:38 AM |#514  
DedeDocil's Avatar
Senior Member
Flag Bekasi
Thanks Meter: 67
 
More
EDIT: i picked this commit but no luck

Hi, i got error here, any advice @Uldiniad ?
Code:
FAILED: /mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.odex
/bin/bash -c "(rm -f /mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.odex ) && (mkdir -p /mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/ ) && (stored_class_loader_context_libs= && class_loader_context_arg=--class-loader-context=\\& && class_loader_context=\\& && stored_class_loader_context_arg=\"\" && uses_library_names=\"\" && optional_uses_library_names=\"\" &&  ANDROID_LOG_TAGS=\"*:e\" /mnt/z/build/statix/out/host/linux-x86/bin/dex2oatd  --runtime-arg -Xms64m --runtime-arg -Xmx512m \${class_loader_context_arg} \${stored_class_loader_context_arg} --boot-image=/mnt/z/build/statix/out/target/product/whyred/dex_bootjars/system/framework/boot.art --dex-file=/mnt/z/build/statix/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/javalib.jar --dex-location=/system/framework/services.jar --oat-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.odex --android-root=/mnt/z/build/statix/out/target/product/whyred/system --instruction-set=arm64 --instruction-set-variant=generic --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar  --compiler-filter=speed --generate-mini-debug-info --compilation-reason=prebuilt --app-image-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.art --image-format=lz4 --profile-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates//profile.prof )"
dex2oatd F art/dex2oat/dex2oat.cc] dex2oat did not finish after 2850 seconds
Zygote loaded classes=10593 post zygote classes=5339
Intern table: 74256 strong; 0 weak
JNI: CheckJNI is off; globals=49 (plus 22 weak)
Libraries:  (0)
Heap: 92% free, 4MB/64MB; dex2oatd F 08-26 00:47:31 13495 13511 thread_list.cc:771] Timed out waiting for threads to suspend, waited for 50.000s
Runtime aborting...
Dumping all threads without appropriate locks held: thread list lock mutator lock
All threads:
DALVIK THREADS (5):
"Watchdog thread attached for dumping" prio=5 tid=5 Runnable (still starting up)
  | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x7fcb58000b60
  | sysTid=13511 nice=1 cgrp=default sched=3/0 handle=0x7fcb75a70700
  | state=R schedstat=( 31250000 0 1 ) utm=1 stm=1 core=0 HZ=100
  | stack=0x7fcb75271000-0x7fcb75273000 stackSize=8MB
  | held mutexes= "abort lock" "mutator lock"(shared held)
  native: (no native stack frames for thread 13511)
  (no managed stack frames)

"Compiler driver thread pool worker thread 2" prio=5 tid=3 Native (still starting up)
  | group="" sCount=2 dsCount=0 flags=1 obj=(nil) self=0x7fcb60000b20
  | sysTid=14018 nice=1 cgrp=default sched=3/0 handle=0x7fcb701cd700
  | state=S schedstat=( 54906250000 0 1 ) utm=5406 stm=84 core=0 HZ=100
  | stack=0x7fcb700cd000-0x7fcb700cf000 stackSize=1028KB
  | held mutexes=
  kernel: (couldn't read /proc/self/task/14018/stack)
  native: #00 pc 000000000011b839  /lib/x86_64-linux-gnu/libc-2.27.so (syscall+25)
  native:   syscall
  native:    ??:?
  (no managed stack frames)

dex2oatd E 08-26 00:47:37 13495 13511 thread-inl.h:155] holding "abort lock" at point where thread suspension is expected
dex2oatd E 08-26 00:47:37 13495 13511 mutex.cc:280] Holding "abort lock" (level AbortLock) while performing wait on "GC barrier lock" (level ThreadSuspendCountLock)
dex2oatd E 08-26 00:47:57 13495 13511 thread_list.cc:238] Unexpected time out during dump checkpoint.
Aborting thread:
dex2oatd E 08-26 00:47:57 13495 13511 mutex-inl.h:125] Lock level violation: holding "mutator lock" (level MutatorLock - 65) while locking "mutator lock" (level MutatorLock - 65)
dex2oatd E 08-26 00:47:57 13495 13511 thread-inl.h:155] holding "abort lock" at point where thread suspension is expected
"Watchdog thread attached for dumping" prio=5 tid=5 WaitingForGetObjectsAllocated (still starting up)
  | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x7fcb58000b60
  | sysTid=13511 nice=1 cgrp=default sched=3/0 handle=0x7fcb75a70700
  | state=R schedstat=( 1656250000 0 1 ) utm=1 stm=164 core=0 HZ=100
  | stack=0x7fcb75271000-0x7fcb75273000 stackSize=8MB
  | held mutexes= "abort lock"
  native: (no native stack frames for thread 13511)
  (no managed stack frames)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)
OS: Linux 4.4.0-18362-Microsoft (x86_64)
Cmdline: /mnt/z/build/statix/out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --class-loader-context=& --boot-image=/mnt/z/build/statix/out/target/product/whyred/dex_bootjars/system/framework/boot.art --dex-file=/mnt/z/build/statix/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/javalib.jar --dex-location=/system/framework/services.jar --oat-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.odex --android-root=/mnt/z/build/statix/out/target/product/whyred/system --instruction-set=arm64 --instruction-set-variant=generic --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar --compiler-filter=speed --generate-mini-debug-info --compilation-reason=prebuilt --app-image-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.art --image-format=lz4 --profile-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates//profile.prof
Thread: 13511 "Watchdog thread"
Registers:
    rax: 0x0000000000000000    rbx: 0x00000000000034b7    rcx: 0x00007fcb75a70700    rdx: 0x0000000000000006
    rdi: 0x00000000000034b7    rsi: 0x00000000000034c7    rbp: 0x00007fcb75a6fb30    rsp: 0x00007fcb75a6fae8
    r8 : 0x00007fffe9c033b1    r9 : 0x00007fffe9c033b1    r10: 0x00007fcb75a70700    r11: 0x00007fcb75a70700
    r12: 0x00007fcb580098e0    r13: 0x00007fcb75a6fc08    r14: 0x00007fffe9c032d0    r15: 0x00007fcb75a6fc00
    rip: 0x00007fcb75f3b839    eflags: 0x00000246 [ PF ZF IF ]
     cs: 0x00000033     gs: 0x0000002b     fs: 0x00000053

Backtrace:
        #00 pc 000000000011b839  /lib/x86_64-linux-gnu/libc-2.27.so (syscall+25)
          syscall
           ??:?

Fault message:
/bin/bash: line 1: 13495 Aborted                 (core dumped) ANDROID_LOG_TAGS="*:e" /mnt/z/build/statix/out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m ${class_loader_context_arg} ${stored_class_loader_context_arg} --boot-image=/mnt/z/build/statix/out/target/product/whyred/dex_bootjars/system/framework/boot.art --dex-file=/mnt/z/build/statix/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/javalib.jar --dex-location=/system/framework/services.jar --oat-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.odex --android-root=/mnt/z/build/statix/out/target/product/whyred/system --instruction-set=arm64 --instruction-set-variant=generic --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar --compiler-filter=speed --generate-mini-debug-info --compilation-reason=prebuilt --app-image-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.art --image-format=lz4 --profile-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates//profile.prof
29th August 2019, 05:44 AM |#515  
Uldiniad's Avatar
OP Senior Member
Thanks Meter: 233
 
Donate to Me
More
Quote:
Originally Posted by DedeDocil

EDIT: i picked this commit but no luck

Hi, i got error here, any advice @Uldiniad ?

Code:
FAILED: /mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.odex
/bin/bash -c "(rm -f /mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.odex ) && (mkdir -p /mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/ ) && (stored_class_loader_context_libs= && class_loader_context_arg=--class-loader-context=\\& && class_loader_context=\\& && stored_class_loader_context_arg=\"\" && uses_library_names=\"\" && optional_uses_library_names=\"\" &&  ANDROID_LOG_TAGS=\"*:e\" /mnt/z/build/statix/out/host/linux-x86/bin/dex2oatd  --runtime-arg -Xms64m --runtime-arg -Xmx512m \${class_loader_context_arg} \${stored_class_loader_context_arg} --boot-image=/mnt/z/build/statix/out/target/product/whyred/dex_bootjars/system/framework/boot.art --dex-file=/mnt/z/build/statix/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/javalib.jar --dex-location=/system/framework/services.jar --oat-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.odex --android-root=/mnt/z/build/statix/out/target/product/whyred/system --instruction-set=arm64 --instruction-set-variant=generic --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar  --compiler-filter=speed --generate-mini-debug-info --compilation-reason=prebuilt --app-image-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.art --image-format=lz4 --profile-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates//profile.prof )"
dex2oatd F art/dex2oat/dex2oat.cc] dex2oat did not finish after 2850 seconds
Zygote loaded classes=10593 post zygote classes=5339
Intern table: 74256 strong; 0 weak
JNI: CheckJNI is off; globals=49 (plus 22 weak)
Libraries:  (0)
Heap: 92% free, 4MB/64MB; dex2oatd F 08-26 00:47:31 13495 13511 thread_list.cc:771] Timed out waiting for threads to suspend, waited for 50.000s
Runtime aborting...
Dumping all threads without appropriate locks held: thread list lock mutator lock
All threads:
DALVIK THREADS (5):
"Watchdog thread attached for dumping" prio=5 tid=5 Runnable (still starting up)
  | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x7fcb58000b60
  | sysTid=13511 nice=1 cgrp=default sched=3/0 handle=0x7fcb75a70700
  | state=R schedstat=( 31250000 0 1 ) utm=1 stm=1 core=0 HZ=100
  | stack=0x7fcb75271000-0x7fcb75273000 stackSize=8MB
  | held mutexes= "abort lock" "mutator lock"(shared held)
  native: (no native stack frames for thread 13511)
  (no managed stack frames)

"Compiler driver thread pool worker thread 2" prio=5 tid=3 Native (still starting up)
  | group="" sCount=2 dsCount=0 flags=1 obj=(nil) self=0x7fcb60000b20
  | sysTid=14018 nice=1 cgrp=default sched=3/0 handle=0x7fcb701cd700
  | state=S schedstat=( 54906250000 0 1 ) utm=5406 stm=84 core=0 HZ=100
  | stack=0x7fcb700cd000-0x7fcb700cf000 stackSize=1028KB
  | held mutexes=
  kernel: (couldn't read /proc/self/task/14018/stack)
  native: #00 pc 000000000011b839  /lib/x86_64-linux-gnu/libc-2.27.so (syscall+25)
  native:   syscall
  native:    ??:?
  (no managed stack frames)

dex2oatd E 08-26 00:47:37 13495 13511 thread-inl.h:155] holding "abort lock" at point where thread suspension is expected
dex2oatd E 08-26 00:47:37 13495 13511 mutex.cc:280] Holding "abort lock" (level AbortLock) while performing wait on "GC barrier lock" (level ThreadSuspendCountLock)
dex2oatd E 08-26 00:47:57 13495 13511 thread_list.cc:238] Unexpected time out during dump checkpoint.
Aborting thread:
dex2oatd E 08-26 00:47:57 13495 13511 mutex-inl.h:125] Lock level violation: holding "mutator lock" (level MutatorLock - 65) while locking "mutator lock" (level MutatorLock - 65)
dex2oatd E 08-26 00:47:57 13495 13511 thread-inl.h:155] holding "abort lock" at point where thread suspension is expected
"Watchdog thread attached for dumping" prio=5 tid=5 WaitingForGetObjectsAllocated (still starting up)
  | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x7fcb58000b60
  | sysTid=13511 nice=1 cgrp=default sched=3/0 handle=0x7fcb75a70700
  | state=R schedstat=( 1656250000 0 1 ) utm=1 stm=164 core=0 HZ=100
  | stack=0x7fcb75271000-0x7fcb75273000 stackSize=8MB
  | held mutexes= "abort lock"
  native: (no native stack frames for thread 13511)
  (no managed stack frames)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)
OS: Linux 4.4.0-18362-Microsoft (x86_64)
Cmdline: /mnt/z/build/statix/out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --class-loader-context=& --boot-image=/mnt/z/build/statix/out/target/product/whyred/dex_bootjars/system/framework/boot.art --dex-file=/mnt/z/build/statix/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/javalib.jar --dex-location=/system/framework/services.jar --oat-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.odex --android-root=/mnt/z/build/statix/out/target/product/whyred/system --instruction-set=arm64 --instruction-set-variant=generic --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar --compiler-filter=speed --generate-mini-debug-info --compilation-reason=prebuilt --app-image-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.art --image-format=lz4 --profile-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates//profile.prof
Thread: 13511 "Watchdog thread"
Registers:
    rax: 0x0000000000000000    rbx: 0x00000000000034b7    rcx: 0x00007fcb75a70700    rdx: 0x0000000000000006
    rdi: 0x00000000000034b7    rsi: 0x00000000000034c7    rbp: 0x00007fcb75a6fb30    rsp: 0x00007fcb75a6fae8
    r8 : 0x00007fffe9c033b1    r9 : 0x00007fffe9c033b1    r10: 0x00007fcb75a70700    r11: 0x00007fcb75a70700
    r12: 0x00007fcb580098e0    r13: 0x00007fcb75a6fc08    r14: 0x00007fffe9c032d0    r15: 0x00007fcb75a6fc00
    rip: 0x00007fcb75f3b839    eflags: 0x00000246 [ PF ZF IF ]
     cs: 0x00000033     gs: 0x0000002b     fs: 0x00000053

Backtrace:
        #00 pc 000000000011b839  /lib/x86_64-linux-gnu/libc-2.27.so (syscall+25)
          syscall
           ??:?

Fault message:
/bin/bash: line 1: 13495 Aborted                 (core dumped) ANDROID_LOG_TAGS="*:e" /mnt/z/build/statix/out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m ${class_loader_context_arg} ${stored_class_loader_context_arg} --boot-image=/mnt/z/build/statix/out/target/product/whyred/dex_bootjars/system/framework/boot.art --dex-file=/mnt/z/build/statix/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/javalib.jar --dex-location=/system/framework/services.jar --oat-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.odex --android-root=/mnt/z/build/statix/out/target/product/whyred/system --instruction-set=arm64 --instruction-set-variant=generic --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar --compiler-filter=speed --generate-mini-debug-info --compilation-reason=prebuilt --app-image-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates/oat/arm64/javalib.art --image-format=lz4 --profile-file=/mnt/z/build/statix/out/target/product/whyred/obj/JAVA_LIBRARIES/services_intermediates//profile.prof

what version are you building? you should not pick that commit since it is already merged
29th August 2019, 05:56 AM |#516  
DedeDocil's Avatar
Senior Member
Flag Bekasi
Thanks Meter: 67
 
More
Solved already. Thanks btw
19th September 2019, 04:41 AM |#517  
stvn1337's Avatar
Senior Member
Flag Chatsworth
Thanks Meter: 457
 
Donate to Me
More
I need some help, I followed the instructions to the T, however I receive this error:

MSI:~/android/lineage$ brunch enchilada
22:39:45 Build sandboxing disabled due to nsjail error. This may become fatal in the future.
22:39:45 Please let us know why nsjail doesn't work in your environment at:
22:39:45 https://groups.google.com/forum/#!fo...droid-building
22:39:45 https://issuetracker.google.com/issu...mponent=381517
Looking for dependencies in device/oneplus/enchilada
Looking for dependencies in device/oneplus/sdm845-common
Looking for dependencies in kernel/oneplus/sdm845
kernel/oneplus/sdm845 has no additional dependencies.
Looking for dependencies in packages/resources/devicesettings
packages/resources/devicesettings has no additional dependencies.
22:39:52 Build sandboxing disabled due to nsjail error. This may become fatal in the future.
22:39:52 Please let us know why nsjail doesn't work in your environment at:
22:39:52 https://groups.google.com/forum/#!fo...droid-building
22:39:52 https://issuetracker.google.com/issu...mponent=381517

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20190919-UNOFFICIAL-enchilada
TARGET_PRODUCT=lineage_enchilada
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-4.4.0-18356-Microsoft-x86_64-Ubuntu-18.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.190711.020
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES= device/oneplus/sdm845-common hardware/qcom/audio-caf/sdm845 hardware/qcom/display-caf/sdm845 hardware/qcom/media-caf/sdm845
============================================
22:40:40 Build sandboxing disabled due to nsjail error. This may become fatal in the future.
22:40:40 Please let us know why nsjail doesn't work in your environment at:
22:40:40 https://groups.google.com/forum/#!fo...droid-building
22:40:40 https://issuetracker.google.com/issu...mponent=381517
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20190919-UNOFFICIAL-enchilada
TARGET_PRODUCT=lineage_enchilada
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-4.4.0-18356-Microsoft-x86_64-Ubuntu-18.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.190711.020
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES= device/oneplus/sdm845-common hardware/qcom/audio-caf/sdm845 hardware/qcom/display-caf/sdm845 hardware/qcom/media-caf/sdm845
============================================
FAILED: ninja: ./build/blueprint/bootstrap/build.ninja:11: loading 'out/soong/.minibootstrap/build-globs.ninja': Exec format error
subninja ${myGlobs}
^ near here
22:40:42 soong minibootstrap failed with: exit status 1

#### failed to build some targets (48 seconds) ####


Any advice or ideas?
20th September 2019, 07:47 PM |#518  
Member
Flag Kolkata
Thanks Meter: 65
 
More
Quote:
Originally Posted by stvn1337

I need some help, I followed the instructions to the T, however I receive this error:

MSI:~/android/lineage$ brunch enchilada
22:39:45 Build sandboxing disabled due to nsjail error. This may become fatal in the future.
22:39:45 Please let us know why nsjail doesn't work in your environment at:
22:39:45 https://groups.google.com/forum/#!fo...droid-building
22:39:45 https://issuetracker.google.com/issu...mponent=381517
Looking for dependencies in device/oneplus/enchilada
Looking for dependencies in device/oneplus/sdm845-common
Looking for dependencies in kernel/oneplus/sdm845
kernel/oneplus/sdm845 has no additional dependencies.
Looking for dependencies in packages/resources/devicesettings
packages/resources/devicesettings has no additional dependencies.
22:39:52 Build sandboxing disabled due to nsjail error. This may become fatal in the future.
22:39:52 Please let us know why nsjail doesn't work in your environment at:
22:39:52 https://groups.google.com/forum/#!fo...droid-building
22:39:52 https://issuetracker.google.com/issu...mponent=381517

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20190919-UNOFFICIAL-enchilada
TARGET_PRODUCT=lineage_enchilada
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-4.4.0-18356-Microsoft-x86_64-Ubuntu-18.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.190711.020
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES= device/oneplus/sdm845-common hardware/qcom/audio-caf/sdm845 hardware/qcom/display-caf/sdm845 hardware/qcom/media-caf/sdm845
============================================
22:40:40 Build sandboxing disabled due to nsjail error. This may become fatal in the future.
22:40:40 Please let us know why nsjail doesn't work in your environment at:
22:40:40 https://groups.google.com/forum/#!fo...droid-building
22:40:40 https://issuetracker.google.com/issu...mponent=381517
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20190919-UNOFFICIAL-enchilada
TARGET_PRODUCT=lineage_enchilada
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-4.4.0-18356-Microsoft-x86_64-Ubuntu-18.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.190711.020
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES= device/oneplus/sdm845-common hardware/qcom/audio-caf/sdm845 hardware/qcom/display-caf/sdm845 hardware/qcom/media-caf/sdm845
============================================
FAILED: ninja: ./build/blueprint/bootstrap/build.ninja:11: loading 'out/soong/.minibootstrap/build-globs.ninja': Exec format error
subninja ${myGlobs}
^ near here
22:40:42 soong minibootstrap failed with: exit status 1

#### failed to build some targets (48 seconds) ####


Any advice or ideas?


U r device dependencies are missing.
And u need to android_packages_resources_devicesettings
21st September 2019, 02:37 AM |#519  
Uldiniad's Avatar
OP Senior Member
Thanks Meter: 233
 
Donate to Me
More
Quote:
Originally Posted by stvn1337

I need some help, I followed the instructions to the T, however I receive this error:

MSI:~/android/lineage$ brunch enchilada
22:39:45 Build sandboxing disabled due to nsjail error. This may become fatal in the future.
22:39:45 Please let us know why nsjail doesn't work in your environment at:
22:39:45 https://groups.google.com/forum/#!fo...droid-building
22:39:45 https://issuetracker.google.com/issu...mponent=381517
Looking for dependencies in device/oneplus/enchilada
Looking for dependencies in device/oneplus/sdm845-common
Looking for dependencies in kernel/oneplus/sdm845
kernel/oneplus/sdm845 has no additional dependencies.
Looking for dependencies in packages/resources/devicesettings
packages/resources/devicesettings has no additional dependencies.
22:39:52 Build sandboxing disabled due to nsjail error. This may become fatal in the future.
22:39:52 Please let us know why nsjail doesn't work in your environment at:
22:39:52 https://groups.google.com/forum/#!fo...droid-building
22:39:52 https://issuetracker.google.com/issu...mponent=381517

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20190919-UNOFFICIAL-enchilada
TARGET_PRODUCT=lineage_enchilada
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-4.4.0-18356-Microsoft-x86_64-Ubuntu-18.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.190711.020
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES= device/oneplus/sdm845-common hardware/qcom/audio-caf/sdm845 hardware/qcom/display-caf/sdm845 hardware/qcom/media-caf/sdm845
============================================
22:40:40 Build sandboxing disabled due to nsjail error. This may become fatal in the future.
22:40:40 Please let us know why nsjail doesn't work in your environment at:
22:40:40 https://groups.google.com/forum/#!fo...droid-building
22:40:40 https://issuetracker.google.com/issu...mponent=381517
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20190919-UNOFFICIAL-enchilada
TARGET_PRODUCT=lineage_enchilada
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-4.4.0-18356-Microsoft-x86_64-Ubuntu-18.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.190711.020
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES= device/oneplus/sdm845-common hardware/qcom/audio-caf/sdm845 hardware/qcom/display-caf/sdm845 hardware/qcom/media-caf/sdm845
============================================
FAILED: ninja: ./build/blueprint/bootstrap/build.ninja:11: loading 'out/soong/.minibootstrap/build-globs.ninja': Exec format error
subninja ${myGlobs}
^ near here
22:40:42 soong minibootstrap failed with: exit status 1

#### failed to build some targets (48 seconds) ####


Any advice or ideas?

I don't support Android 10 and I don't think I will given that WSL2.0 should not require any patches. I recommend you install WSL2.0
The Following 2 Users Say Thank You to Uldiniad For This Useful Post: [ View ] Gift Uldiniad Ad-Free
6th November 2019, 09:31 AM |#520  
Junior Member
Thanks Meter: 10
 
More
Quote:
Originally Posted by Uldiniad

I don't support Android 10 and I don't think I will given that WSL2.0 should not require any patches. I recommend you install WSL2.0

Have you succeeded in building using wsl2? I end up with clang errors. I am running the 1901.1 build.


error: prebuilts/clang/host/linux-x86/Android.bp:17:1: unrecognized module type "llvm_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:24:1: unrecognized module type "llvm_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:32:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:42:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:52:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:62:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:72:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:82:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:92:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:102:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:112:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:122:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:132:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:142:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:152:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:166:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:180:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:194:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:208:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:222:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:236:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:250:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:264:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:278:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:292:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:306:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:320:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:331:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:342:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:353:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:364:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:375:1: unrecognized module type "libclang_rt_prebuilt_library_static"
ninja: build stopped: subcommand failed.
13:57:02 soong bootstrap failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
16th November 2019, 04:51 PM |#521  
Uldiniad's Avatar
OP Senior Member
Thanks Meter: 233
 
Donate to Me
More
Quote:
Originally Posted by NowifeBetterlife

Have you succeeded in building using wsl2? I end up with clang errors. I am running the 1901.1 build.


error: prebuilts/clang/host/linux-x86/Android.bp:17:1: unrecognized module type "llvm_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:24:1: unrecognized module type "llvm_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:32:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:42:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:52:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:62:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:72:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:82:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:92:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:102:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:112:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:122:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:132:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:142:1: unrecognized module type "libclang_rt_llndk_library"
error: prebuilts/clang/host/linux-x86/Android.bp:152:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:166:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:180:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:194:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:208:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:222:1: unrecognized module type "libclang_rt_prebuilt_library_shared"
error: prebuilts/clang/host/linux-x86/Android.bp:236:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:250:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:264:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:278:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:292:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:306:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:320:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:331:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:342:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:353:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:364:1: unrecognized module type "libclang_rt_prebuilt_library_static"
error: prebuilts/clang/host/linux-x86/Android.bp:375:1: unrecognized module type "libclang_rt_prebuilt_library_static"
ninja: build stopped: subcommand failed.
13:57:02 soong bootstrap failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed

I haven't tried yet with 2.0. have run out of disk space. I am waiting to upgrade my computer before tinkering with it again, but as I have said before it should work out of the box. are you sure you installed all the required packages? some have reported that they were able to successfully compile on wsl 2. make sure to sync the latest changes too since sometimes Lineage don't have some patches merged and errors like this happen
Post Reply Subscribe to Thread

Tags
bashonwindows, lineageos, windows, wsl

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes