yashsingh1/xdaforums huggingface dataset:
[Android] NepoRood:
No, don't add, once defined, there is no reason to define it again
[Android] Jolt151:
Does anyone know anything about this error?

In file included from hardware/qcom/audio-caf/msm8996/mm-audio/aenc-evrc/qdsp6/src/omx_evrc_aenc.cpp:41:
hardware/qcom/audio-caf/msm8996/mm-audio/aenc-evrc/qdsp6/inc/omx_evrc_aenc.h:52:10: fatal error: 'QOMX_AudioExtensions.h' file not found
#include "QOMX_AudioExtensions.h"

I found the file QOMX_AudioExtensions.h deep in the hardware/qcom/media folder. Copying the header files from that directory to the directory above gave me a host of other errors. Anyone have any ideas?
[Android] unknown:
Can you help me to fix this problem sir ? I built AEX O and failed and 99% .

Logs here : https://del.dog/rebayipumo.coffeescript
[Android] NepoRood:
That's a new one on me, provide links to your device trees that you are using to build (if not on GitHub, or similar service, push current)
[Android] unknown:
Here sir :

https://github.com/Galaxy-MSM8916/android_device_samsung_gprimelte-common

https://github.com/Galaxy-MSM8916/android_device_samsung_msm8916-common

https://github.com/Galaxy-MSM8916/android_device_samsung_fortunave3g

3 trees ( these trees didnt edit yet ... But i just change lineage name to aex and delete doze )

Manifest here : https://github.com/namdeptrai2003/manifest-6
[Android] bootslag:
edit: solved.
[Android] bootslag:
I'm stumped

While building RR for a Lenovo Yoga Tab 3 tablet the build failed due to this error:

[ 6% 5257/77215] Lex: applypatch <= bootable/recovery/edify/lexer.ll
FAILED: /home/rh/RR/out/target/product/YT3850M/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/rh/RR/out/target/product/YT3850M/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)

I'm new to ROM development so I don't know what caused this error. Full build log is at https://hastebin.com/ikovedurer.sql

Please guide me into fixing this
[Android] NepoRood:
The manifest is for dot, I though you were building AEX? I really didn't see anything "off" in the device trees, try re-syncing and doing a clean build
[Android] unknown:
sorry . but dot os also faced same problem . can you help me ? :confused::confused:
[Android] bootslag:
Help needed

*Issue:*

Fatal error telling me "file not found" even though the file exists. Such as hardware/qcom/audio-caf/msm8916/mm-audio/aenc-evrc/qdsp6/inc/omx_evrc_aenc.h:60:10: fatal error: 'linux/msm_audio.h' file not found

I believe msm_audio.h is a kernel header file. I did place it in the designated directory (In this case, include/linux/msm_audio.h) but it still returns an error. I tried my own steps but it didnt work out.

*Source:*

Device tree: https://github.com/octocatx/android_device_lenovo_YT3850M

Kernel tree: https://github.com/octocatx/android_kernel_lenovo_msm8909

Vendor tree: https://github.com/octocatx/android_vendor_lenovo_YT3850M

*Build log:*

https://hastebin.com/jocolomelu.cs

Anyone got any ideas how I can fix this?
[Android] poppy22:
Who can help me to solve this problem?
[Android] Infect_Ed:
sudo apt-get install linux-headers
[Android] poppy22:
But should I install that version?
[Android] dev.kasibhatla:
You are probably on ubuntu 18.04 or a very new distro. You need to setlocale.

Type in terminal:

export LC_ALL=C

You need to do this on every boot.
[Android] DiamondJohn:
Or could he add it to his bashrc?

gedit ~/.bashrc;
[Android] bootslag:
Thank you. That helped. I included that on my bashrc file too, and the build started progressing. But I got a completely new and different error:

[ 24% 18601/76797] Target dt image: /home/rh/RR/out/target/product/YT3850M/dt.img
FAILED: /home/rh/RR/out/target/product/YT3850M/dt.img
/bin/bash -c "(for dir in /home/rh/RR/out/target/product/YT3850M/obj/KERNEL_OBJ/arch/arm/boot/; do if [ -d \"\$dir\" ]; then dtb_dir=\"\$dir\"; break; fi; done; /home/rh/RR/out/host/linux-x86/bin/dtbToolLineage -o /home/rh/RR/out/target/product/YT3850M/dt.img -s 2048 -p /home/rh/RR/out/target/product/YT3850M/obj/KERNEL_OBJ/scripts/dtc/ \"\$dtb_dir\" ) && (chmod a+r /home/rh/RR/out/target/product/YT3850M/dt.img ) && (echo \"Made DT image: /home/rh/RR/out/target/product/YT3850M/dt.img\" )"
DTB combiner:
Input directory: '/home/rh/RR/out/target/product/YT3850M/obj/KERNEL_OBJ/arch/arm/boot/'
Output file: '/home/rh/RR/out/target/product/YT3850M/dt.img'
Searching subdir: /home/rh/RR/out/target/product/YT3850M/obj/KERNEL_OBJ/arch/arm/boot/compressed/ ...
=> Found 0 unique DTB(s)
chmod: cannot access '/home/rh/RR/out/target/product/YT3850M/dt.img': No such file or directory
[ 24% 18605/76797] target StaticLib: libv8 (/home/rh/RR/out/target/product/YT3850M/obj/STATIC_LIBRARIES/libv8_intermediates/libv8.a)
ninja: build stopped: subcommand failed.
23:27:03 ninja failed with: exit status 1

#### failed to build some targets (26:21 (mm:ss)) ####
[Android] dev.kasibhatla:
Not 100% sure but try the following.

In your kernel/arch/arm/boot/dts check if there are dtb files. Resync if reqd

In terminal,

make dtbs

See if it runs without error and check if there's an output line something like:

DTC arch/arm/boot/dts/test.dtb

Btw, i hope you "make clean" after changes to your tree, specially makefiles. Helps.
[Android] bootslag:
That helped
[Android] Black_J:
How to enable device hardware remapping for DotOS 2.x ?

Device tree - https://github.com/harry8242/device_lenovo_A6020
[Android] Jolt151:
I got my rom to build but it gets stuck on the boot screen. How can I find the problem?
[Android] DiamondJohn:
last_kmsg would be one possible source of info.
[Android] NepoRood:
"console-ramoops" can help with this as well, in TWRP, using the File Manager, follow the path

sys/fs/pstore/console-ramoops

Copy the file to your sdcard, internal storage or USB
[Android] Jolt151:
Where is this?

I'll check it out.
[Android] Jolt151:
I coudn't find last_kmsg or console-ramoops (there was nothing in /sys/fs/pstore), but I did find /proc/kmsg. Though I have a sneaking suspicion that this is the kmsg of the recovery, because I had to force stop the copy to get it to stop copying (implying it was still being written to), and the message starts with "Linux version 3.18.31-twrp-h830-1.2".

https://pastebin.com/Ltipdeia
[Android] bootslag:
Im stumped

Can someone help me with this

While building RR it went up to 93% but then I earned a stinkeye from CID. Literally.

The error said:

[ 92% 71258/76628] Docs droiddoc: /home/rh/RR/out/target/common/docs/lineage-api-stubs
lineage-sdk/sdk/src/java/lineageos/util/ColorUtils.java:241: warning 110: Method lineageos.util.ColorUtils.getDominantSwatch returns unavailable type Palette.Swatch
lineage-sdk/sdk/src/java/lineageos/util/ColorUtils.java:241: warning 110: Parameter of unavailable type lineageos.util.palette.Palette in lineageos.util.ColorUtils.getDominantSwatch()
lineage-sdk/sdk/src/java/lineageos/util/palette/Palette.java:102: warning 110: Parameter of hidden type lineageos.util.palette.Palette.Swatch in lineageos.util.palette.Palette.from()
lineage-sdk/sdk/src/java/lineageos/util/palette/Palette.java:467: warning 110: Parameter of hidden type lineageos.util.palette.Palette.Swatch in lineageos.util.palette.Palette.Builder.Palette.Builder()
DroidDoc took 16 sec. to write docs to /home/rh/RR/out/target/common/docs/lineage-api-stubs
[ 92% 71263/76628] Checking API: checkpublicapi-lineage-last
FAILED: /home/rh/RR/out/target/common/obj/PACKAGING/checkpublicapi-lineage-last-timestamp
/bin/bash -c "(( /home/rh/RR/out/host/linux-x86/bin/apicheck -JXmx1024m -J\"classpath /home/rh/RR/out/host/linux-x86/framework/doclava.jar:/home/rh/RR/out/host/linux-x86/framework/jsilver.jar:/usr/lib/jvm/java-8-openjdk-amd64/bin/../lib/tools.jar:)\" -hide 2 -hide 3 -hide 4 -hide 5 -hide 6 -hide 24 -hide 25 -hide 26 -hide 27 -error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 -error 16 -error 17 -error 18 prebuilts/lineage-sdk/api/9.txt /home/rh/RR/out/target/common/obj/PACKAGING/lineage_public_api.txt lineage-sdk/api/lineage_removed.txt /home/rh/RR/out/target/common/obj/PACKAGING/lineage_removed.txt || ( cat vendor/rr/build/core/apicheck_msg_current.txt ; exit 38 ) ) ) && (mkdir -p /home/rh/RR/out/target/common/obj/PACKAGING/ ) && (touch /home/rh/RR/out/target/common/obj/PACKAGING/checkpublicapi-lineage-last-timestamp )"
prebuilts/lineage-sdk/api/9.txt:407: error 8: Removed public class lineageos.platform.R.dimen

******************************
You have tried to change the API from what has been previously approved.

STOP.
Read this:
https://github.com/LineageOS/android_lineage-sdk/wiki/Creating-an-API-for-the-SDK#updating--verifying-the-api

To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.

2) You can update current.txt (locally) by executing the following command:
make update-lineage-api

^^^^^^^^^^^^^^^^^^
CONGRATS YOU EARNED A STINKEYE FROM CID!

Full build log: http://tiny.cc/hswqty

I tried make update-lineage-api and it updated successfully bu I'm still getting this error. What is it exactly caused by?
[Android] nithin chandra:
Can anybody help out with this

https://hastebin.com/raw/piwocoweso
[Android] quake73:
long story - short, you need this in your existing libhardware folder, either as a commit or add it manually: https://github.com/omnirom/android_...mmit/f25a84a16d3bb5a1130e1217a07e0e3d445a167b
[Android] bootslag:
Sorry for my bad english.

I try building LineageOS by using prebuilt kernel but I get an error from /vendor/build/tasks/kernel.mk

Please help me override this and build using prebuilt kernel.
[Android] IKGapirov:
Try something like this
[Android] NepoRood:
That's just a warning, so don't worry about it. You need something like this in BoardConfig.mk

TARGET_PREBUILT_KERNEL := device/vendor/codename/prebuilt-kernel

# An example from one of my devices that has no kernel source:

TARGET_PREBUILT_KERNEL := device/TabletExpress/X10/kernel
[Android] NepoRood:
Comment or remove the offending line
[Android] heisenberg33:
hi can anybody help out with this, ihave this error with the most aosp roms :

build/core/binary.mk:1536: error: device/oneplus/msm8998-common/recovery/Android.mk: librecovery_updater_oneplus: C_INCLUDES must be under the source or output directories: /updater/include.

16:02:19 ckati failed with: exit status 1

#### failed to build some targets (46 seconds) ####
[Android] bootslag:
Hi could someone tell me what this error is related to? I don't know whats causing it. Error - cannot assign to readonly variable: SOONG_CLANG_CONFIG_arm_TARGET_TRIPLE

