yashsingh1/xdaforums huggingface dataset:
[Android] dev.kasibhatla:
Please help

I started fresh. Made a new tree from scratch.

Building gives me the following error:

Made DT image: /home/dev-k/candy/out/target/product/black/dt.img
[ 0% 72/32216] build /home/dev-k/candy/out/target/product/black/persist.img
FAILED: /bin/bash -c "(echo \"Target persist fs image: /home/dev-k/candy/out/target/product/black/persist.img\" ) && (mkdir -p /home/dev-k/candy/out/target/product/black/persist ) && (/home/dev-k/candy/out/host/linux-x86/bin/mkuserimg.sh -s /home/dev-k/candy/out/target/product/black/persist /home/dev-k/candy/out/target/product/black/persist.img ext4 persist ) && (chmod a+r /home/dev-k/candy/out/target/product/black/persist.img )"
Target persist fs image: /home/dev-k/candy/out/target/product/black/persist.img
Usage:
mkuserimg.sh [-s] SRC_DIR OUTPUT_FILE EXT_VARIANT MOUNT_POINT SIZE [-j <journal_size>]
[-T TIMESTAMP] [-C FS_CONFIG] [-D PRODUCT_OUT] [-B BLOCK_LIST_FILE]
[-d BASE_ALLOC_FILE_IN ] [-A BASE_ALLOC_FILE_OUT ] [-L LABEL]
[-i INODES ] [FILE_CONTEXTS]
[ 0% 72/32216] build /home/dev-k/cand...k-res_intermediates/package-export.apk
target Export Resources: framework-res (/home/dev-k/candy/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)
warning: string 'candidates_style' has no default translation.
warning: string 'gsm_alphabet_default_charset' has no default translation.
warning: string 'wfcSpnFormat' has no default translation.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:158: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (05:50 (mm:ss)) ####

I have no idea how to go about it.

Thank you

---------- Post added at 04:57 AM ---------- Previous post was at 04:55 AM ----------

Okay sir, will do that tonight and then reply.

PS : i also started afresh and have an error while i build. I have posted it on the thread. Could you help me with that please

Thank you
[Android] sscsps:
Do you have partitions sizes properly set in device tree?
[Android] dev.kasibhatla:
In the boardconfig.mk file right? Yes i do.
[Android] sscsps:
Ok, I'm not entirely sure why/what, but there's some issue in the configs related to partitions flags, specially with persist partition.

May be I need to take a look at your tree to figure out what's wrong
[Android] dev.kasibhatla:
Link to my tree

Thank you
[Android] sscsps:
I don't actually have time right now, might look later, after 10 hours or so
[Android] dev.kasibhatla:
Okay sir thank you. I ll certainly check back in 10 hours,
[Android] solarsoap:
Can you communicate with phone plugged in to computer?

Can you bring up recovery?

Sscsps has good idea.
[Android] dev.kasibhatla:
Got the log. It has errors. I am attaching the log with this message.

Please suggest changes in my tree.

Thank you
[Android] sscsps:
Ok, fyi, you should almost always use an online paste service to post logs,

One i use is www.hastebin.com

There are many more BTW. So, I'd want you to provide a hastebin copy as that won't require me to download it view on my phone

---------- Post added at 07:59 AM ---------- Previous post was at 07:53 AM ----------

BTW, i don't really have an idea how fix this, I would tell you to Google search the error and find the fix from there, and if you can't find solution on google, try asking some QCOM dev.

I'm not a QCOM kernel Dev, I'm more interested in MTK and I'm not much experienced yet either, just learning.

So I can not really help here,

All I can suggest is that you search Google with error as query.
[Android] unknown:
Help

When i try to start jack server , it says : jack server installation not found

Any help ?? :confused::confused:
[Android] dev.kasibhatla:
Do you have the path in your bash.rc?

and do you have it installed?

syntax:

jack-admin install-server <launcher.jar> <server.jar>
[Android] unknown:
Already tried , It is have problem with "<" :crying::crying:

Try increasing heap size with java option '-Xmx<size>'
Warning: This may have produced partial or corrupted output.
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1

Another problems

Any help ?
[Android] dev.kasibhatla:
Easy. Before next build, do:

make clean
export ANDROID_JACK_VM_ARGS="-Xmx4g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"

4g is 4gb. you can also write 4096m.

kill the server and restart it for changes to take effect.

Hope you have atleast 8gb ram and enough swap

