FORUMS
Remove All Ads from XDA

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

325 posts
Thanks Meter: 233
 
By Uldiniad, Senior Member on 15th February 2018, 05:54 PM
Post Reply Email Thread
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
18th November 2019, 06:48 AM |#522  
Junior Member
Thanks Meter: 2
 
More
Code:
[email protected]:~/android/lineage# source build/envsetup.sh
[email protected]:~/android/lineage# breakfast marlin
[W][2019-11-18T13:46:28+0800][144] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:28+0800][144] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
Looking for dependencies in device/google/marlin
Looking for dependencies in kernel/google/marlin
kernel/google/marlin has no additional dependencies.
[W][2019-11-18T13:46:29+0800][226] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:29+0800][226] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20191118-UNOFFICIAL-marlin
TARGET_PRODUCT=lineage_marlin
TARGET_BUILD_VARIANT=userdebug
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=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.19.79-microsoft-standard-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.191105.004
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/google/marlin vendor/google/camera hardware/google/pixel
============================================
[email protected]:~/android/lineage# brunch marlin
[W][2019-11-18T13:46:48+0800][329] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:48+0800][329] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
Looking for dependencies in device/google/marlin
Looking for dependencies in kernel/google/marlin
kernel/google/marlin has no additional dependencies.
[W][2019-11-18T13:46:49+0800][411] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:49+0800][411] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20191118-UNOFFICIAL-marlin
TARGET_PRODUCT=lineage_marlin
TARGET_BUILD_VARIANT=userdebug
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=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.19.79-microsoft-standard-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.191105.004
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/google/marlin vendor/google/camera hardware/google/pixel
============================================
[W][2019-11-18T13:46:53+0800][506] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:53+0800][506] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20191118-UNOFFICIAL-marlin
TARGET_PRODUCT=lineage_marlin
TARGET_BUILD_VARIANT=userdebug
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=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.19.79-microsoft-standard-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.191105.004
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/google/marlin vendor/google/camera hardware/google/pixel
============================================
[W][2019-11-18T13:46:54+0800][600] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:54+0800][600] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
[100% 1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
FAILED: out/soong/.bootstrap/build.ninja
out/soong/.minibootstrap/minibp -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/.bootstrap/build.ninja.d -globFile out/soong/.minibootstrap/build-globs.ninja -o out/soong/.bootstrap/build.ninja Android.bp
error removing abandoned files: log entry has too few fields: "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
FAILED: [W][2019-11-18T13:46:54+0800][604] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:54+0800][604] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
13:46:54 soong minibootstrap failed with: exit status 1

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

[email protected]:~/android/lineage#
Any suggestion, sir?
19th November 2019, 08:21 AM |#523  
Member
Flag Kolkata
Thanks Meter: 70
 
More
Click image for larger version

Name:	error.jpg
Views:	104
Size:	129.7 KB
ID:	4880641[QUOTE=99degree;80930557][code]
im getting this...when trying to build with wsl 1.0 win win 1909
23rd November 2019, 02:10 AM |#525  
Uldiniad's Avatar
OP Senior Member
Thanks Meter: 233
 
Donate to Me
More
[QUOTE=ArcherTanu;80942457]Attachment 4880641
Quote:
Originally Posted by 99degree

[code]
im getting this...when trying to build with wsl 1.0 win win 1909

I do not support wsl 1.0 anymore. wsl 2.0 should work out of the box
23rd November 2019, 02:14 AM |#526  
Uldiniad's Avatar
OP Senior Member
Thanks Meter: 233
 
Donate to Me
More
Quote:
Originally Posted by 99degree

