yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] bootslag:
Some errors were fixable. It consisted of (I think) missing vendor blobs so I removed those configs from my BoardConfig.mk

But this error stays on and I don't know where it comes from: hastebin.com/difijesosu.coffeescript

More specifically,

hardware/qcom/display-caf/msm8916/libgralloc/../libgralloc/ionalloc.h:33:10: fatal error: 'linux/msm_ion.h' file not found
[Android Software/Hacking General [Developers Only]] Uldiniad:
You didn't answer the original question though. Does it compile on native Linux? If you get the same error on native, then this is not the correct thread to bring your issue to.

It looks like it is related to hardware files missing. I doubt it has anything to do with the build environment. You should bring this issue to your device maintainer. My guide is valid for officially supported devices. Your mileage will vary on unofficial devices but only because of the necessary bring-up, not because of the build environment (in this case wsl).
[Android Software/Hacking General [Developers Only]] XolYnrac:
Look this file https://github.com/LineageOS/androi...ge-15.1/drivers/video/msm/mdss/mdss_hdmi_tx.c

Line 3606 and 3607

VGA_TYPE is declarated in file mdss_hdmi_slimport.h also in mdss_hdmi_tx.c (in the first lines) include mdss_hdmi_slimport.h but only if CONFIG_SLIMPORT_DYNAMIC_HPD exists
[Android Software/Hacking General [Developers Only]] Uldiniad:
https://jira.lineageos.org/secure/Dashboard.jspa if your device is officially supported
[Android Software/Hacking General [Developers Only]] XolYnrac:
What is that?
[Android Software/Hacking General [Developers Only]] Uldiniad:
you asked where you could report bugs
[Android Software/Hacking General [Developers Only]] XolYnrac:
what about if my device isnt official supported ?
[Android Software/Hacking General [Developers Only]] bootslag:
Oh I see. Yeah it's compiling on Native Linux. I figured installing Linux with Dual-boot is better than WSL.
[Android Software/Hacking General [Developers Only]] Uldiniad:
Then you should talk about bugs to whoever is maintaining your device unofficially. Usually there is a xda thread for unoficial builds for your specific device (if it's popular enough).

In any case, here is the community page of LineageOS: https://lineageos.org/community/
[Android Software/Hacking General [Developers Only]] Uldiniad:
If you followed the exact same steps on both native and wsl, I guess there might be an issue with wsl. But the error that was being spit out seemed to be related to the device tree. maybe running a build on wsl with showcommands will show other failures.

wsl is not a replacement for native linux, but in my case, I dislike dual-booting and it does the job, so it's good enough.

Also, my guide is for lineage-15.1. Mileage will vary if you build ROMs based on it.
[Android Software/Hacking General [Developers Only]] Uldiniad:
what's media/xolynrac? did you sync the repository (mnt) outside the wsl filesystem?
[Android Software/Hacking General [Developers Only]] XolYnrac:
it is my user mount point. I am in Linux native, sorry!!
[Android Software/Hacking General [Developers Only]] Uldiniad:
I'm sorry, I'm not sure I'm understanding. If you're building on native linux, why are your reporting a bug on a thread about building on windows 10? Also, using mount to sync the repositories and make builds is not currently supported
[Android Software/Hacking General [Developers Only]] nicerok:
how can i fix this?

Applying change number 208102...
ERROR: For 208102, could not determine the project path for project LineageOS/android_build
[Android Software/Hacking General [Developers Only]] Uldiniad:
it is not finding a path to android_build, you must have missed a step or modified stuff you shouldn't
[Android Software/Hacking General [Developers Only]] nicerok:
I fixed that by cherrypicking another commit for cm14.1

but now i got another errors

Starting build with ninja
ninja: Entering directory `.'
[ 0% 8/48935] host Executable: conscrypt_generate_constants (/home/ins/ins-cm/out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/conscrypt_generate_constants)
[ 0% 9/48935] Install: /home/ins/ins-cm/out/host/linux-x86/lib64/libssl-host.so
[ 0% 10/48935] Generating TOC: /home/ins/ins-cm/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar.toc
[ 0% 11/48935] Yacc: aidl <= system/tools/aidl/aidl_language_y.yy
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=/home/ins/ins-cm/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.h -o /home/ins/ins-cm/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.cpp system/tools/aidl/aidl_language_y.yy"
/bin/bash: prebuilts/misc/linux-x86/bison/bison: cannot execute binary file: Exec format error
[ 0% 11/48935] Notice file: system/tools/aidl/NOTICE -- /home/ins/ins-cm/out/host/windows-x86/obj/NOTICE_FILES/src//lib/libaidl-common.a.txt
[ 0% 11/48935] Install: /home/ins/ins-cm/out/host/linux-x86/bin/conscrypt_generate_constants
[ 0% 11/48935] host C++: libbase <= system/core/base/errors_unix.cpp
[ 0% 11/48935] host C++: libbase <= system/core/base/test_utils.cpp
[ 0% 11/48935] host C++: libbase <= system/core/base/strings.cpp
[ 0% 11/48935] host Java: jarjar (/home/ins/ins-cm/out/host/common/obj/JAVA_LIBRARIES/jarjar_intermediates/classes)
[ 0% 11/48935] target Java: libphonenumber-platform (/home/ins/ins-cm/out/target/common/obj/JAVA_LIBRARIES/libphonenumber-platform_intermediates/classes)
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/ins/ins-cm'
[Android Software/Hacking General [Developers Only]] matssa:
Dude stop the off topic please. This isn't the correct thread, open a new one on your xda device thread. And for info if you checked the lineage forums or even the envsetup.sh, you would have seen that you can specify a directory with repopick XXXXX -P Android/.....
[Android Software/Hacking General [Developers Only]] Uldiniad:
This thread is for lineage-15.1. Repopicking my commits will not work out of the box because they are only available on lineage-15.1. Your problem is that you're using the prebuilt 32-bit bison that causes crashes on wsl. You need to compile the 64-bit bison and set that one to be used by the build system. You can do that by backporting my commits to cm-14.1 on gerrit if you want. I personally am only planning on supporting the latest version available (currently lineage-15.1).
[Android Software/Hacking General [Developers Only]] IDisposable:
Thanks for this, quite cool! Is there an easy way to see what this repopick will change? I'm curious what's all in your magic :)
[Android Software/Hacking General [Developers Only]] Uldiniad:
Yup, just open lineageOS Gerrit and type wsl in the search bar
[Android Software/Hacking General [Developers Only]] IDisposable:
Perfect!

Saving this https://review.lineageos.org/#/q/wsl-compile for posterity
[Android Software/Hacking General [Developers Only]] DeaDruiD:
Anybody figured out a way around the /proc/cpuinfo + clang.real segmentation fault issue yet? :(
[Android Software/Hacking General [Developers Only]] Uldiniad:
If you search the thread for cpuinfo you'd find that someone else did have the same error and how they solved it
[Android Software/Hacking General [Developers Only]] DeaDruiD:
I DID read this whole thread and I did not find a solution. Unlike SaberShip I did not change standard paths to another drive or anything similar. Re-running the build again (without changing anything) worked this time, so it might be some intermittent issue.
[Android Software/Hacking General [Developers Only]] Uldiniad:
I didn't know that you hadn't moved the path. The only cpuinfo related issue I had been made aware of was due to /mnt.

this is all issues reported on cpuinfo on wsl so far: https://github.com/Microsoft/WSL/issues?utf8=✓&q=is:issue+cpuinfo

it does look like it isn't working 100% like it would in native.

on another note, the rig you have will also make a difference.

Before my latest set of patches, I had noticed that some errors that showed up in some builds would not happen again when relaunching the build. As a rule of thumb it is good to try again and see if the error is frequent or consistent.

We are building on a system that is not designed to support android compilation after all.
[Android Software/Hacking General [Developers Only]] ashitpatel:
How much time or memory does repo sync require?

the repo sync command requires how much amount of data to be downloaded? its taking long time on my broadband connection.
[Android Software/Hacking General [Developers Only]] nothinghf:
can anybody help me?

I do not have access to microsoft store

I need a link to download ubuntu 18.04 microsoft distro

I have these links for 14 and 16, but I can not find anything for 18

https://wsldownload.azureedge.net/14.04.5.3-server-cloudimg-amd64-root.tar.gz
https://wsldownload.azureedge.net/16.04.2-server-cloudimg-amd64-root.tar.gz

thanks for everything
[Android Software/Hacking General [Developers Only]] shashank1320:
Create an outlook, hotmail or windows live account for US and acces Ms store.

---------- Post added at 04:43 PM ---------- Previous post was at 04:39 PM ----------

It was around 15-16 GB in MM days when i built for Yureka. Don't think it will be less than 10 GB in any condition for repo
[Android Software/Hacking General [Developers Only]] eimanrasydan:
Don't have a product spec for: 'DEVICE NAME'

Hi. I try to build LOS 15.1 for my device (find7). And I encounter this problem when executing breakfast command:

I have checked the device tree (github/LineageOS/android_device_oppo_find7/tree/lineage-15.1) and 15.1 do exist. What is causing this problem and how do I solve it?
[Android Software/Hacking General [Developers Only]] Uldiniad:
Sorry, it's my bad. You skipped a step but that's because I removed it by mistake from my guide the other day while editing it. I've added it back. Check step 8. And follow the rest as usual. :)
[Android Software/Hacking General [Developers Only]] TheIronMaiden:
I got to the last step, it was building for my device, and it said it had failed to load a boot animation, couldn't find it, but a zip has been created. I looked in the appropriate folder, couldn't find it. Alao I closed out the VM when I left for work, hoping it would save, so either way I'll be trying again tonight. Just wondering would a zip be created even thou it gave a failure for not finding a boot animation? I was building for the v20 h910, 14.1 just to get the hang of it , my first build lol
[Android Software/Hacking General [Developers Only]] Uldiniad:
I don't have that device so I can't tell if the error is normal. It doesn't sound like it is a WSL build environment failure though. Sounds like the device tree upstream or locally has stuff missing. By VM do you mean WSL?

Some errors are fatal and will cause builds to crash. Others are not fatal and will allow the build to continue. Sounds like yours was part of the latter. It may be worth giving it a try (meaning flashing it on your phone) but that is up to you to consider the risks.

Do let me know what you get when you try building again tonight
[Android Software/Hacking General [Developers Only]] TheIronMaiden:
Its not, I couldn't get Ubuntu to work, so I used a preconfigured VM called "Builduntu" , I was leaving for work, and couldn't investigate. I checked a few folders. But it just now occurred to me that I needed to check the "out" folder, after rereading the guide. If it wasn't for you, though, I wouldn't have tried this. Thanks a lot dude
[Android Software/Hacking General [Developers Only]] Uldiniad:
Glad I was able to help. My focus is on WSL though, that is the build env I recommend for Windows 10 and it is the only thing I can help with. VMs are a different beast and dual-boot too.
[Android Software/Hacking General [Developers Only]] eimanrasydan:
Hi. I tried your step and something came up when I tried to execute repo init.

and when I continued to the breakfast step, same problem occur. Hope you can help me on this.
[Android Software/Hacking General [Developers Only]] Uldiniad:
you weren't supposed to redo all steps, just the steps after step 8. you can delete everything and start over but it will be overkill.

does your roomservice.xml look like this (not one for one obviously)?

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LineageOS/android_device_samsung_klte" path="device/samsung/klte" remote="github" />
<project name="LineageOS/android_device_samsung_klte-common" path="device/samsung/klte-common" remote="github" />
<project name="LineageOS/android_device_samsung_msm8974-common" path="device/samsung/msm8974-common" remote="github" />
<project name="LineageOS/android_kernel_samsung_msm8974" path="kernel/samsung/msm8974" remote="github" />
<project name="LineageOS/android_packages_apps_FlipFlap" path="packages/apps/FlipFlap" remote="github" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="LineageOS/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />
<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" />
</manifest>
[Android Software/Hacking General [Developers Only]] lucasguapo23:
Hi newbie here...what would be the probs.?

lucasguapo23@lucasguapo23-:~/android/lineage$ make bison && make ijar

21:11:12 Waiting up to 10s to lock /home/lucasguapo23/android/lineage/out/.lock to ensure no other Soong process is running in the same output directory

21:11:13 Waiting up to 9s to lock /home/lucasguapo23/android/lineage/out/.lock to ensure no other Soong process is running in the same output directory

21:11:14 Waiting up to 8s to lock /home/lucasguapo23/android/lineage/out/.lock to ensure no other Soong process is running in the same output directory

21:11:15 Waiting up to 7s to lock /home/lucasguapo23/android/lineage/out/.lock to ensure no other Soong process is running in the same output directory

21:11:16 Waiting up to 6s to lock /home/lucasguapo23/android/lineage/out/.lock to ensure no other Soong process is running in the same output directory

21:11:17 Waiting up to 5s to lock /home/lucasguapo23/android/lineage/out/.lock to ensure no other Soong process is running in the same output directory

21:11:18 Waiting up to 4s to lock /home/lucasguapo23/android/lineage/out/.lock to ensure no other Soong process is running in the same output directory

21:11:19 Waiting up to 3s to lock /home/lucasguapo23/android/lineage/out/.lock to ensure no other Soong process is running in the same output directory

21:11:20 Waiting up to 2s to lock /home/lucasguapo23/android/lineage/out/.lock to ensure no other Soong process is running in the same output directory

21:11:21 Waiting up to 1s to lock /home/lucasguapo23/android/lineage/out/.lock to ensure no other Soong process is running in the same output directory

21:11:22 Tried to lock /home/lucasguapo23/android/lineage/out/.lock, but timed out polling every 1s until 10s . Make sure no other Soong process is using it

#### failed to build some targets (01:31 (mm:ss)) ####
[Android Software/Hacking General [Developers Only]] Uldiniad:
you were already running make in another process. you can't run two builds at the same time. if there are no other processes using make you can maybe delete the folder /home/lucasguapo23/android/lineage/out/.lock
[Android Software/Hacking General [Developers Only]] eimanrasydan:
My roomservice.xml look like this:

I think it got everything except for some lines.
[Android Software/Hacking General [Developers Only]] Uldiniad:
the last line is the one you gotta manually insert (as seen in step 8 which I had accidentally removed previously). do you still have issues after inserting it and following the rest of the steps?
[Android Software/Hacking General [Developers Only]] tumirin:
hello OP, newbie here.

Thanks for provide me a detailed step to get lineageos. It's my first time to sync repo using github

My device is Samsung GT-N5100, what should my roomservice.xml looks like?

Could you please give me advice?

Thanks in advance.

edited.

I put the following lines in roomservice.xml

but it ended with the following error

any suggestion?
[Android Software/Hacking General [Developers Only]] eimanrasydan:
With a bit of googling, I manage to solve the problem and proceed until the last step. However the build was failed due to an error occur at the end as follow:

What do you suggest?
[Android Software/Hacking General [Developers Only]] Uldiniad:
try again with clean out directory. repeat only the steps that are mentioned at the bottom of the guide. to clean the out directory do

make clobber

libc++.so issues were usually related to bison. make sure that it is made and that your BISON_EXEC flag is set to point to it (and add to bashrc so that you don't have to keep setting the flag every time you reopen command line). if you still see libc++.so issues after, try running the build again sometimes that solved it.
[Android Software/Hacking General [Developers Only]] Uldiniad:
your roomservice is usually built by breakfast. you should not have to make it yourself. the only addition is TheMuppets. and that section of the error doesn't tell me the reason why it failed to sync.

edit: please check that your device actually has lineage-15.1 before complaining about errors. https://github.com/LineageOS/android_device_samsung_n5100 it has no lineage-15.1 branch
[Android Software/Hacking General [Developers Only]] Kapil Tapsi:
hey [MENTION=7350242]Uldiniad[/MENTION] thanks for the awesome guide. I am trying to compile for mido for test. i have doubt..Can I use this guide for nougat? Is it even possible for nougat somehow? I know nougat is obsolete but some devices supports nougat only. Please ping me some information. FYI I want to make dotos build for nougat,,
[Android Software/Hacking General [Developers Only]] Mafworld:
ok, thanks a lot for the guide, of course i just tried the first command and was expecting all go in a good way, sorry for my bad english in case everything I say doesn't make any sense but, somehow my WSL is not getting all the required repo's, I've installed ubuntu 18.04 app and enabled WSL feature on control panel, executed the first command but eventually I got a repo's error

root@DESKTOP-73VEUBM:/home# sudo apt install android-sdk-platform-tools bc build-essential ccache curl g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop m4 openjdk-8-jdk pngcrush repo rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package lzop is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package android-sdk-platform-tools
E: Unable to locate package gperf
E: Unable to locate package liblz4-tool
E: Unable to locate package libwxgtk3.0-dev
E: Couldn't find any package by glob 'libwxgtk3.0-dev'
E: Couldn't find any package by regex 'libwxgtk3.0-dev'
E: Package 'lzop' has no installation candidate
E: Unable to locate package openjdk-8-jdk
E: Unable to locate package pngcrush
E: Unable to locate package repo
E: Unable to locate package schedtool

in case I don't have the repo's then where can I find them and add them ? thanks for support and your guide!
[Android Software/Hacking General [Developers Only]] 0LDST4R:
Another newbie in rom building here.

Thanks, great guide, all sounds logic for me. But i have exactly the same problems like [MENTION=5209478]Mafworld[/MENTION]. Tried manually search missing repos without success. Also tried apt-get, apt search. I'm doing this j4f, for my personal experience and knowledge. Any tips are welcome.

Edit:

Tried on the same machine 3 times, first followed your guide, second with real Ubuntu, third again with Win10, but with the "Ubuntu" app without the "18.04." - same results, exactly the same ouput like above.
[Android Software/Hacking General [Developers Only]] Uldiniad:
You can try following my guide for cm-14.1 but I have not backported any of my changes so the repopick is useless for that case at the moment. I do not plan on supporting cm-14.1 on wsl so you're on your own if you decide to backport and run into issues
[Android Software/Hacking General [Developers Only]] Uldiniad:
[MENTION=5209478]Mafworld[/MENTION] [MENTION=9129635]0LDST4R[/MENTION] check [MENTION=9026075]alincl[/MENTION] post
[Android Software/Hacking General [Developers Only]] 0LDST4R:
Checked, thanked [MENTION=5134599]alinci[/MENTION], will try - great community.
[Android Software/Hacking General [Developers Only]] Mafworld:
I've figure it out and using commands without sudo would do the work correctly, apt-get update && apt-get upgrade is required first, but indeed you must install the first 6 packages one by one also, after that copy and install the first code again without sudo and should work, I've launched ubuntu 18.04 as administrator and I guess sudo is useless if is working as administrator ( root mode ), let me know if this helped you.
[Android Software/Hacking General [Developers Only]] 0LDST4R:
I tried the other way, mentioned by [MENTION=5134599]alinci[/MENTION], had to update my sources-list, all went fine so far, but thanks anyway.
[Android Software/Hacking General [Developers Only]] eimanrasydan:
After several attempts. This error came up:

I tried increasing the heap size using -Xmx<size> command. But when I checked it, the max heap size doesn't change. The max heap size shown is always 1.75G.
[Android Software/Hacking General [Developers Only]] nothinghf:
Okay, for those who want to install Ubuntu distro from Microsoft Store with LxRunOffline:

https://wsldownload.azureedge.net/14.04.5.3-server-cloudimg-amd64-root.tar.gz
https://wsldownload.azureedge.net/16.04.2-server-cloudimg-amd64-root.tar.gz
https://www.dropbox.com/s/gp7vnl8jpivrpv6/18.04-server-cloudimg-amd64-root.tar.gz?dl=0
[Android Software/Hacking General [Developers Only]] Uldiniad:
administrator and root are not the same thing. one affects the windows system and the other the linux subsystem. they're not interchangeable. sudo should be used in all cases you would use them on native. I assumed that people would update the system before installing packages. I've now added the package update steps before the installation. you may have given yourself root privileges and that may be why you're able to run commands that would usually require root to run without sudo.
[Android Software/Hacking General [Developers Only]] Uldiniad:
I'm uncertain why your Xmx is so low. I'm guessing you don't have 16GB of RAM. I can't suggest anything other than what was suggested by the error. Find a way to increase it (if you have the RAM for it; otherwise get more RAM).
[Android Software/Hacking General [Developers Only]] andrea2004:
hi, any solution?

https://pastebin.com/hJWJFw2d
[Android Software/Hacking General [Developers Only]] Uldiniad:
step 8
[Android Software/Hacking General [Developers Only]] ljdj504:
Microsoft? Build? Pay? Its anywhere's yes? Lost it. Darnit.
[Android Software/Hacking General [Developers Only]] andrea2004:
I have a samsung galaxy s5 (klte) lineage os although not officially but I wanted to learn ... what did I do wrong in step 8?
[Android Software/Hacking General [Developers Only]] Uldiniad:
check my post on page 15. you have the same device. you need to open the file that was created by breakfast (you can find it in .repo/local_manifests/roomservice.xml) and insert the line in step 8 into it, all lines except that one should already be there.
[Android Software/Hacking General [Developers Only]] andrea2004:
thank you so much now I try