Hit thanks if i helped
[Android] unknown:
20 gb swap :cyclops::cyclops:

Yeah 8 gb ram :cowboy:

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f928eca9cbf, pid=14569, tid=0x00007f9278fff700
#
# JRE version: OpenJDK Runtime Environment (8.0_131-b11) (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
# Java VM: OpenJDK 64-Bit Server VM (25.131-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x927cbf]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/abod/DU/hs_err_pid14569.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
/bin/bash: line 1: 14569 Aborted

Anyway to fix this ?
[Android] dev.kasibhatla:
Why don't you try what it is asking you to do? enable core dump
[Android] unknown:
Ok . I dont see it :laugh::laugh::laugh:
[Android] dev.kasibhatla:
Okay i found a thread where they've solved this problem. I am pasting the link. See if it helps.

Link to the thread
[Android] unknown:
Communication error with Jack server (56). Try 'jack-diagnose'

DO you know how to fix ? :confused::confused:
[Android] dev.kasibhatla:
Re-installing jack server solved this problem for me. Also i have reduced the number of jacks to 2 from 4 in the .jack-server/config.properties file.

Did you increase the heap size to 4 gb like i asked you to?
[Android] unknown:
I dont :cyclops:
[Android] Uvneshkumar:
Hi. I was building LineageOS for Redmi Note 3 (Kenzo) and I got a flashable zip in my OUT DIR. It was named like "lineage-14.1-20170811-UNOFFICIAL-kenzo.zip". Now my question is how to change default name of generated zips to something like "MyOS-1.0-Kenzo.zip" or something like that to the format I desire. The default naming must've been programmed somewhere inside a script file (May be). Does anyone know what file is that or any other way of changing the name during the build process?

Please do not advice me to rename the file manually after building the ROM, unless it is the only way. But I hope it's not.
[Android] MZO:
Oh you mean in the build dir,sgrep for source and you'll find what you're looking for
[Android] YedanyXD:
Im getting this error while compiling

Someone know what could be? Thanks

host Executable: mkbootfs (/home/yedanyxd/du/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)

/home/yedanyxd/du/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/yedanyxd/du/out/target/product/ghost/obj/ETC/sepolicy_intermediates/policy.conf

target Strip: libdl (/home/yedanyxd/du/out/target/product/ghost/obj/lib/libdl.so)

/home/yedanyxd/du/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/yedanyxd/du/out/target/product/ghost/obj/ETC/sepolicy.recovery_intermediates/policy_recovery.conf

device/motorola/msm8960dt-common/sepolicy/bluetooth_loader.te:13:ERROR 'unknown type persist_bluetooth_file' at token ';' on line 27994:

allow hci_attach bluetooth_loader:fifo_file { { getattr open read ioctl lock } { open append write } };

allow hci_attach persist_bluetooth_file:file { create rename setattr unlink { { getattr open read ioctl lock } { open append write } } };

checkpolicy: error(s) encountered while parsing configuration

