FORUMS

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

337 posts
Thanks Meter: 251
 
By Uldiniad, Senior Member on 15th February 2018, 04:54 PM
Post Reply Email Thread
29th February 2020, 03:57 AM |#561  
Uldiniad's Avatar
OP Senior Member
Thanks Meter: 251
 
Donate to Me
More
Quote:
Originally Posted by Ippfcox

Hi, did you have solved this problem? I got absolutely the same error. please help!

---------- Post added at 03:17 PM ---------- Previous post was at 03:16 PM ----------



Hi, did you have solved this problem? I got absolutely the same error. please help!

https://forum.xda-developers.com/sho...&postcount=519
29th February 2020, 04:03 AM |#562  
Member
Flag Hyderabad
Thanks Meter: 13
 
More
Quote:
Originally Posted by Uldiniad

I am getting the following error while doing repo sync:


did you read the warnings in my guide? Do NOT use mnt, it will likely result in failures.
it is telling you that it's permission denied. it doesn't have read and/or write permissions to that folder.

I only have around 120gb free in C drive, any suggestions for what I can use rather than mnt.
Dont want to dual boot just for building LineageOS

Edit: Probably installing wsl on another drive should work. Will try that.
1st March 2020, 11:43 AM |#563  
Junior Member
Thanks Meter: 11
 
More
Lineage 17 compiles fine using wsl2 on 19041 build. It compiles pretty fast too compared to wsl1.
The Following User Says Thank You to NowifeBetterlife For This Useful Post: [ View ] Gift NowifeBetterlife Ad-Free
16th March 2020, 07:57 PM |#564  
Member
Flag Caracas
Thanks Meter: 21
 
More
Quote:
Originally Posted by trunapushpa

I am getting the following error while doing repo sync:

Code:
error: Cannot fetch LineageOS/android (Error: [('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs/heads', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/heads', "[Errno 13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/heads'"), ('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs/tags', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/tags', "[Errno 13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/tags'"), ('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs', "[Errno
13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs'")])
Traceback (most recent call last):
  File "/mnt/d/lineageos/android/lineage/.repo/repo/main.py", line 622, in <module>
    _Main(sys.argv[1:])
  File "/mnt/d/lineageos/android/lineage/.repo/repo/main.py", line 596, in _Main
    result = run()
  File "/mnt/d/lineageos/android/lineage/.repo/repo/main.py", line 589, in <lambda>
    run = lambda: repo._Run(name, gopts, argv) or 0
  File "/mnt/d/lineageos/android/lineage/.repo/repo/main.py", line 266, in _Run
    result = cmd.Execute(copts, cargs)
  File "/mnt/d/lineageos/android/lineage/.repo/repo/subcmds/sync.py", line 912, in Execute
    fetched = self._Fetch(to_fetch, opt, err_event)
  File "/mnt/d/lineageos/android/lineage/.repo/repo/subcmds/sync.py", line 415, in _Fetch
    self._FetchProjectList(**kwargs)
  File "/mnt/d/lineageos/android/lineage/.repo/repo/subcmds/sync.py", line 301, in _FetchProjectList
    success = self._FetchHelper(opt, project, *args, **kwargs)
  File "/mnt/d/lineageos/android/lineage/.repo/repo/subcmds/sync.py", line 346, in _FetchHelper
    clone_filter=clone_filter)
  File "/mnt/d/lineageos/android/lineage/.repo/repo/project.py", line 1492, in Sync_NetworkHalf
    self._InitGitDir(force_sync=force_sync, quiet=quiet)
  File "/mnt/d/lineageos/android/lineage/.repo/repo/project.py", line 2760, in _InitGitDir
    copy_all=True)
  File "/mnt/d/lineageos/android/lineage/.repo/repo/project.py", line 2992, in _ReferenceGitDir
    shutil.copytree(src, dst)
  File "/usr/lib/python3.6/shutil.py", line 365, in copytree
    raise Error(errors)
shutil.Error: [('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs/heads', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/heads', "[Errno 13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/heads'"), ('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs/tags', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/tags', "[Errno 13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/tags'"), ('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs', "[Errno 13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs'")]
I am guessing it is because windows file system doesn't support long paths.
How can I fix this.

Workaround: On Windows, change permissions to the base folder (D:\lineageos\android\lineage in your case) and make it writable for "Everyone".
I was able to repo sync successfully on my D drive. Not sure if other issues will arrive when building as OP clearly advises not to use /mnt.
16th March 2020, 08:00 PM |#565  
Member
Flag Hyderabad
Thanks Meter: 13
 
More
Quote:
Originally Posted by vladilog

Workaround: On Windows, change permissions to the base folder (D:\lineageos\android\lineage in your case) and make it writable for "Everyone".
I was able to repo sync successfully on my D drive. Not sure if other issues will arrive when building as OP clearly advises not to use /mnt.

Oh nice one. btw I moved the WSL installation to D drive.
19th March 2020, 10:35 AM |#566  
Senior Member
Thanks Meter: 67
 
More
I'm trying to build lineage os 17.1 for oneplus3, but I have this errors, how can I fix?

Code:
[email protected]:~/android/lineage$ brunch oneplus3
10:11:24 Build sandboxing disabled due to nsjail error.
Looking for dependencies in device/oneplus/oneplus3
Looking for dependencies in device/oppo/common
device/oppo/common has no additional dependencies.
Looking for dependencies in kernel/oneplus/msm8996
kernel/oneplus/msm8996 has no additional dependencies.
10:11:33 Build sandboxing disabled due to nsjail error.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200319-UNOFFICIAL-oneplus3
TARGET_PRODUCT=lineage_oneplus3
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.4.0-18362-Microsoft-x86_64-Ubuntu-18.04.4-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200305.003
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/oneplus/oneplus3 device/oneplus/oneplus3 vendor/nxp/opensource/pn5xx hardware/qcom-caf/msm8996
============================================
10:11:49 Build sandboxing disabled due to nsjail error.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200319-UNOFFICIAL-oneplus3
TARGET_PRODUCT=lineage_oneplus3
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.4.0-18362-Microsoft-x86_64-Ubuntu-18.04.4-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200305.003
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/oneplus/oneplus3 device/oneplus/oneplus3 vendor/nxp/opensource/pn5xx hardware/qcom-caf/msm8996
============================================
10:11:53 soong minibootstrap failed with: exit status 1
FAILED: ninja: ./build/blueprint/bootstrap/build.ninja:11: loading 'out/soong/.minibootstrap/build-globs.ninja': Exec format error
subninja ${myGlobs}
                   ^ near here

#### failed to build some targets (19 seconds) ####
26th March 2020, 12:56 PM |#567  
Senior Member
Flag Noida
Thanks Meter: 24
 
Donate to Me
More
Compilation/building on WSL2?
Hey bro,
What about WSL2?
Have you tried building lineage OS via WSL2?
Also, isn't it fine if we have only 8 gb of RAM?
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