yashsingh1/xdaforums huggingface dataset:
[Android] Dr_DjEnder:
I'm building PA-CAF for my oneplus2 and the wifi-hal is causing the build to fail something about the redefinition of a function inside header files

https://pastebin.com/WZExu4S8

the files involved nan.cpp , vendor_definitions.h , nancommand.h .

I've read about using some functions to the header file but they didn't work, perhaps i was not using them properly ; #ifdef / #endif and #pragma once .

the wifi hal im using is the cm-14.1-caf

https://github.com/LineageOS/android_hardware_qcom_wlan/tree/cm-14.1-caf

can anyone point me in the right direction?
[Android] utkarshp64:
Got Error for SlimRom 7.1.2 building for Xperia M (nicki)

https://pastebin.com/Fe1A8js3

Please Help!
[Android] neonkat:
remove these overlay from device tree.

device/sony/nicki/overlay/frameworks/base/core/res/res/values/config.xml:129: error: Resource at config_intrusiveBatteryLed appears in overlay but not in the base package; use <add-resource> to add.

device/sony/nicki/overlay/frameworks/base/core/res/res/values/config.xml:149: error: Resource at config_deviceHardwareKeys appears in overlay but not in the base package; use <add-resource> to add.

device/sony/nicki/overlay/frameworks/base/core/res/res/values/config.xml:163: error: Resource at config_deviceHardwareWakeKeys appears in overlay but not in the base package; use <add-resource> to add.
[Android] utkarshp64:
Thank you ...error got solved..
[Android] putinhylo:
asus Z00L

Hello,

in the past I was able to compile several builds, but since around one week I get these errors:

and the build fails.

I am using a Asus Zenfone 2 Laser (Z00L)

Any suggestions ?

Thanks

Christian
[Android] zipperX:
When i compile kernel, i got many error. I'm using google gcc 4.9. I thought it was error because missing header file, but i reclone again and nothing change. Any help? Thanks

sound/soc/msm/msm8996.c:36:26: fatal error: device_event.h: No such file or directory
#include <device_event.h>
^
compilation terminated.

In file included from drivers/net/ethernet/msm/rndis_ipa_trace.h:81:0,
from drivers/net/ethernet/msm/rndis_ipa.c:32:
include/trace/define_trace.h:83:43: fatal error: ./rndis_ipa_trace.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.

drivers/misc/drv2604.c:48:21: fatal error: drv2604.h: No such file or directory
#include <drv2604.h>
^
compilation terminated.
[Android] neonkat:
something getting defined twice.check recent changes of your device/asus/msm8916-common and vendor/asus/msm8916-common trees.
[Android] utkarshp64:
Hi.. All Got error while compiling DU for nicki

https://hastebin.com/fosihehile.cs

unable to past complete log as build compiled till 58% so pasted partial log in hastebin...

Please help!
[Android] DiamondJohn:
Local manifest for a Jenkins Build

I am building for a LineageOS maintained device; an xt897. They use Jenkins to perform their weekly build. I can see a lot of information at their Jenkins web site https://jenkins.lineageos.org/job/android/4827/ including even the log output from the build https://jenkins.lineageos.org/job/android/4827/consoleText. I have obviously found the job for my specific device. However, I can't seem to find their local Manifest they used for the build. I would like to check my local manifest against theirs? Is it possible to see the manifest used for their official build?

Its been a few weeks since I built the ROM, but it does concern me their build shows 35146 steps while my build has 34564 steps (582 steps less, which is less than 2%)
[Android] GreekDragon:
Hello,

https://github.com/LineageOS/androi...jbbl-common/blob/cm-14.1/lineage.dependencies

https://github.com/LineageOS/android_device_motorola_xt897/blob/cm-14.1/lineage.dependencies

dependencies is like local_manifests. So as you can see, doing 'breakfast xt897' will clone, device tree, device common tree, moto common tree, kernel, vendor.

Vendor part is located at https://github.com/TheMuppets .
[Android] DiamondJohn:
That all makes sense and all, but my current local manifest includes the following items:

LineageOS/android_device_motorola_xt897
LineageOS/android_device_motorola_msm8960_jbbl-common
LineageOS/android_device_motorola_qcom-common
LineageOS/android_kernel_motorola_msm8960-common
LineageOS/android_device_qcom_common
TheMuppets/proprietary_vendor_motorola

[COLOR="Blue"]LineageOS/android_external_stlport
LineageOS/android_external_sony_boringssl-compat
LineageOS/android_packages_resources_devicesettings[/COLOR]

All of the above explains the top 6 items, but not the bottom 3. It was a while ago that I first built the device, so I am a little vague on how these 3 items made it into my manifest. I *think* they were auto included when I first built the device.

I just want to confirm I am not missing any other lines and so would like to explicitly compare my local manifest with that used to build the official release. I have checked down the console output for the official build for lines beginning with "Fetching project ", and it does align 1 for 1 with my local manifest (including the bottom 3 items, but excluding the vendor/muppets), so that at least looks promising. But still, my step counts do not match the number of steps they have :confused:
[Android] spookcity138:
Those are just necessary dependencies. I need stlport for my device as well. Fairly common I think. DeviceSettings is for FlipFlap I believe.
[Android] DiamondJohn:
I'm not so interested in what i do have as much as what I might be missing?

I build for both an xt897 and a hammerhead (Nexus 5). For the xt897 if I build Lineage 14,1 its rock solid. If I build crDroid 7.1.2 using the local manifest from Lineage, it builds and boots but is just nothing but force closes. If I use the manifest from Lineage for the hammerhead to build crDroid (an official device of crDroid), its rock solid. So to me, it seams that my xt897 build is probably missing something?

I took a log cat while I used it and extracted the fatal exceptions and pasted them at https://vomitb.in/kQ9PU5SumT

Its a little repetitive as once it crashed (settings), I tried the same thing again. It would appear to all be kicked off by "ClassLoader referenced unknown path: /system/priv-app/Settings/lib/arm"

But at first Settings appeared to work fine.:eek:

I have restored my old ROM, so am rebuilding to see if this folder is actually there. Any ideas at what I should be looking at/for?
[Android] unos21:
Getting this error while building AOSPA:

ninja: error: 'out/target/product/ham/obj/STATIC_LIBRARIES/lib_driver_cmd_qcwcn_intermediates/export_includes', needed by 'out/target/product/ham/obj/EXECUTABLES/hostapd_intermediates/import_includes', missing and no known rule to make it

make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1

Any help?
[Android] becims:
thanks for your kind advance !!!!!!!
[Android] quake73:
to make it as short as possible, the solution:

go to hardware/qcom/wlan (or wlan-caf) and remove the outermost if-endif from android.mk
[Android] unknown:
fatal: unable to access 'https://android.googlesource.com/platform/external/embunit/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: unable to access 'https://android.googlesource.com/platform/external/drm_hwcomposer/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: unable to access 'https://android.googlesource.com/platform/hardware/intel/common/wrs_omxil_core/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: unable to access 'https://github.com/DirtyUnicorns/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9/': Empty reply from server
fatal: unable to access 'https://android.googlesource.com/platform/external/v8/': gnutls_handshake() failed: Error in the push function.
fatal: unable to access 'https://android.googlesource.com/platform/external/guice/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: unable to access 'https://github.com/DirtyUnicorns/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9/': Could not resolve host: github.com
fatal: unable to access 'https://android.googlesource.com/platform/external/v8/': Could not resolve host: android.googlesource.com
error: Cannot fetch android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9
fatal: unable to access 'https://android.googlesource.com/platform/external/vboot_reference/': Could not resolve host: android.googlesource.com
error: Cannot fetch platform/external/v8
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

I face this when sync rom on jenkins

Anyway to fix ?? :confused::confused::confused::confused::confused:
[Android] quake73:
your inet connection crashes....be persistent, try again & again & again
[Android] unknown:
In jenkins :confused:

There is no problem with internet :p
[Android] aoleary:
Hi [MENTION=6304619]MZO[/MENTION]