Code:
[email protected]:~/android/lineage# source build/envsetup.sh
[email protected]:~/android/lineage# breakfast marlin
[W][2019-11-18T13:46:28+0800][144] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:28+0800][144] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
Looking for dependencies in device/google/marlin
Looking for dependencies in kernel/google/marlin
kernel/google/marlin has no additional dependencies.
[W][2019-11-18T13:46:29+0800][226] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:29+0800][226] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20191118-UNOFFICIAL-marlin
TARGET_PRODUCT=lineage_marlin
TARGET_BUILD_VARIANT=userdebug
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=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.19.79-microsoft-standard-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.191105.004
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/google/marlin vendor/google/camera hardware/google/pixel
============================================
[email protected]:~/android/lineage# brunch marlin
[W][2019-11-18T13:46:48+0800][329] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:48+0800][329] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
Looking for dependencies in device/google/marlin
Looking for dependencies in kernel/google/marlin
kernel/google/marlin has no additional dependencies.
[W][2019-11-18T13:46:49+0800][411] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:49+0800][411] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20191118-UNOFFICIAL-marlin
TARGET_PRODUCT=lineage_marlin
TARGET_BUILD_VARIANT=userdebug
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=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.19.79-microsoft-standard-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.191105.004
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/google/marlin vendor/google/camera hardware/google/pixel
============================================
[W][2019-11-18T13:46:53+0800][506] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:53+0800][506] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.0-20191118-UNOFFICIAL-marlin
TARGET_PRODUCT=lineage_marlin
TARGET_BUILD_VARIANT=userdebug
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=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.19.79-microsoft-standard-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.191105.004
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/google/marlin vendor/google/camera hardware/google/pixel
============================================
[W][2019-11-18T13:46:54+0800][600] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:54+0800][600] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
[100% 1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
FAILED: out/soong/.bootstrap/build.ninja
out/soong/.minibootstrap/minibp -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/.bootstrap/build.ninja.d -globFile out/soong/.minibootstrap/build-globs.ninja -o out/soong/.bootstrap/build.ninja Android.bp
error removing abandoned files: log entry has too few fields: "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
FAILED: [W][2019-11-18T13:46:54+0800][604] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-18T13:46:54+0800][604] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
13:46:54 soong minibootstrap failed with: exit status 1

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

[email protected]:~/android/lineage#
Any suggestion, sir?

your environment seems odd. I haven't seen cmdline::logparams lines before nor microsoft standard in HOST_OS_EXTRA. is this wsl 2.0?
23rd November 2019, 02:26 AM |#527  
Uldiniad's Avatar
OP Senior Member
Thanks Meter: 233
 
Donate to Me
More
Quote:
Originally Posted by Xdevillived666

anyway to do the same with los 17 fr pixel 3 or are sources not yet releases?

https://github.com/LineageOS/android...gle_crosshatch
26th November 2019, 10:19 AM |#528  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by Uldiniad

your environment seems odd. I haven't seen cmdline::logparams lines before nor microsoft standard in HOST_OS_EXTRA. is this wsl 2.0?

yes, it is. Win 10 -- v19030.1 fast ring. and not sure if build system need a custom device branch or something. So I did with crosshatch below, it seemed a lot worse. Or I missing something.

BTW, within my limited knowledge, it looked like the new build system binary runs with nsjail(docker like container env), but the wsl2 kernel does not support some nsjail(docker) feature. if this is true, then it likely missing CONFIG_USER_NS in kernel build. thus not able to do virtual root other than UID/EUID=0. it seemed nsjail --disable_clone_newcgroup can help a bit, but not sure. detail https://github.com/google/nsjail/issues/111

Code:
[email protected]:~/android/lineage# breakfast crosshatch
[W][2019-11-26T17:13:59+0800][10370] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-26T17:13:59+0800][10370] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
build/make/core/product_config.mk:223: error: Can not locate config makefile for product "lineage_crosshatch".
17:13:59 dumpvars failed with: exit status 1
Device crosshatch not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_google_crosshatch
Default revision: lineage-17.0
Checking branch info
Checking if device/google/crosshatch is fetched from android_device_google_crosshatch
Adding dependency: LineageOS/android_device_google_crosshatch -> device/google/crosshatch
Using default branch for android_device_google_crosshatch
Syncing repository to retrieve project.

... A new repo command ( 1.26) is available.
... You should upgrade soon:

    cp /root/android/lineage/.repo/repo/repo /root/bin/repo

remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Enumerating objects: 1082, done.
remote: Counting objects: 100% (1082/1082), done.
^Cerror: Cannot fetch LineageOS/android_device_google_crosshatch from https://github.com/LineageOS/android_device_google_crosshatch
Fetching projects: 100% (1/1) LineageOS/android_device_google_crosshatchaborted by user
Repository synced!
Looking for dependencies in device/google/crosshatch
device/google/crosshatch has no additional dependencies.
Done
[W][2019-11-26T17:14:14+0800][10460] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-26T17:14:14+0800][10460] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
build/make/core/product_config.mk:223: error: Can not locate config makefile for product "lineage_crosshatch".
17:14:14 dumpvars failed with: exit status 1
[W][2019-11-26T17:14:20+0800][10519] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-26T17:14:20+0800][10519] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
build/make/core/product_config.mk:223: error: Can not locate config makefile for product "lineage_crosshatch".
17:14:20 dumpvars failed with: exit status 1