make: *** [external/sepolicy/Android.mk:112: /home/yedanyxd/du/out/target/product/ghost/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1

make: *** Se espera a que terminen otras tareas....

device/motorola/msm8960dt-common/sepolicy/bluetooth_loader.te:13:ERROR 'unknown type persist_bluetooth_file' at token ';' on line 27704:

allow hci_attach persist_bluetooth_file:file { create rename setattr unlink { { getattr open read ioctl lock } { open append write } } };

allow hci_attach bluetooth_loader:fifo_file { { getattr open read ioctl lock } { open append write } };

checkpolicy: error(s) encountered while parsing configuration

make: *** [external/sepolicy/Android.mk:85: /home/yedanyxd/du/out/target/product/ghost/obj/ETC/sepolicy_intermediates/sepolicy] Error 1

GEN /home/yedanyxd/du/out/target/product/ghost/obj/KERNEL_OBJ/Makefile

drivers/usb/gadget/Kconfig:921:warning: defaults for choice values not supported
[Android] MZO:
Put it on hastebin.com ._.
[Android] YedanyXD:
here is it

https://hastebin.com/reticetedu.pl
[Android] MZO:
Declare the undeclared

unknown type persist_bluetooth_file
[Android] YedanyXD:
I follow the directory and see that line, what is supposed that i must have to do, sorry i dont understand
[Android] NepoRood:
Look over the "build/config/common.mk" file, it's there about's somewhere, I think. I haven't built CM/LOS in a while...

EDIT:

Sorry, bro, it's "vendor/cm/config/common.mk"
[Android] Uvneshkumar:
Sorry I really can't understand... Can you please elaborate...?
[Android] YedanyXD:
Can you help me with this please

https://hastebin.com/reticetedu.pl
[Android] Uvneshkumar:
Thank you so much bro. Found the cocde. :cool::cool::cool: Thanks a lot
[Android] rajit:
help me. i stuck here. my roomservice.xml https://pastebin.com/MDUxAYU9
[Android] NepoRood:
SELinux can be a real pain, hopefully someone with that knowledge can help you. You can try setting SELinux to "permissive", or just comment the line that it's referring to (though, fixing the issue is better than ignoring it)

No problem :good:

Not really anything to do with roomservice, your make files are off. Give a link to your device tree, and the problem can be corrected easily
[Android] rajit:
https://github.com/Exynos7580?utf8=✓&q=a5&type=&language=

device samsung a5 2016

A510FD .. codename- A5xelte
[Android] YedanyXD:
I ported succesfully DU 6.x but a dont have signal (RIL problem) someone know how to fix this
[Android] unknown:
Ported ?

U mean source ported or normal ported ? :confused:
[Android] rajit:
anyone knows how to fix this ??
[Android] YedanyXD:
Source
[Android] MZO:
Lack of info, what is the device, what branch did you use from DU? What's the log?
[Android] YedanyXD:
Device -moto x (ghost)

Branch- m-caf

Logcat (rename to .txt)
[Android] rajit:
any one?
[Android] aoleary:
You just need to add the CAF version of android_hardware_ril from cyanogenmod..

I had the same issue with DU11
[Android] smartdetodos:
DELETED (It was typed by mistake)
[Android] unknown:
How to port source ? :confused::confused::confused:
[Android] dev.kasibhatla:
Can't seem to get rid of this error. Please help.

[ 33% 16348/49304] build /home/dev-k/candy/out/target/product/black/persist.img
FAILED: /bin/bash -c "(echo "Target persist fs image: /home/dev-k/candy/out/target/product/black/persist.img" ) && (mkdir -p /home/dev-k/candy/out/target/product/black/persist ) && (/home/dev-k/candy/out/host/linux-x86/bin/mkuserimg.sh -s /home/dev-k/candy/out/target/product/black/persist /home/dev-k/candy/out/target/product/black/persist.img ext4 persist ) && (chmod a+r /home/dev-k/candy/out/target/product/black/persist.img )"
Target persist fs image: /home/dev-k/candy/out/target/product/black/persist.img
Usage:
mkuserimg.sh [-s] SRC_DIR OUTPUT_FILE EXT_VARIANT MOUNT_POINT SIZE [-j <journal_size>]
[-T TIMESTAMP] [-C FS_CONFIG] [-D PRODUCT_OUT] [-B BLOCK_LIST_FILE]
[-d BASE_ALLOC_FILE_IN ] [-A BASE_ALLOC_FILE_OUT ] [-L LABEL]
[-i INODES ] [FILE_CONTEXTS]
[Android] Albe96:
You want to port source? ?? strange..

We don't know how to...
[Android] MZO:
Lmao
[Android] YedanyXD:
I delete the hardware/ril folder from du and use the hardware/ril from lineage cm13-caf branch. But it did not work, it keep without signal,
[Android] MZO:
You need ril-caf for caf devices
[Android] DiamondJohn:
I am building DirtyUnicorns for an official device (ie hammerhead), and I am getting the error

target arm C: audio.primary.msm8974 <= hardware/qcom/audio/hal/msm8974/platform.c
hardware/qcom/audio/hal/msm8974/platform.c:29:10: fatal error: 'linux/msm_audio.h' file not found
#include <linux/msm_audio.h>

I had a look through a couple of repositories for this file and I could not find the file, and also at "hardware/qcom/audio/hal/msm8974/platform.c", and all version of platform.c that I checked had the include (ie of the missing file "linux/msm_audio.h").

What am i doing wrong?:confused:

====EDIT========================

I think I found what was wrong. I was missing a project in my local manifest. I have kicked off the build again, and expect it :fingers-crossed: to NOT stop on that error... at least...

What I did wrong was that I think I copied the local manifest (for an official device) from another ROM instead of letting "lunch" build/create its own.
[Android] aoleary:
You keep the original hardware/ril folder and sync the CAF version to hardware/ril-caf

That's what worked for me. I didn't need to modify anything else to get it to work..
[Android] aoleary:
Try syncing

https://github.com/DirtyUnicorns/android_hardware_qcom_msm8x74.
[Android] DiamondJohn:
you must of read it just as I was updating. In my case,syncing wouldn't help because it was missing the branch completely in my manifest :o

After adding it and then syncing, it all built and I have flashed it and it appears to be running well.:highfive:

Now comes the hard part. That was simply to ensure that my build environment was all ok to build DU (I am lucky I have an N% to test build and flash, which is not my daily). Now I am going to try and add a new non-official device using an official device tree from lineage :rolleyes: I don't hold much hope, but will give it a go. I already tried once earlier (first hack at the device source, before my N5 built successfully) and got it to start the build process, now to start correcting the build errors. I can see above I don't seem to be alone in trying to build DU. so hope for the best. Thanks again for the help.:good:
[Android] aoleary:
You will get at least one error relating to a file called config something mentioning hardware keys and maybe another about blur. Just comment out the lines mentioned in the error and it'll be fine..

Those are functionalities that are present in LOS but not in DU
[Android] DiamondJohn:
Thanks for the heads up!! THAT'S the sort of thing I'm really going to need to know! :good:

Actually, just kicked off my build, and I get the following error (the output before it looks very similar to the output from my working build of hammerhead).

ninja: error: '/home/ubuntu/android/DirtyUnicorns/out/target/product/xt897/obj/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by '/home/ubuntu/android/DirtyUnicorns/out/target/product/xt897/obj/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes', missing and no known rule to make it

I tried a search earlier through all the files for a reference to "audiopolicyservice" and I dont think I found anything that made clear sense (before I built hammerhead, so left it as possibly noise). Found on the net a reference to add

https://stackoverflow.com/questions...es-when-trying-to-compile-aosp-7-1-1#41485569But then it had a similar error on a different module.:crying: so commented it back out.
[Android] aoleary:
Verify your manifest again. Those types of errors can mean that you are not syncing the correct repos
[Android] Hlcpereira:
Hi guys.

Well I'm stuck in a problem. I'm trying to build ViperOS for Quark (Moto Maxx/Droid Turbo) and well, everything it's ok, but when I type the compile command I get an error while start compiling. Any solution? :confused:

Error below:

find: "src/android": Arquivo ou diretório não encontrado
find: "src": Arquivo ou diretório não encontrado
find: "../commonutil/src": Arquivo ou diretório não encontrado
/bin/bash: linha 0: cd: cts/tests/libcore/ojluni/resources: Arquivo ou diretório não encontrado
find: "../../libs/commonutil/src": Arquivo ou diretório não encontrado
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
find: "../../provider/java": Arquivo ou diretório não encontrado
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: "src/android/bluetooth/client/pbap": Arquivo ou diretório não encontrado
find: "/home/hlcpereira/ROMs/ViperOS/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates": Arquivo ou diretório não encontrado
find: "dummy": Arquivo ou diretório não encontrado
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: "dummy": Arquivo ou diretório não encontrado
find: "dummy": Arquivo ou diretório não encontrado
find: "dummy": Arquivo ou diretório não encontrado
build/core/base_rules.mk:183: *** kernel/motorola/quark/camera: MODULE.TARGET.SHARED_LIBRARIES.camera.apq8084 already defined by device/motorola/quark/camera. Pare.
make: Leaving directory '/home/hlcpereira/ROMs/ViperOS'

#### make failed to build some targets (45 seconds) ####

No Jack server running. Try 'jack-admin start-server'

Thanks in advanced.
[Android] xenreon:
Your tree asks for cmsdk which pa doesn't have, further comments are useless without seeing your sources.

Try:

./prebuilts/sdk/tools/jack-admin start-server

Also it's better to post logs here in full English
[Android] Hlcpereira:
Here are the sorces that I'm using:

Tree: https://github.com/bhb27/device_motorola_quark/tree/N

Kernel: https://github.com/bhb27/BHB27Kernel/tree/N

Vendor: https://github.com/bhb27/proprietary_vendor_motorola/tree/N

Next time I'll include it in full english :good:;)
[Android] Albe96:
sorry

---------- Post added at 06:52 PM ---------- Previous post was at 06:42 PM ----------

what's the problem?
[Android] Hlcpereira:
See this post that I'm explaning my problem.
[Android] Hlcpereira:
Ok it's working now, but I'm stuck in the issue when I start building.

With ninja I get this:

build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: "/home/hlcpereira/ROMs/ViperOS/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates": Arquivo ou diretório não encontrado
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
build/core/base_rules.mk:183: *** kernel/motorola/quark/camera: MODULE.TARGET.SHARED_LIBRARIES.camera.apq8084 already defined by device/motorola/quark/camera.
make: *** [build/core/ninja.mk:182: /home/hlcpereira/ROMs/ViperOS/out/build-viper_quark.ninja] Error 1
make: Leaving directory '/home/hlcpereira/ROMs/ViperOS'

#### make failed to build some targets (9 seconds) ####

Without Ninja is the same of my previous post...

-----------[EDIT]------------

Ok, nevermind. I've fixed it...
[Android] Techie Android:
I can't build AOSPA for Bacon.

Getting this error:

[ 0% 90/18970] Docs droiddoc: out/target/common/docs/api-stubs

DroidDoc took 16 sec. to write docs to out/target/common/docs/api-stubs

[ 0% 91/18970] Compiling SDK Stubs: out/target/common/o...IBRARIES/android_stubs_current_intermediates/classes.jar

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.

[ 0% 93/18970] Building with Jack: out/target/common/ob...LIBRARIES/framework_intermediates/with-local/classes.dex

FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp

Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by android-jack-team@google.com)).

