yashsingh1/xdaforums huggingface dataset:
[Android] DiamondJohn:
OK, so, I had two issues, the first (the git warning) is probably nothing to worry about. However, the ccache and build thing was stopping the build.:mad: PS: a typical build time is usually under or around an hour. :good: I built a new VMBox using 18.04.1 LTS to start out "clean", though I share my drives/partitions between Vbox instances eg my out path is a reused partition.

I noticed the build error literally mentioned ccache, so I thought it may be a bad ccache status. So, I tried clearing it with a "ccache -C", and lo and behold, that triggered the exact same error:eek: without a build running ie

ccache: error: invalid boolean environment variable value "0"

So I tried a reformat of the ccache (thinking it was really screwed), and still the same error. So I read the error again, and then looked at my config in the thought of maybe switching it off. I had:

export USE_CCACHE=1;
[COLOR="Red"]export CCACHE_COMPRESS=0;[/COLOR]
export CCACHE_DIR=$HOME/android/.ccache;
ccache -M 20G

I noted that everywhere on the web the CCACHE_COMPRESS setting was mentioned, it was only to turn it on with =1; nowhere is it explicitly turned off with =0 (or false as I found somewhere).

So, I removed that line, and hey presto, the build is now at 99% as I type! So it was my own doing:o. I have had that setting for a number of years now, but it has only caused an issue now.:silly:

So, as I did not find anything in a web search, I will just put these together so maybe someone else can find the solution.

The error:

ccache: error: invalid boolean environment variable value "0"

is caused by

export CCACHE_COMPRESS=0;

in your .bashrc file.

PS: The build has now completed while I typed! :victory::highfive: and I have a new build VBox. but it was slow with a cleared ccache;)
[Android] unmaskedfalesh:
thanks, i tried it but it did not work for me.
[Android] NepoRood:
Thanks for adding your fix, so much better than: I fixed it, thanks everyone

I'd never heard of the compress variable, until you mentioned it, does it make a difference if it is compressed or not? I have 200 Gb set for ccache now, lol
[Android] :
Sorry for the Noobish Question. I'm trying to build a ROM for my Device (Nexus 6P). After I download the ROM Source and Device Specific Sources it doesn't show up in Brunch. I did some search and Found out I have to Modify the Device Tree. But I have to idea how to do that, there are no guides for Pie and those that are available are very outdated and I can't make Heads or tails of them. So if you could please help me...
[Android] DiamondJohn:
I have never used it, and the problem I caused myself was by trying to explicitly ensure it was off, when all that is needed is not explicitly turning it on:silly:. My "rule of thumb" has been to expect about 5GB of CCache per ROM-Device combination. I have my CCache sitting on a small solid state drive and is set at about 20GB with a setting in my Vbox to use 50GB. Now that I have cleared the cache and built only one ROM, its sitting at 5GB used, so good for my :good:. Historically, for me, it doesn't grow too much off multiple builds of the same ROM-Device, but does eventually grow ever so slightly over time.

This parameter is mentioned in the LOS build instructions, which I used originally a few years back, and used again (from another device) to help set up my new build environment; its not complete for me.