** Don't have a product spec for: 'lineage_crosshatch'
** Do you have the right repo manifest?

[email protected]:~/android/lineage#
27th November 2019, 02:44 AM |#529  
Uldiniad's Avatar
OP Senior Member
Thanks Meter: 233
 
Donate to Me
More
Quote:
Originally Posted by 99degree

yes, it is. Win 10 -- v19030.1 fast ring. and not sure if build system need a custom device branch or something. So I did with crosshatch below, it seemed a lot worse. Or I missing something.

BTW, within my limited knowledge, it looked like the new build system binary runs with nsjail(docker like container env), but the wsl2 kernel does not support some nsjail(docker) feature. if this is true, then it likely missing CONFIG_USER_NS in kernel build. thus not able to do virtual root other than UID/EUID=0. it seemed nsjail --disable_clone_newcgroup can help a bit, but not sure. detail https://github.com/google/nsjail/issues/111

Code:
[email protected]:~/android/lineage# breakfast crosshatch
[W][2019-11-26T17:13:59+0800][10370] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-26T17:13:59+0800][10370] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
build/make/core/product_config.mk:223: error: Can not locate config makefile for product "lineage_crosshatch".
17:13:59 dumpvars failed with: exit status 1
Device crosshatch not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_google_crosshatch
Default revision: lineage-17.0
Checking branch info
Checking if device/google/crosshatch is fetched from android_device_google_crosshatch
Adding dependency: LineageOS/android_device_google_crosshatch -> device/google/crosshatch
Using default branch for android_device_google_crosshatch
Syncing repository to retrieve project.

... A new repo command ( 1.26) is available.
... You should upgrade soon:

    cp /root/android/lineage/.repo/repo/repo /root/bin/repo

remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Enumerating objects: 1082, done.
remote: Counting objects: 100% (1082/1082), done.
^Cerror: Cannot fetch LineageOS/android_device_google_crosshatch from https://github.com/LineageOS/android_device_google_crosshatch
Fetching projects: 100% (1/1) LineageOS/android_device_google_crosshatchaborted by user
Repository synced!
Looking for dependencies in device/google/crosshatch
device/google/crosshatch has no additional dependencies.
Done
[W][2019-11-26T17:14:14+0800][10460] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-26T17:14:14+0800][10460] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
build/make/core/product_config.mk:223: error: Can not locate config makefile for product "lineage_crosshatch".
17:14:14 dumpvars failed with: exit status 1
[W][2019-11-26T17:14:20+0800][10519] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2019-11-26T17:14:20+0800][10519] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
build/make/core/product_config.mk:223: error: Can not locate config makefile for product "lineage_crosshatch".
17:14:20 dumpvars failed with: exit status 1

** Don't have a product spec for: 'lineage_crosshatch'
** Do you have the right repo manifest?

[email protected]:~/android/lineage#

the nsjconf stuff seems to be talking about root. could it be that it says that because you're running as root user and not a normal user? I've never seen this when I run lunch and such.
the actual errors that matter are Can not locate config makefile for product "lineage_crosshatch". that's because of missing dependencies. might need muppets for example
28th November 2019, 06:56 AM |#530  
Junior Member
Thanks Meter: 0
 
More
Raspberry pi 3 build failing
Hi Thanks for providing the source.
When iam using lunch or breakfast command not able to find raspberry pi 3 device code name.
If explicitly providing name of raspberry board build is failing.
29th November 2019, 02:21 AM |#531  
Uldiniad's Avatar
OP Senior Member
Thanks Meter: 233
 
Donate to Me
More
Quote:
Originally Posted by durgaprasadu

Hi Thanks for providing the source.
When iam using lunch or breakfast command not able to find raspberry pi 3 device code name.
If explicitly providing name of raspberry board build is failing.

has it ever been officially supported by LineageOS. I've never heard of pi support
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