My device tree is at https://github.com/octocatx/android_device_lenovo_YT3850M

============================================
[44/44] bootstrap /home/rh/lineage/out/soong/.minibootstrap/build.ninja.in
[4/4] /home/rh/lineage/out/soong/.boot...neage/out/soong/.bootstrap/build.ninja
[871/872] glob vendor/qcom/opensource/...erfaces/wifi/supplicant/1.0/Android.bp
[56/56] /home/rh/lineage/out/soong/.bo.../home/rh/lineage/out/soong/build.ninja
/home/rh/lineage/out/build-lineage_YT3850M.ninja is missing, regenerating...
/home/rh/lineage/out/soong/make_vars-lineage_YT3850M.mk:511: error: cannot assign to readonly variable: SOONG_CLANG_CONFIG_arm_TARGET_TRIPLE
14:09:27 ckati failed with: exit status 1

#### failed to build some targets (55 seconds) ####

rh@inspiron:~/lineage$
[Android] Jamie_oppo:
1. Add these 3 lines to the end of build/core/config.mk

include $(BUILD_SYSTEM)/qcom_utils.mk

include $(BUILD_SYSTEM)/qcom_target.mk

$(call project-set-path-variant,recovery,RECOVERY_VARIANT,bootable/recovery)

2. Copy the files qcom_utils and qcom_target to your build/core folder.....get them from here: https://github.com/LineageOS/android...5.1/build/core

3. Remove the line 'include vendor/lineage/build/core/qcom_utils.mk' from qcom_target (it's near the top)

4. Copy the contents of pathmap from the same address, add it to the end of your existing pathmap file in build/core.

[MENTION=5366380]quake73[/MENTION] helped me with this ages ago. Btw quake still never compiled nitrogen for the 5t. Ur a beast and did it instantly. I wanted to make a new build but never could even get close
[Android] heisenberg33:
[MENTION=7746234]Jamie_oppo[/MENTION]

thank you first for your support :)

I was once so far, I did everything and then the error comes here:

error: hardware/qcom/camera/msm8998/QCamera2/Android.mk: camera.msm8998: C_INCLUDES must be under the source or output directories: /libstagefrighthw /mm-core/inc /libqservice.
[Android] Jamie_oppo:
there's so many of these errors (or very similar) I never ever could fix them. I just deleted the lines but it errored later.
[Android] quake73:
add these in boardcomfig:

SRC_DISPLAY_HAL_DIR := hardware/qcom/display-caf/msm8998

SRC_MEDIA_HAL_DIR := hardware/qcom/media-caf/msm8998

if you take a look at the android.mk file, you'll see those folders (/libstagefrighthw /mm-core/inc /libqservice) are prefixed with $(SRC_......) and those 3 folders are found in hw/qcom/media-caf & display-caf. :)
[Android] heisenberg33:
that worked thank you:D

and directly next :confused:

build/core/base_rules.mk:238: error: hardware/qcom/data/ipacfg-mgr/msm8998/hal: MODULE.TARGET.SHARED_LIBRARIES.liboffloadhal already defined by device/oneplus/msm8998-common/data-ipa-cfg-mgr/hal.
[Android] quake73:
rm -rf hardware/qcom/data/ipacfg-mgr

and also add a remove-project line in your local_manifest for the ipacfg project so that you dont have to 'rm -rf' every time after a resync.
[Android] Jamie_oppo:
already answered deleted
[Android] #AbitathaRoy:
please help

vendor/lineage/build/tasks/kernel.mk:103: error: BOARD_KERNEL_IMAGE_NAME not defined..

12:05:34 ckati failed with: exit status 1
[Android] unknown:
U need to add it to boardconfig.mk ...
[Android] ducphan397:
Please help me with this error

i try to build Cosmic os but have this error