GC overhead limit exceeded.

Try increasing heap size with java option '-Xmx<size>'.

Warning: This may have produced partial or corrupted output.

[ 0% 93/18970] Compiling SDK Stubs with Jack: out/targe...BRARIES/android_stubs_current_intermediates/classes.jack

ninja: build stopped: subcommand failed.

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

Build failed!

Total time elapsed: 10 minutes (652.687489167 seconds)
[Android] DiamondJohn:
I have done a repo sync and that all goes through ok.

My hammerhead local manifest was created by "lunch" and can be found at: https://www.hastebin.com/nijawasipu.xml

My xt897 is the one I am originally taking from LineageOS, and it works to build LineageOS 14.1 and can be found at: https://www.hastebin.com/vafixocawo.xml

NB: I also copied across the xt897 device from lineage, and changed the device for xt897 to DirtyUnicorns "style". eg changed all files with "lineage" in their name to "du" and all contents references from "lineage" and "cm" to their "du" equiv, and added an aosp_xt897.mk (based off of the hammerhead one). Brunch finds it and starts the build so I must of got something right ;)

The fact that the hammerhead builds and runs while the xt897 does not, makes me think that there is a missing "include"/"inherit" in some make file, somewhere. I think it is the include of frameworks/av/services/audiopolicy/Android.mk , but when I search in the hammerhead tree's, it doesnt find it explicitly, but it may be part of a "build all", but where?