When I try to do this, I get an error saying that it is already in the DU manifest.

What "project" should I remove, since the audio-caf, display-caf and media-caf repos have not been updated in the DU github since KitKat...
[Android] DiamondJohn:
Just for completeness, The last three are dependencies of "LineageOS/android_device_qcom_common" which is a dependency of "LineageOS/android_device_motorola_msm8960_jbbl-common" which is a dependency of the actual device (LineageOS/android_device_motorola_xt897) ie apart from TheMuppets (for vendor) they can all be traced back to the actual selected device. And I also checked that nothing was missing, and it wasnt, so, still no idea why I get all the FC's when I run it on the device :crying:
[Android] impulsar:
Hi friends I'm getting this while installing tools after installing java on google cloud -

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'
E: Unable to locate package zlib1g-dev
E: Unable to locate package libx11-dev
E: Unable to locate package libreadline6-dev
E: Unable to locate package libgl1-mesa-glx
E: Unable to locate package libreadline6-dev
E: Unable to locate package libreadline6

Please help :(
[Android] rocknegi:
Use this to install 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 ccache libgl1-mesa-dev libxml2-utils xsltproc unzip

Use this to install Java

For Ubuntu 15 or above

sudo apt-get update

sudo apt-get install openjdk-8-jdk
[Android] impulsar:
Hi there, thanks for reply. But I installed java 7(I wanna work on marshmallow) :) And ubuntu 14.04. Any way to get things to work there?
[Android] quake73:
follow this guide:

https://xdaforums.com/chef-central/android/guide-how-to-setup-ubuntu-16-04-lts-t3363669

from the same guy, for ubuntu 14:

https://xdaforums.com/showthread.php?t=2639611
[Android] impulsar:
Hi, thanks :). Still getting this one error after using his command -

E: Unable to locate package zlib1g-dev
[Android] quake73:
have you tried sudo apt install zlib1g-dev ? ;)
[Android] impulsar:
Yep, already tried it and it worked :) Thanks for the help bro :). Can I proceed to further steps now?
[Android] spookcity138:
Out of memory error. The solution has been posted many times in this thread. At least twice by me. Do a search.
[Android] YedanyXD:
Im getting this error while compiling the ROM

Someone know what could be?

Building with Jack: /home/yedanyxd/aicp/out/target/common/obj/APPS/ThemeManagerService_intermediates/with-local/classes.dex

ERROR: /home/yedanyxd/aicp/packages/services/ThemeManagerService/src/org/cyanogenmod/themeservice/ThemeManagerService.java:1261: qs_themes_label cannot be resolved or is not a field

ERROR: /home/yedanyxd/aicp/packages/services/ThemeManagerService/src/org/cyanogenmod/themeservice/ThemeManagerService.java:1262: qs_themes_content_description cannot be resolved or is not a field

ERROR: /home/yedanyxd/aicp/packages/services/ThemeManagerService/src/org/cyanogenmod/themeservice/ThemeManagerService.java:1263: ic_qs_themes cannot be resolved or is not a field

ERROR: /home/yedanyxd/aicp/packages/services/ThemeManagerService/src/org/cyanogenmod/themeservice/ThemeManagerService.java:1268: DYNAMIC_TILE_THEMES cannot be resolved or is not a field

ERROR: /home/yedanyxd/aicp/packages/services/ThemeManagerService/src/org/cyanogenmod/themeservice/ThemeManagerService.java:1274: DYNAMIC_TILE_THEMES cannot be resolved or is not a field

make: *** [build/core/java.mk:644: /home/yedanyxd/aicp/out/target/common/obj/APPS/ThemeManagerService_intermediates/with-local/classes.dex] Error 41

Thanks
[Android] Ripudamankaushik:
I am building PA for my device can plz somebody help me with the folloeing error

Traceback (most recent call last):

File "build/tools/roomservice.py", line 129, in <module>

raise ValueError('No remote declaration could be found for the %s project. (%s)' % (name, remote))

ValueError: No remote declaration could be found for the android_kernel_motorola_msm8952 project. (None)