From LOS they say (https://wiki.lineageos.org/devices/shamu/build not my device):
[Android] NepoRood:
I figured as much, "compression" means about the same everywhere.

I have a 1Tb SSD, which has source and ccache, then a 250Gb SSD for out, which will hold 2 builds, one for Pixel 3 XL and one for Pixel 3, currently building my own ScorpionROM for each (<-- shameless plug)

I have 670ish Gb free on the main drive (running Linux Mint 19.x), I have our main branch and caf branch downloaded, that's all the source I have. 92 Gb is ccache used, which has been building up since November of 2018. I think I have plenty of room, I also have several HDDs installed, like 8 Tb worth, lol
[Android] srgrusso:
I'm getting the same error. Maybe you can help me. Can you please explain how you fixed this error?

Thanks
[Android] dungphp:
Add same as:

# Hal's

TARGET_QCOM_AUDIO_VARIANT := caf-msm8952

TARGET_QCOM_DISPLAY_VARIANT := caf-msm8952

TARGET_QCOM_MEDIA_VARIANT := caf-msm8952

PRODUCT_SOONG_NAMESPACES += \

hardware/qcom/display-$(TARGET_QCOM_DISPLAY_VARIANT) \

hardware/qcom/audio-$(TARGET_QCOM_AUDIO_VARIANT) \

hardware/qcom/media-$(TARGET_QCOM_MEDIA_VARIANT)

to BoardConfigCommon.mk

and hardware folders name as: audio-caf-msm8952, media-caf-msm8952, display-caf-msm8952
[Android] Rortiz2:
hi all,

I'm having some issues compiling cm12.1. I have ubuntu 18.04 and OpenJDK7 installed.

When I run mka bacon for compile, it gives me this error:

build/core/dex_preopt.mk:47: *** target pattern contains no '%'. Stop.

Any ideas? Thanks!

PS: Here's my device tree and my vendor tree:

DEVICE TREE: https://github.com/R0rtiz2/android_device_douglas

VENDOR TREE: https://github.com/R0rtiz2/android_vendor_douglas
[Android] unciy:
Please explain in more detail where to fix it and how?
[Android] Soumy1234:
I'm trying to build Resurrection Remix for my Galaxy Tab 3 10.1 (santos10wifi). I think I'm really close to getting it but the build gives the following error at 99% (this isn't the whole process, just some last parts)

https://pastebin.com/b0A16BwZ

It says that there is a "MemoryError" at the end.

I'm using BBQLinux (based on Arch) on a VM with 8GB of RAM.

These are the contents of my .bashrc file:

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

# Include user's private bin dir if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi

export PATH
export JAVA_HOME=/usr/lib/jvm/default
export LC_ALL=C
export USE_CCACHE=1

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"

I've tried to change the number of the "-Xmx4096m" to 4G and 8G but it doesn't work. I also tried to rerun "brunch santos10wifi" after without "make clean" but it gave some other error about images.

Can anyone help with this, please?
[Android] srgrusso:
Thanks for your response I was able to avoid this error by reverting a commit. When I find the sources for "libqdMetaData.system" and "display_intf_headers" I will give this a try.
[Android] james2727:
can i know how to fix this

mport includes file: /home/jms/android/system/out/host/linux-x86/obj32/EXECUTABLES/acp_intermediates/import_includes

host C: libhost_32 <= build/libs/host/CopyFile.c

Yacc: aidl <= frameworks/base/tools/aidl/aidl_language_y.y

prebuilts/misc/linux-x86/bison/bison -d -o /home/jms/android/system/out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp frameworks/base/tools/aidl/aidl_language_y.y

/bin/bash: prebuilts/misc/linux-x86/bison/bison: cannot execute binary file: Exec format error

build/core/binary.mk:538: recipe for target '/home/jms/android/system/out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp' failed

make: *** [/home/jms/android/system/out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Error 126

make: *** Waiting for unfinished jobs....

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

#### make failed to build some targets (04:29 (mm:ss)) ####
[Android] NepoRood:
It would appear that you are experiencing an OOM failure (Out Of Memory), if you're building Pie, 8Gb isn't enough.

When you say 8 GB RAM, is that total, or you gave 8 to the VM?
[Android] AndDiSa:
Did you check whether there is enough file system space (also on /tmp as the zip will be extracted and re-packed) to create to img files?
[Android] Angel_666:
Hi All! Trying to build lineage 16.0 on custom device tree. But when build started and initialize device tree, it stops with this log:

ninja: no work to do.[COLOR=#4E9A06]#### build completed successfully (01:25 (mm:ss)) ####[/COLOR]

(I run mka bacon). But if i switch to 14.1 branch and turn off Ninja, all firmware building successfuly.. If i turn Ninja on again, it says "no work to do" without any errors. As we can not turn off Ninja in 16.0 LinageOS, i'm stuck with it.. Why it won't build with Ninja?
[Android] Soumy1234:
I'm actually building Nougat for this device, not Pie, but it still should take a lot of RAM. When I say 8GB of RAM, my computer has 8GB and I gave it all to the VM.

Edit: My computer has 12GB of RAM, not 8. I just found out. My bad.

---------- Post added at 05:22 PM ---------- Previous post was at 05:10 PM ----------

This is the output of "df -h" :

Filesystem Size Used Avail Use% Mounted on
dev 3.9G 0 3.9G 0% /dev
run 3.9G 8.9M 3.9G 1% /run
/dev/sda2 59G 14G 43G 25% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 3.9G 37M 3.9G 1% /tmp
/dev/sda1 240M 60M 164M 27% /boot
/dev/sda3 235G 65G 158G 30% /home
Shared 916G 649G 268G 71% /media/sf_Shared
tmpfs 798M 32K 798M 1% /run/user/1001

There should be more than enough space, no? Note that "Shared" is my shared folder between the VM and my main Windows system. That's why the size is so large.
[Android] AndDiSa:
Hmm ... /tmp is 3.9GB not sure whether it's big enough for system.img for your device plus zip plus ... your system.img already 2.5 GB

Btw. the last command in your log is:

...

unzipping target target-files ...

running:

unzip -o -q /home/soumy/santos10/out/target/product/santos10wifi/obj/PACKAGING/target_files_intermediates/lineage_santos10wifi-target_files-8657e7065e.zip -d /tmp/targetfiles-Qd8cNF

...
[Android] NepoRood:
Looks like your file system has plenty of room for a build. The one or 2 times I messed around with a VM, I couldn't allocate all of my RAM to the VM, I had to save some for Windows, double check your settings. You could also try adding some swap space, it may help.

You'd be better off with a dual-boot system instead of using a VM, if you want to continue the hobby of building your own ROMs, my thoughts anyway.

Eventually you are going to need better hardware, simply because as Android versions progress, more and more resources are needed to build.
[Android] :
Hi Guys. While trying to build BootLeggers for my Angler im getting this error. https://del.dog/arenezalet Can anyone help? TIA
[Android] quake73:
try installing this: sudo apt install libncurses5
[Android] harshwardhanmehrotra:
hello guys ,

i am trying to build or port mokee rom from source for X00TD but i am getting the following error

build/make/core/product_config.mk:253: error: No matches for product "X00TD".
02:09:29 dumpvars failed with: exit status 1
Device X00TD not found. Attempting to retrieve device repository from MoKee Open Source Github (http://github.com/MoKee).
Repository for X00TD not found in the MoKee Open Source Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/make/core/product_config.mk:253: error: No matches for product "X00TD".
02:09:30 dumpvars failed with: exit status 1
build/make/core/product_config.mk:253: error: No matches for product "X00TD".
02:09:31 dumpvars failed with: exit status 1

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

but before that i was getting this error

device/asus/X00TD/device.mk:515: error: _nic.PRODUCTS.[[device/asus/X00TD/X00TD.mk]]: "frameworks/native/build/phone-xxhdpi-3072-dalvik-heap.mk" does not exist.
02:08:55 dumpvars failed with: exit status 1
Device X00TD not found. Attempting to retrieve device repository from MoKee Open Source Github (http://github.com/MoKee).
Repository for X00TD not found in the MoKee Open Source Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
device/asus/X00TD/device.mk:515: error: _nic.PRODUCTS.[[device/asus/X00TD/X00TD.mk]]: "frameworks/native/build/phone-xxhdpi-3072-dalvik-heap.mk" does not exist.
02:08:57 dumpvars failed with: exit status 1
device/asus/X00TD/device.mk:515: error: _nic.PRODUCTS.[[device/asus/X00TD/X00TD.mk]]: "frameworks/native/build/phone-xxhdpi-3072-dalvik-heap.mk" does not exist.
02:08:58 dumpvars failed with: exit status 1

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

i downloaded those file and placed them in that directory but after that i am getting the no matches for the product error.

what to do?:eek::confused:

FIXED:good:
[Android] Soumy1234:
Is there a recommended size for the swap or can I just make an 8GB swap file?
[Android] quake73:
No, there isnt. Something is confusing about your claims (i followed the prev. posts). You say you have 8gb in total and you gave it all to your VM, which is impossible. Type 'free -h' in terminal in your vm/linux and you'll see the true memory available to ubuntu. Post the output.

Back in the days of nougat, i guess 8gb would be enough but, i suspect you have a lot less than that in your vm.
[Android] Soumy1234:
You're right, I done goofed. My computer actually has 12GB of RAM and I thought it was 8. My bad :silly:

As for the 'free -h', this is the output.

total used free shared buff/cache available

Mem: 7.8Gi 669Mi 6.8Gi 88Mi 380Mi 6.8Gi

Swap: 0B 0B 0B

I'll try to make an 8GB swap file and see how that goes.
[Android] quake73:
Ok, now we are getting somewhere. :P

You said you have windows (10, i guess) and hyper-v. I read somewhere, to squeeze a little more perf., mount your virtual disks in fstab like this (with noatime):

UUID=2136066f-fb74-4767-9a84-1ed7b4badeab /home ext4 defaults,noatime 0 1

then, add "elevator=noop" in your /etc/default/grub file,

like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1200x675 elevator=noop"

run 'sudo update-grub' and reboot.

Those are my side advices....aw, and yes, try adding some swap memory. :P
[Android] Soumy1234:
I'm actually running Windows 8.1. I currently am running a build with an 8GB swap file. If that doesn't work, I'll try this out. Thanks for the tip ;)
[Android] quake73:
Ok, doesnt matter, 8.1 or 10, it's hyper-v....my advice is for better performance, it won't help the lack of ram unfortunately but anyway, in my opinion, 8gb inside the vm should be good for nougat....just add some swap for the peak needs, during the final stages, it juggles alot of GBs, compressing them and what not.
[Android] AmirHRC:
iam trying to build posp rom for shamu iam getting this error :

device/moto/shamu/camera/Qcamera2/Android.mk: error: camera.msm8084 (shared_libraries android-arm) missing libqdMetaData (shared_libraries android-arm)

help me
[Android] quake73:
It can be found in vendor/qcom-opensource/display-commonsys-intf...try getting that repo from codeaurora/caf.
[Android] AmirHRC:
now iam getting this
[Android] Soumy1234:
The swap file worked! I finally have my ROM! Thank you so much to everyone who helped me with this :good:
[Android] srgrusso:
Try building with this command. Where device is the name of your device.

. build/envsetup.sh
brunch lineage_device-userdebug

Good Luck!
[Android] AmirHRC:
who can help me with this

iam trying to build posp rom for shamu

iam getting this error
[Android] quake73:
I answered it yesterday: install libncurses5

sudo apt install libncurses5
[Android] harshwardhanmehrotra:
Thanks and sorry for not reading the yesterday's reply
[Android] Soumy1234:
So I've just built my RR nougat ROM for my santos10wifi and I noticed something weird. On the Linux VM that I built it on, the ROM size is 376mb. When I move it to my Windows OS or upload to my Google Drive, it shrinks down to around 359mb. Is this normal? I didn't actually test it out yet since I currently don't have access to the device.
[Android] NepoRood:
This is normal
[Android] :
https://del.dog/ciyexizate

So this is the new error im getting at about 67%. Any Ideas? Trying to Build Bootleggers for Angler
[Android] NepoRood:
It's actually a kernel issue and one I've had before, you need to pick this commit
[Android] :
Hey thanks for the Quick Response. Just a couple of Questions. One that's the Kernel for Google Marlin. I'm building for Angler. Will it work? And two how exactly do I "pick the commit"? This is my first time building a ROM following this very Guides and I have no idea. So of you could guide me I'd be very thankful.
[Android] NepoRood:
I know it's for Marlin, lol, but the same commit appears in several Lineage kernels. There's a cherry pick link located in "download", just cd into your kernel directory, then paste the pick and press enter. Hopefully, there will be no conflicts

EDIT:

I forgot about this guide, link
[Android] Soumy1234:
Thanks! Just making sure.
[Android] Rortiz2:
Nobody can help me : (?

build/core/dex_preopt.mk:47: *** target pattern contains no '%'. Stop.
[Android] tecno789:
Omg :(. It's very huge, but can I stop and take from I stop the download?
[Android] commencal661:
Why are you even trying to build your own ROM, if all you do is complain about the repo size???
[Android] tecno789:
Sorry dude you are right, just asked..
[Android] desalesouche:
cm12 for huawei g620s (msm8916)

hi all!

may i ask some help about fixing that problem i got from dmesg?:

<3>[193, pkgld][ 478.877061] sdcardfs: missing packages.list_end; retrying

<3>[193, pkgld][ 478.877110] sdcardfs: missing packages.list; retrying

https://github.com/G620S-HUAWEI/android_kernel_huawei_g620s/tree/cm-11.0/fs/sdcardfs

thank you all.
[Android] mohit310:
Seems like some app is looking for packages.list file in some path. Check your rom source tree to find if one is available
[Android] desalesouche:
yes you can.

do ctrl z . it will stop the operation.

and later redo repo sync
[Android] jgcaap:
katinatez saved me! :D

guys how can i point out to the builder which defconfig to use of kernel??

I want to edit some stuff on kernel level (add and remove govenor and schedulers, as features) i already learned how to edit defconfig, but i dont know to instruct the builder to go fetch that defconfig to build together with the rom.

Thanks
[Android] banerjeeayan1996:
I have ported a cm 11 for my device but the problem is that the camera is only 3mp but my device has 5mp. So can anybody tell me how to fix that please. My device is S duos. And btw does cm 11 supports fm radio. If yes can you tell me how to import it....[emoji122] [emoji22]
[Android] tobitege:
In your device's BoardConfig.mk file you should have a line like this:

TARGET_KERNEL_CONFIG := cyanogenmod_bacon_defconfig
[Android] mohamed786:
As i download the source code completely through repo sync

I got an an error:angel::confused:

syncing work tree: 11% (52/469) error: in `sync -f`: revision refs/heads/cm-11.0 in cyanogenmod/android_external_chromium not found

when i trying to re sync the repo by the command repo sync -f :confused::confused:

it will hangs at 88% and it will restart the downloading plz help:confused::confused:

1. ATTACHMENT : ERROR

2. ATTACHMENT : HANGS @ 88% AFTER WADS ITS STARTS FROM 89,90 SIMILARLY UP TO 100% (SOURCE ALREADY BE DOWNLOAD AS PER 1 ST ATTACHMENT)
[Android] jgcaap:
perfect! now i am getting used to this organized tool :D Big thanks

---------- Post added at 02:16 PM ---------- Previous post was at 02:06 PM ----------

just learned that Slim has its gapps online:

https://github.com/dankoman30/slimlp_gapps/blob/master/build.xml

I would like to compile on my computer, in order to have the apps, if possible, without compreension on APK. is it possible?
[Android] prince.d.emperor:
Why m I getting this? ?

prince@ultrabook:~$ mkdir rom

prince@ultrabook:~$ cd rom

prince@ultrabook:~/rom$ repo init -u https://github.com/TeamBliss-LP/android.git -b lp5.0

/home/prince/bin/repo: line 1: syntax error near unexpected token `newline'

/home/prince/bin/repo: line 1: `<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'

prince@ultrabook:~/rom$
[Android] akhilnarang:
Delete /bin/repo, download it again, make sure you do

chmod a+x ~/bin/repo
[Android] prince.d.emperor:
Didn't work :(
[Android] mohit310:
- Make sure you have a bin/ directory in your home directory and that it is included in your path: (Very Important)

$ PATH=~/bin:$PATH

- Next,

$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

$ chmod +x ~/bin/repo
[Android] jgcaap:
anyone know to say if this is safe to do?

https://github.com/jgcaap/android_k...mmit/d2e6f9252b97e9c948c7174ce5578516aaa2ed7f

i commit just to know your opinion... Thanks
[Android] desalesouche:
NFc errors.

hi all may i request some help for fixing those errors?

http://pastebin.com/n0ZBt2HA

device/huawei/g620s/configs/nfcee_access.xml:36: namespace error : Namespace prefix android for signature on signer is not defined

6ab8dd5b8399203daae2ed446232e4fe9bd961394c6300e5138e3cfd285e6e4e483538cb8b1b357"

^

device/huawei/g620s/configs/nfcee_access.xml:37: namespace error : Namespace prefix android for name on package is not defined

<package android:name="com.broadcom.apps.testframework"/>

https://github.com/G620S-HUAWEI/android_device_huawei_g620s/blob/cm-11.0/configs/nfcee_access.xml

thank you!
[Android] mohit310:
If it works you are good...
[Android] prince.d.emperor:
I am doing the same. But.... facing the same problem.
[Android] mohit310:
I think you are bypassing some steps.

Follow this guide.

http://source.android.com/source/downloading.html#installing-repo

---------- Post added at 05:47 PM ---------- Previous post was at 05:45 PM ----------

Do a repo sync and make clean and rebuild.

Should work!!
[Android] DiamondJohn:
I would feel pretty safe in saying that the MD5 will be the same in all instance; if you get bothered enough by it.
[Android] Soumy1234:
My ROM's boot time is really slow. I searched this thread and someone suggested to enable DEXPREOPT, but I'm not sure how to do that. Can someone explain?

Edit: I also tried installing Gapps Micro and the latest version of Magisk and it caused some issues. It took a REALLY long time to boot (I thought it was in a bootloop), and Magisk didn't detect my root apps (I ran ROM Toolbox lite and I saw that Magisk denied SU privileges without asking, but when I check Magisk Manager, the app isn't there and the logs are empty). I tried to delete /data/adb/magisk.db to fix this and the device got into a bootloop. I tried holding the power button to force reboot and now it won't turn on anymore and I have to take it apart again to fix the battery. I don't know if this is a Magisk thing or a ROM thing since I saw many other people were having this problem on the Magisk Support thread but it works on my other device.
[Android] NepoRood:
Add to BoardConfig.mk

WITH_DEXPREOPT := true

Some devices have some more advanced code added, you can search Github for devices similar to yours and see what they use.

I got nothing for your Magisk issues...
[Android] DiamondJohn:
Are you talking about the very first boot or all subsequent boots?

From my understanding, the DEXPROPT will have the most effect on the very first boot and any first boot specifically after a wipe of davik-cache.
[Android] NepoRood:
This is true, takes my Pixel 3 about 5 minutes, or so, the first time after a flash, then like 20 seconds for subsequent boots
[Android] :
OK now im getting this error. can anyone help? https://del.dog/ugazasacuk
[Android] Soumy1234:
I mean all boots. Even after the first boot it still took around 4 minutes to boot up.

---------- Post added at 02:55 PM ---------- Previous post was at 02:53 PM ----------

No, it's all boots. I'm aware it takes long for the first boot, but it shouldn't take the same time or even longer than that for following boots.