yashsingh1/xdaforums huggingface dataset:
[Android] adinechin:
Kernel problem

Hi everyone,

I'm keeping updated two ROMs (Lineage 14.1 and Lineage 15.1), and I've also built a DotOS Oreo. My problem is that I'm trying to build an ResurrectionRemix ROM with the same kernel/vendor/device sources, and I have the following kernel error, can anyone help me ?

FAILED: /home/antoine/android/rrOreo/out/target/product/A6020/obj/KERNEL_OBJ/.config
/bin/bash -c "(make -j1 CFLAGS_MODULE=\"-fno-pic\" -C kernel/lenovo/msm8916 O=/home/antoine/android/rrOreo/out/target/product/A6020/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-androidkernel-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= A6020_defconfig ) && (if [ ! -z \"\" ]; then	echo \"Overriding kernel config with ''\";	echo >> /home/antoine/android/rrOreo/out/target/product/A6020/obj/KERNEL_OBJ/.config;	make -j1 -C kernel/lenovo/msm8916 O=/home/antoine/android/rrOreo/out/target/product/A6020/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-androidkernel-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" oldconfig; fi ) && (make -j1 -C kernel/lenovo/msm8916 O=/home/antoine/android/rrOreo/out/target/product/A6020/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-androidkernel-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" savedefconfig ) && (if [ ! -z \"\" ]; then	echo \"Using additional config ''\";	kernel/lenovo/msm8916/scripts/kconfig/merge_config.sh -m -O /home/antoine/android/rrOreo/out/target/product/A6020/obj/KERNEL_OBJ /home/antoine/android/rrOreo/out/target/product/A6020/obj/KERNEL_OBJ/.config kernel/lenovo/msm8916/arch/arm64/configs/;	make -j1 -C kernel/lenovo/msm8916 O=/home/antoine/android/rrOreo/out/target/product/A6020/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-androidkernel-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" KCONFIG_ALLCONFIG=/home/antoine/android/rrOreo/out/target/product/A6020/obj/KERNEL_OBJ/.config alldefconfig; fi )"
make*: on entre dans le répertoire «*/home/antoine/android/rrOreo/kernel/lenovo/msm8916*»
GEN /home/antoine/android/rrOreo/out/target/product/A6020/obj/KERNEL_OBJ/Makefile
[B]net/Kconfig:78: can't open file "net/wireguard/Kconfig"[/B]
/home/antoine/android/rrOreo/kernel/lenovo/msm8916/scripts/kconfig/Makefile:105*: la recette pour la cible «*A6020_defconfig*» a échouée
make[2]: *** [A6020_defconfig] Erreur 1
/home/antoine/android/rrOreo/kernel/lenovo/msm8916/Makefile:508*: la recette pour la cible «*A6020_defconfig*» a échouée
make[1]: *** [A6020_defconfig] Erreur 2
Makefile:130*: la recette pour la cible «*sub-make*» a échouée
make: *** [sub-make] Erreur 2
make*: on quitte le répertoire «*/home/antoine/android/rrOreo/kernel/lenovo/msm8916*»

---------- Post added at 11:08 AM ---------- Previous post was at 11:04 AM ----------

OK my bad, I'll try first to comment the incriminated line because the "net/wireguard/Kconfig" file does not exist...
[Android] NepoRood:
ccache -s

cache directory /home/nepo/.ccache
primary config /home/nepo/.ccache/ccache.conf
secondary config (readonly) /etc/ccache.conf
cache hit (direct) 5110845
cache hit (preprocessed) 107965
cache miss 718484
cache hit rate 87.90 %
called for link 27939
called for preprocessing 224134
compile failed 5
ccache internal error 5577
preprocessor error 72
couldn't find the compiler 439
cache file missing 4929
unsupported source language 6
unsupported code directive 871
no input file 135254
cleanups performed 119
files in cache 689887
cache size 122.3 GB
max cache size 161.1 GB

You should see something similar with the same command.

This is what I have in my .bashrc

# ccache
export USE_CCACHE=1
export CCACHE_DIR=/home/nepo/.ccache
export CCACHE_EXEC=/usr/bin/ccache

I've recently learned that the last line (export CCACHE_EXEC=) can also be like this:

export CCACHE_EXEC=$(command -v ccache)

Source from Ninja himself, [MENTION=6842057]nathanchance[/MENTION]
[Android] Simon1511:
Hello again,

I built crDroid6 for my device, but after flashing it, logcat shows following error:

01-07 16:43:11.786 2698 2698 F art_apex: Device is not fsverity-enabled.

Is there something I forgot to do or so?

My device is the Galaxy A5 2017, my sources are here:

Device:https://github.com/Simon1511/android_device_samsung_universal7880-common/tree/lineage-17.0

kernel: https://github.com/LineageOS/android_kernel_samsung_universal7880

Havent modified the kernel, only thing added is system early mount.

Full logcat here: https://pastebin.com/50FrGFUS
[Android] datadrop:
I have built Aospextended Q for hydrogen but can't boot. I see in logcat it say:

Please tel me how to fix this problem ?

Thanks
[Android] ParanoidNemo:
Solved the latest posted error but getting this right after.

[586/976] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:89: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[976/976] including vendor/qcom/opensource/wlan/wcnss-service/Android.mk ...
external/wpa_supplicant_8/hostapd/Android.mk: error: hostapd (EXECUTABLES android-arm64) missing lib_driver_cmd_qcwcn (STATIC_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
external/wpa_supplicant_8/wpa_supplicant/Android.mk: error: wpa_supplicant (EXECUTABLES android-arm64) missing lib_driver_cmd_qcwcn (STATIC_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: libwifi-hal (SHARED_LIBRARIES android-arm64) missing libwifi-hal-qcom (STATIC_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: libwifi-hal (SHARED_LIBRARIES android-arm64) missing libcld80211 (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: libwifi-hal (SHARED_LIBRARIES android-arm) missing libwifi-hal-qcom (STATIC_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: libwifi-hal (SHARED_LIBRARIES android-arm) missing libcld80211 (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:833: error: exiting from previous errors.
17:34:25 ckati failed with: exit status 1

Anyone has any ideas?

Thank you so much!
[Android] vineelsai:
I am trying to build havoc os 3. I have downloaded the source code and I cloned local device tree for my device then I can't able to build the source can anyone provide the the command to build my device is xiaomi_onc and I placed the device tree in "device/Xiaomi/onc" vendor and kernel trees in their respective folders in same way please provide me with the command to run build
[Android] MrBoombastic01:
Trying to build LOS 17 for Moto E 2015 Surnia, but stuck on this error:

FAILED: out/target/product/surnia/obj/ETC/sepolicy.recovery_intermediates/sepolicy
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/surnia/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/surnia/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/surnia/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > out/target/product/surnia/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s out/target/product/surnia/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo \"==========\" 1>&2; echo \"ERROR: permissive domains not allowed in user builds\" 1>&2; echo \"List of invalid domains:\" 1>&2; cat out/target/product/surnia/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv out/target/product/surnia/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/surnia/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/motorola/msm8916-common/sepolicy/genfs_contexts:3:ERROR 'type sysfs_disk_stat is not defined or is an attribute' at token 'genfscon' on line 87572:
genfscon sysfs /devices/soc.0/78d9000.usb u:object_r:sysfs_batteryinfo:s0
genfscon sysfs /devices/soc.0/7824900.sdhci/mmc_host/mmc0/mmc0:0001/block/mmcblk0/stat u:object_r:sysfs_disk_stat:s0
checkpolicy: error(s) encountered while parsing configuration

Maybe someone know how to fix that?

Thanks.
[Android] aman.dwivedi:
. b*/e*

lunch

Select onc_havoc-userdebug or which build u want to build

Then

make bacon

---------- Post added at 07:45 PM ---------- Previous post was at 07:43 PM ----------

Either fix or build permissive

For fixing watch this may be help

https://msfjarvis.website/posts/understanding-and-resolving-selinux-denials-on-android/

---------- Post added at 07:50 PM ---------- Previous post was at 07:45 PM ----------

Clone wpa supplicant 8 from any other rom,

Or if not fixes

git clone https://github.com/CarbonROM/android_hardware_qcom_wlan.git -b cr-8.0 hardware/qcom/wlan && git clone https://github.com/CarbonROM/android_hardware_qcom_wlan.git -b cr-8.0-caf hardware/qcom-caf/wlan

Do this path will be different for aosp extended may be check and change acc to aex
[Android] dark_souls_:
I'm trying to repo sync a lineage os 16.0 when ever i type the command

part:1

repo sync -j4 -q --force-sync

I get ManifestInvalidRevisionError..

Shared project LineageOS/android_hardware_qcom_display found, disabling pruning.
Shared project LineageOS/android_hardware_qcom_display found, disabling pruning.
Shared project LineageOS/android_hardware_qcom_display found, disabling pruning.
Checking out projects: 18% (127/704) platform/external/google-tv-pairing-protocChecking out projects: 42% (296/704) platform/external/speexerror: Cannot checkout platform/external/subsampling-scale-image-view: [B]ManifestInvalidRevisionError: [/B]revision refs/tags/android-9.0.0_r46 in platform/external/subsampling-scale-image-view not found
error: in `sync -j4 -q --force-sync`: revision refs/tags/android-9.0.0_r46 in platform/external/subsampling-scale-image-view not found

I even googled but there was just one link that was [url]https://android.googlesource.com/platform/external/subsampling-scale-image-view/[/URL]

I don't know how to proceed after that... I even tried using sudo.

Part 2

when ever i try to do this, I think I should first resolve all errors in repo sync and not build but anyhow, I'm doing this I get the following message.. No such file or directory upon googling I found that this is caused by not repo sync. so, I have to fix Part1 before heading to part2. What am i doing wrong. Can someone guide me... Thank you....

terminal

. build/envsetup.sh
including device/generic/car/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/uml/vendorsetup.sh
bash: /home/mystery/workspace/lineage/vendor/lineage/build/envsetup.sh: No such file or directory
[Android] roshan2989:
Building Lineage from source

hi guys im having issue with building it,since i have fix most of the error in it..

This is the last error,coudlnt find the root couse of it..failed at 99%.

here is the full log https://del.dog/prybihacke

Help would be appriected here
[Android] DiamondJohn:
Not that I would be able to help, but I think you should cut down on the log as its stalling my browser, making the log unreadable. Maybe just from a few line above the " FAILED: " till the end would suffice.
[Android] roshan2989:
Sorry it my mistake,just copy half of it from the error above

here is the link for it https://del.dog/tissot.txt
[Android] roshan2989:
anyone ?
[Android] shadowdevil:
ArrowOS-10 for Oneplus3

I am trying to build arrow-os 10 for OP3 however the compilation failed at 97% below is the error ! any help would be grateful.

Project list error on project platform/external/libaom: ManifestInvalidRevisionError: revision refs/tags/android-10.0.0_r23 in platform/external/libaom not found

The libaom folder exists and its under external/libaom, didn't know what it means by revision error !
[Android] iamsuperuser:
Update security patch

[MENTION=4924398]RVR[/MENTION]

Can you please post a guide on how to integrate the latest Android security patch into any recently discontinued rom based on lineage os ?
[Android] roshan2989:
Thanks mate,finally fixed the issue
[Android] DiamondJohn:
If you post what fixed it, then if someone else has the same issue, then their web search would find your post as a result. Imagine if someone had done that when you were searching for a fix.
[Android] roshan2989:
the actual issue is, mixed vendor..supposed to use lineage vendor,but use Evolution rom vendor...to many vendor in my github
[Android] thenotonly:
hi guys, getting FAILED: /home/darren/android/lineage/out/target/common/docs/lineage-api-stubs-timestamp

can you please help out

https://pastebin.com/raw/tfGC8xNh
[Android] kevintm78:
I scoured the internet trying to figure that one out too. Ultimately, I never really found a solution but I can tell you what the difference was in my case between a failed build and successful build.

I would get that error when using the following build commands- mka, make, m

If I used <brunch> then no errors, well not that error anyway, and eventually I had successful build.
[Android] roshan2989:
anyone know how to add Lawnchair prebuilt including the quickstep..Do in need to add in the source..?
[Android] gipsy.danger:
not sure but maybe the vendor image partition size is having mismatch.
[Android] Aang23:
Hi! I'm currently trying to build a ROM (lineage 17.0) for my device using a device tree known to work for Lineage-based ROM (Astrako's a3y17lte port).

Everything works, but the kernel... Here's the error I'm getting :

INFO: CC is /home/owner/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
Using /home/owner/android/lineage/kernel/samsung/exynos7870 as source for kernel
CALL /home/owner/android/lineage/kernel/samsung/exynos7870/scripts/checksyscalls.sh
make[2]: 'include/generated/vdso-offsets.h' is up to date.
CHK include/generated/compile.h
AS firmware/gnss_firmware.bin.gen.o
AS firmware/tsp_imagis/ist3038h_j5y.fw.gen.o
AS firmware/tsp_imagis/ist3038h_j5y_cmcs.bin.gen.o
AS firmware/tsp_imagis/ist3038h_a3xpre.fw.gen.o
firmware/gnss_firmware.bin.gen.S: Assembler messages:
firmware/gnss_firmware.bin.gen.S:5: Error: file not found: firmware/gnss_firmware.bin
make[2]: *** [/home/owner/android/lineage/kernel/samsung/exynos7870/scripts/Makefile.build:293: firmware/gnss_firmware.bin.gen.o] Error 1

I did check and the file indeed is present... Also checked the kernel sources a bit and I don't see anything wrong. So I'm kinda stuck.

Edit : Fixed by cp kernel/samsung/exynos7870/firmware/gnss_firmware.bin out/target/product/a3y17lte/obj/KERNEL_OBJ/firmware
[Android] srgrusso:
I'm trying to build a couple of custom recoveries with rather large recovery images for my Samsung Galaxy Tab A 10.1 (SM-T5800). When I boot my custom recovery I get the following error in red letters.

could not do normal boot invalid ramdisk length

Does anybody know what this error means? If I were to guess I would say that the ramdisk-recovery.img is too big. I tried building a new kernel with what I found here but still the same error.

Any help would be appreciated.

Thanks.
[Android] DragonFire1024:
Sounds like the addresses aren't right. Have you checked those values and see that they match up with your stock binaries and images?
[Android] dnbx:
Please someone help...

https://pastebin.com/Z7e8TFHw
[Android] NepoRood:
You need Python 2
[Android] AFTAB 111:
https://del.dog/hullinitta.txt please someone tell how to solve this error trying to build aex from source
[Android] DiamondJohn:
AndroidManifest.xml:26: error: resource drawable/ic_launcher (aka com.android.terminal:drawabl
e/ic_launcher) not found

I would either correct the terminals manifest or source the missing resource, or just for test, temporarily remove it from the list of apps to be built, just to check its your only error.
[Android] bencetari:
What was the solution? I have the same unknown target bacon did you mean racoon error. Please help.
[Android] iwingmusic:
This may mean that the package is missing, has been obsoleted, or is only availa

How can I solve this? :

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'git' instead of 'git-core'

Note, selecting 'libreadline-dev:i386' instead of 'libreadline6-dev:i386'

Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'

Note, selecting 'libreadline-dev' instead of 'libreadline6-dev'

Note, selecting 'libreadline-dev:i386' instead of 'libreadline6-dev:i386'

Package lib32readline-gplv2-dev 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

Package libreadline6 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

Package libreadline6:i386 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 lib32bz2-1.0

E: Couldn't find any package by glob 'lib32bz2-1.0'

E: Couldn't find any package by regex 'lib32bz2-1.0'

E: Unable to locate package mingw32

E: Package 'libreadline6' has no installation candidate

E: Package 'lib32readline-gplv2-dev' has no installation candidate

E: Unable to locate package lib32readline5

E: Unable to locate package lib32readline6

E: Package 'libreadline6:i386' has no installation candidate

E: Unable to locate package lib32bz2-dev

E: Unable to locate package libesd0-dev

E: Unable to locate package libwxgtk2.8-dev

E: Couldn't find any package by glob 'libwxgtk2.8-dev'

E: Couldn't find any package by regex 'libwxgtk2.8-dev'
[Android] NepoRood:
Guide is a bit dated, [MENTION=5216756]jackeagle[/MENTION] needs to update it, lol

Use this for packages:

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip

Source
[Android] iwingmusic:
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle

thanks a lot it worked. now here comes the next error of further step, when i tried to download repo using the following commands from los:

repo init -u git://github.com/LineageOS/android.git -b lineage-17.1

i got this :

fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle

fatal: error [Errno -2] Name or service not known

fatal: cloning the git-repo repository failed, will remove '.repo/repo'
[Android] NepoRood:
You have to install repo too:

mkdir ~/bin
PATH=~/bin:$PATH

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

And don't forget to setup your git info:

git config --global user.name "Your Name"
git config --global user.email "you@example.com"
[Android] iwingmusic:
great! works again. i'm downloading sources now. hope you will be there for me again if any unexpected things will happen.
[Android] abalam:
Has anyone seen this error as "out of memory"

https://hastebin.com/unubixotus.sql
[Android] DiamondJohn:
First thing, I personally have never had an exception within Linux during a build :confused: ie your

Exception in thread "main" java.lang.InternalError: java.lang.reflect.InvocationTargetException

I build using a VBox Ubuntu running on Win7. I have NO experience with arch linux, so someone else would help you more there.

Now, the following is not "the best", its simply what has worked for me across multiple devices and ROMs.

I install "ts" and "tee" to help get formatted logs. Ie a timestamp at the beginning of the line, and logs both out to the screen and to a log file. I *think* it may be

sudo apt-get install moreutils;

but its been a loooong time since I set up an env,

I start with:

ROM=crdroid_10;
DEVICE_PEFIX=lineage;
DEVICE=ks01ltexx;
rm $HOME/brunch_out.log;

For my sync, I use the following:

repo forall -c git reset --hard;
repo forall -c git clean -fdx;
repo forall -c git checkout -f;
repo sync -fc -j2 --force-sync --force-broken --no-clone-bundle --no-tags;

and then:

source build/envsetup.sh |& ts '[%Y-%m-%d %H:%M:%S]' | tee -a $HOME/brunch_out.log;
source build/envsetup.sh;

Yes, the envsetup is run twice. Once to log it, and once to actually set up the environment

lunch "$DEVICE_PEFIX"_$DEVICE-userdebug |& ts '[%Y-%m-%d %H:%M:%S]' | tee -a $HOME/brunch_out.log;
make clobber |& ts '[%Y-%m-%d %H:%M:%S]' | tee -a $HOME/brunch_out.log;
croot |& ts '[%Y-%m-%d %H:%M:%S]' | tee -a $HOME/brunch_out.log;
echo "================================= START AT >>>>>>>>>>>> "$(date) |& ts '[%Y-%m-%d %H:%M:%S]' | tee -a $HOME/brunch_out.log;
brunch "$DEVICE_PEFIX"_$DEVICE-userdebug |& ts '[%Y-%m-%d %H:%M:%S]' | tee -a $HOME/brunch_out.log;

The above is a heavily cut down version of my "clean" build. But I do *not* think it will solve your current issue, its just an FYI.
[Android] spookcity138:
I don't really understand what your error is here. I build on Arch Linux without issue. Perhaps take a look at the wiki page on Android (assuming you haven't already) lots of info there.

There is also the aosp-devel package and lineageos-devel package available in the AUR to install all needed packages for building.
[Android] M.Tullius:
Thanks, but since you do not specify how do you get kernel/device/vendor, I cannot try to build your device, since 'lunch' does not give me that option.

Can you try to build pixel for my device instead?

---------- Post added at 05:01 PM ---------- Previous post was at 05:00 PM ----------

Thanks, indeed I looked at both Lineage and Arch wiki, though the latter is a bit outdated.
[Android] DiamondJohn:
Oh, I never provided those details with any thought you would try and build for my specific device, i did so for you to change for your ROM and Device. FYI: I had to manually create my local manifest for that device; its unofficial.

Even if I gave you my manifest, I would assume it would fail, as my device tree is LOS based not AOSP based anyway, as I would expect the pixel experience would be.

My personal suggestion would be to sort out that linux based exception as a first priority. The fact that [MENTION=7065337]spookcity138[/MENTION] uses arch, and was confused by that error, should indicate you may have something wrong with your OS that needs to be sorted first, before you could hope to have a working build env.

Actually, is your device an official LOS device? If so, my first ROM builds were helped greatly by devs on:

https://webchat.freenode.net/?channels=lineageos-dev

In my experience, building LOS for an official device, is a great introduction to building ROMs