** Roomservice failure for: 'pa_athene'
[Android] NepoRood:
They just updated, so maybe something broke that they don't know about yet. You could try reverting this commit, and building again.

Your dependency file is off or your local manifest is setup wrong...
[Android] Ripudamankaushik:
I am facing this error while building

File "build/tools/roomservice.py", line 64, in <module>

dependencies = json.loads(open(dependencies_json_path, 'r').read())

File "/usr/lib/python2.7/json/__init__.py", line 339, in loads

return _default_decoder.decode(s)

File "/usr/lib/python2.7/json/decoder.py", line 364, in decode

obj, end = self.raw_decode(s, idx=_w(s, 0).end())

File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode

obj, end = self.scan_once(s, idx)

ValueError: Expecting , delimiter: line 6 column 8 (char 155)

Can somebody plz help me'
[Android] NepoRood:
It would appear you are missing a comma in your dependency file, the last line of your error tells you where to look. Your device on Github? Provide us a link if it is.

---------- Post added at 02:06 AM ---------- Previous post was at 02:04 AM ----------

Links to your trees, please...
[Android] dev.kasibhatla:
There might be mistakes sir. I have compiled tree, vendor files and kernel myself cause this device has no support, and this is my first time.

Links:

Link to device tree

Link to kernel files

Link to vendor files

Looking forward to my first build

Thank you so much
[Android] Ripudamankaushik:
thanks for your help so i am posting a link to my device forum post you can refer that for links ...as i am not allowed to post any outside links yet

https://xdaforums.com/moto-g4-plus/how-to/guide-how-to-build-custom-rom-t3599021

Also I have managed to get past these errors, and i am now stuck on this one

build/core/product_config.mk:239: *** _nic.PRODUCTS.[[vendor/pa/products/athene/pa_athene.mk]]: "vendor/cm/config/common_full.mk" does not exist. Stop.

** Don't have a product spec for: 'pa_athene'

** Do you have the right repo manifest?

I referenced from lineage sources while downloading PA sources .......so plz help me to solve this one too......

P.S.-sorry for being such a newbie
[Android] YedanyXD:
I compile AICP succesfully but i have a bootloop, someone know what could be?

Thanks

Inside the zip is the lpgcat
[Android] desalesouche:
if you are using pa source check in their vendor folders and files. as it seems cm folder doesn't exist in pa source.
[Android] Ripudamankaushik:
Well I used a reference flag to download PA sources with reference to already downloaded Lineage sources and the required folder is located in the lineage sources , I just want to know how to embed it into my PA makefile\\

Well I found the solution with the help of a xda friend .....just had to use pa make file instead of common_full_phone.mk
[Android] neonkat:
clone ril-caf branch from lineageos(android_hardware_ril).

or you can remove "TARGET_RIL_VARIANT := caf" flag from your bc.mk.

---------- Post added at 11:43 AM ---------- Previous post was at 11:35 AM ----------

pa-ify your device correctly.check your pa_athene.mk.

remove vendor/cm/config/common_full.mk,add vendor/pa/main.mk.

you can check my commit for reference https://github.com/neonkat/android_...12629e3#diff-8c65262f520611e8a47de3ea288abd19.
[Android] dev.kasibhatla:
Yes sir i did that yesterday itself, and made a few more improvements to my tree.

I tried building thrice since yesterday, but each time encountered errors midway. I am including those with this post. Please see if you can interpret them and give me a solution.

[SIZE="2"][ 0% 12/31133] build /home/dev-k/candy/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp
target R.java/Manifest.java: framework-res (/home/dev-k/candy/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp)
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
[/SIZE]

Rest of the builds i have collected the warnings and errors, and attached as a .txt file.

Thank you so much.
[Android] Ripudamankaushik:
Well I got past that error already......but now I am stuck at libqc-skia missing and no function defined error........anyways thanks for the help buddy
[Android] spookcity138:
I haven't read through all of your posts, so I'm unsure what you're building, but perhaps you need this.