[1059/1059] including ./vendor/samsung/serranovexx-common/Android.mk ...
device/samsung/qcom-common/doze/Android.mk: error: SamsungDoze (APPS android-arm) missing org.lineageos.platform.internal (JAVA_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.
hardware/samsung/AdvancedDisplay/Android.mk: error: AdvancedDisplay (APPS android-arm) missing org.lineageos.platform.internal (JAVA_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/core/main.mk:732: error: exiting from previous errors.
12:37:16 ckati failed with: exit status 1

#### failed to build some targets (01:29 (mm:ss)) ####

Source

https://github.com/ducphan397/android_device_samsung_gprimelte-common

https://github.com/ducphan397/android_device_samsung_fortunave3g

https://github.com/ducphan397/android_device_samsung_msm8916-common
[Android] Qiangong2:
Is there anyway to cross compile android on PowerPC?
[Android] heisenberg33:
[MENTION=5366380]quake73[/MENTION] & Jamie_oppo that worked fine, best thanks :good:

maybe you also know a solution for that :p

[ 66% 2/3] glob device/*/*/Android.bp

ninja: error: '/home/sam/bl/out/target/product/cheeseburger/obj_arm/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by '/home/sam/bl/out/target/product/cheeseburger/obj_arm/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes', missing and no known rule to make it

02:14:17 ninja failed with: exit status 1

#### failed to build some targets (01:10 (mm:ss)) ####
[Android] quake73:
in boardconfig.mk -> make this change: USE_CUSTOM_AUDIO_POLICY:=0

You could've actually fixed this faster if you just asked google for libaudiopolicymanager :)

But it is fine here, too...i also answer whenever i cn because I wish this thread to become a one-stop-shop for future builders, as a bug encyclopedia
[Android] DiamondJohn:
If you can run VirtualBox or VMWare on it, with a Linux 64 bit client (ie virtual PC), then yes. I am compiling on a Win7 64bit PC.
[Android] heisenberg33:
I always try to solve the error myself but I do not have that much experience yet :D

I had already tried that but then had the error triggers I thought.

error: '/home/sam/bl/out/target/product/cheeseburger/obj_arm/SHARED_LIBRARIES/audio.primary.msm8998_intermediates/export_includes', needed by '/home/sam/bl/out/target/product/cheeseburger/obj_arm/SHARED_LIBRARIES/audio_amplifier.
[Android] quake73:
looks suspiciously like audio_amplifier.h error (you should've posted more lines, from the line beginning with FAILED)

IF it is audio_amplifier.h error (smtg about AMPLIFIER_DEVICE_API_VERSION_2_1 i think - which sounds familiar to me) - copy the file from, for examle, https://github.com/LineageOS/androi...neage-15.1/include/hardware/audio_amplifier.h
[Android] eccko:
Hello, I building Ressurection Remix for ks01ltexx but when I type: brunch ks01ltexx I have this error:

https://pastebin.com/SagATuNx

or this when I change jack to 4GB

https://pastebin.com/zzfNGhrY

Thank you very much in advance
[Android] DiamondJohn:
You have fixed the jack issue, so no need to cover that.

Your other issue is based on a "duplication" of AID_QCOM_DIAG

As you know I compiled RR for the same device, and to get around that issue, I simply commented out the line defining "AID_QCOM_DIAG" in the file /system/core/libcutils/include/private/android_filesystem_config.h
[Android] heisenberg33:
I had tried that but it did not work, the file was already there.

here the error is a bit more accurate.

https://hastebin.com/rolinemuge.pas
[Android] quake73:
Like I said before, I have never had this error but I found out, audio_amplifier.msm8998 is needed by https://github.com/LineageOS/android_device_oneplus_msm8998-common (I guess you use that).

I use this one https://github.com/GZOSP-Devices/device_oneplus_msm8998-common. Try getting that instead of the LOS variant.
[Android] eccko:
I do not understand, what I should to do? :confused:

I tried to add the remaining lines from / device / msm8974 from the file but it did not help. :(
[Android] quake73:
what he meant was: open the file /system/core/libcutils/include/private/android_filesystem_config.h, search for AID_QCOM_DIAG (something like #define AID_QCOM_DIAG) and add "//" in front of that line (or just delete the whole line)
[Android] lightwars:
Hello,

I have build lineage os 14.1 for my device coming from lollipop. After an app update of signal messenger, the app crashes. I got a long log from the beginning of the system to the crash of the freshly installed rom. The error says:

--------- beginning of crash
[ 05-24 18:24:13.285 3010: 3010 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: org.thoughtcrime.securesms, PID: 3010
java.lang.AssertionError: java.security.UnrecoverableKeyException: Key algorithm unknown

Find the full log here.

My device is a ZTE Blade S6 AS version, which was shipped with lollipop 5.0.2.

Find my device, vendor tree and kernel here.

Running the signal messenger under lollipop is fine with the latest version, but with nougat it isn't. I assume it could be related to keymaster, keystore or qseecom. Could someone please give me an advice, what to test or do to get the app running?
[Android] eccko:
Thanks for helping, building stoped in 90% ... :rolleyes:

Here is full code of error

https://pastebin.com/tmjgMw8F

Can help someone? :confused::confused:
[Android] DiamondJohn:
I just did a repo-synch, modified device for RR and rebuild, and it compiled without an issue. Attach your room_service file and also post up the output of a "repo status".

edit: you have 77757 steps, I get 77326. Maybe I am missing something, or you have something extra.
[Android] eccko:
Now stopped 91% ...

Here error - https://pastebin.com/pGhB6Xtu
[Android] DiamondJohn:
OK, so your roomservice file looks the same as mine for that device (I have 2 devices I build for).

Now, to build RR, you would of needed to change those device sources. Since you are obviously not using your own git device trees, just before you kick of the build, run:

repo status;

and post that here.
[Android] eccko:
Okay :)

eccko@eccko:~/rr-oreo$ repo status

project build/make/ (*** NO BRANCH ***)

-m core/clear_vars.mk

-m core/combo/javac.mk

-m core/config.mk

project device/samsung/ks01ltexx/ (*** NO BRANCH ***)

-- AndroidProducts.mk

-m lineage.mk

-- rr.dependencies

-- rr.mk

-- rr_ks01ltexx.mk

-- vendorsetup.sh

project device/samsung/msm8974-common/ (*** NO BRANCH ***)

-m config.fs

-- rr.dependencies

project external/proguard/ (*** NO BRANCH ***)

-m Android.mk

project system/core/ (*** NO BRANCH ***)

-m libcutils/include/private/android_filesystem_config.h

eccko@eccko:~/rr-oreo$
[Android] DiamondJohn:
There is more than one way to achieve a goal, so, this wasn't the way I got it.

Apart from the duplication (ie android_filesystem_config.h), I did not need to modify any files outside of the device specific branch. HOwever, even that could of been resolved by modifying only files in the device specific tree. ie Not RR code.

Yeah, this is the branch I modified, but mine is very different

Its getting late here, so I'll document what I did tomorrow (if I get a chance) I did a similar thing for another device

and multiple ROMs (AOKP,AICP, RR) as well, and multiple android versions. Just to be clear for others, we are talking Oreo here.

my total diffs to get it to compile are:

project device/samsung/ks01ltexx/ (*** NO BRANCH ***)
-m	BoardConfig.mk
-d	lineage.dependencies
-d	lineage.mk
-m	rootdir/Android.mk
--	rr.dependencies
--	rr.mk
project system/core/ (*** NO BRANCH ***)
-m	libcutils/include/private/android_filesystem_config.h

That is all, much less than yours. And BoardConfig.mk is only there to set it to SELinux enforcing.

And proguard is giving you the build failure, that should hint that what you modified here, may not be correct.

As I said, when I get a chance, I will detail what I actually modified. These steps *may* be useful to others that wish to build RR (or AOKP, AICP and other LOS based ROMs) using a LOS based device tree.
[Android] eccko:
Yes sure, you get a chance :)