Would a difference in the ninja build file help me? since the hammerhead succeeds and the xt897 fails
[Android] dev.kasibhatla:
Posting again... Can't anybody solve this please?
[Android] spookcity138:
It says in the error...Its an out of memory error. Run "./prebuilts/sdk/tools/jack-admin kill-server" then "./prebuilts/sdk/tools/jack-admin start-server"

If you get this error again you don't have enough memory. Search this thread for a solution. I,along with others have posted it.
[Android] rahul8040:
lol u just copy pasted sir! :p u only gave me this link and i am following this only and really cant understand the part that where exactly to place the launcher as its different from the given example :)
[Android] katinatez:
There are many ways of adding it; the more seasoned devs do it like the first link. Add it to android_packages_apps_ when you do it this way you have to add it in android_build repo like first link.

Since your a novice there is an easier way to do it add it to your device repo here is an example. If you cant follow this example I cant help you any further.

https://github.com/cmke/android_device_oneplus_bacon/commit/8cac598ffec6cc4767cafa47b6907f51b0171c44
[Android] rahul8040:
thank you so much! i got the point that i have to add it to device.mk and in your example the guy has made a seperate line for it

# Include One camera

PRODUCT_PACKAGES += \

CameraNext

like this for adding his camera so i guess i can do it too right? for launcher! just need to confirm it! thanks a lot for your help!
[Android] fritzcola:
I always get this error! How to fix it?

http://pastebin.com/shRd6HxF
[Android] coderdroid:
please help

getting this error during repo sync

solved it will post other errors soon:p