https://github.com/CyanogenMod/android_external_skia
[Android] Ripudamankaushik:
I am building PA.....for my device athene and the CM skia also doesnot works.....I have tried and manually cloned this folder from AOSPA repo but it didnt work either
[Android] neonkat:
for that,try removing BOARD_USES_QCOM_HARDWARE flag from bc.mk.
[Android] himavanth.reddy925:
Try to merge this patch..

https://github.com/AOSP-CAF/platform_external_skia/commit/9cd042619597a6d0ddf32adf7cb2574a07c033a7
[Android] Ripudamankaushik:
Well i found the solution....thanks for d help anyway
[Android] SlimShady's:
What was the solution?
[Android] Ripudamankaushik:
either remove the board_uses_qualcomm line from the boardconfig.mk or manually clone qualcomm_common folder from the rom repository
[Android] Cakzemprongzzz:
How to compile rom? I can't understand The guide
[Android] MZO:
Read it through again then
[Android] dev.kasibhatla:
Build completed successfully but the rom wouldn't boot. The booting process doesn't start, stuck on splach screen.

Please help.
[Android] solarsoap:
Can you put ui out put?

Like section by section to lock down the area of the error?

Or

Segment it section by section.

Like do one section at a time?

To locate?

The error says your pointing at something that has a issue ,meaning to say a location pointer in that code you posted .

Without us knowing the location. Difficult to narrow down.

---------- Post added at 05:35 AM ---------- Previous post was at 05:31 AM ----------

Stuck on splash screen meaning everything went through ,but no one is home. Aka framework error.. Could be an app or incompatible hardware. Mostly the error being software.

You could always revert to recovery.

Flashback or replace with stock boot.IMG and revert back.
[Android] sscsps:
Can anyone help me with this?

I'm trying to make device tree for an old ass device which don't have any Rom available (ANY).

I've been hunting down bugs for 2 months now, and currently, I'm stuck.

The ROM doesn't go past the bootlogo, there is no error in the last_kmsg that would prevent it from bootimg(AFAIK).

Here is the last_kmsg:

https://hastebin.com/esizofelul.vbs

Here is my device tree, kernel and other stuff(check manifest):

https://www.github.com/Samsunggalaxytab3

I think I'm missing some configs because of which the rom boot sequence is not starting(but I'm not sure as I'm quite new to building ROMs)

May be if someone can help me here, I'll be able to continue the work on that device, and it'll be great!?

BTW, I'm building Lineage OS.
[Android] brMIKA:
Nougat Patches

Great guide but, what patches should I apply to upstream the whole device tree from Marshmallow to Nougat?
[Android] DiamondJohn:
I build RR for two devices.

1. Nexus 5 - Official device - uses device tree from LOS

2. xt897 - Unofficial device - I use device tree from official LOS device tree

The nexus 5 works rock-solid. The xt897 works until I install gapps, then everything goes to pieces:confused:

I am trying to look at differences between the two results, one thing I noticed (but is probably irrelevant) is that the Nexus build installs Eleven to /system/priv-app/Eleven/Eleven.apk while the xt897 installs it to /system/app/Eleven/Eleven.apk :confused:

I have done some searching through the source and I cont find where this decision is made. Any pointers of where I should be looking for this different "choice"/path?

I am guessing it has something to do with the fact the Nexus has 2GB ram while the xt897 only has 1GB.
[Android] MZO:
Path is selected with module file in packages/apps/Eleven/*.mk
[Android] DiamondJohn:
When preparing a response, I went to attach the make file, and thought I would just include a link to github, when I noticed the last change made was "promote to a privileged app", which would explain why its in priv-app. However, I am pretty sure I did a repo sync before both builds. obviously not... :o and the last build is the one where its in priv-app.
[Android] dev.kasibhatla:
By splash screen i mean the booting process didn't even start. It is the logo (fastboot and bootloader mode) that appears before rom booting began.

Is this what you inferred from my previous post?

Thank you
[Android] sscsps:
Get"cat /proc/last_kmsg" from your device after you are stuck on that boot logo and you reboot to recovery.

Check that log.