Build error?? - Android Q&A, Help & Troubleshooting

This is the error when building RR oreo for ether (nextbit robin). I build a lot of ROM's for this device although this is the only one where I encounter this error. I don't see what is wrong since every other ROM is able to build with the same Audiopolicymanager.cpp.. Some help would be greatly appreciated
Code:
hardware/qcom/audio-caf/msm8994/policy_hal/AudioPolicyManager.cpp:2140:25: error: use of undeclared identifier 'AUDIO_CHANNEL_IN_5POINT1'; did you mean 'AUDIO_CHANNEL_OUT_5POINT1'?
if (AUDIO_CHANNEL_IN_5POINT1 == channelMask) {
^~~~~~~~~~~~~~~~~~~~~~~~
AUDIO_CHANNEL_OUT_5POINT1
system/media/audio/include/system/audio-base.h:187:5: note: 'AUDIO_CHANNEL_OUT_5POINT1' declared here
AUDIO_CHANNEL_OUT_5POINT1 = 63u, // (((((OUT_FRONT_LEFT | OUT_FRONT_RIGHT) | OUT_FRONT_CENTER) | OUT_LOW_FREQUENCY) | OUT_BACK_LEFT) | OUT_BACK_RIGHT)
^
5 warnings and 1 error generated.
[ 5% 4762/94543] target arm C++: liba...edia/libaudioprocessing/AudioMixer.cpp
ninja: build stopped: subcommand failed.
14:02:05 ninja failed with: exit status 1
#### failed to build some targets (19:36 (mm:ss)) ####
[email protected]:~/RR$

Related

[HELP] Error in 'make otapackage'

after i type make otapackage, after some time i get this error message and build stops. every time same error.
[ 69% 21776/31360] build out/target/product/hikari/gen/EXECUTABLES/iw_intermediates/version.c
FAILED: /bin/bash -c "external/iw/version.sh out/target/product/hikari/gen/EXECUTABLES/iw_intermediates/version.c"
fatal: No names found, cannot describe anything.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (05:33:08 (hh:mm:ss)) ####
Click to expand...
Click to collapse
can anyone help?
Are you trying to make AOSP otapackage
Ashwinrg said:
Are you trying to make AOSP otapackage
Click to expand...
Click to collapse
yeah, AOSP. any solution? i'm still struck

Please Someone Help Finish my LineageOs Build

Can someone please help me to finish my LineageOs build, I did make my own device and vendor tree I'm using prebuilt kernel.
I dont what is this error or how to fix.
system/netd/server/SoftapController.cpp:156:17: error: unused parameter 'ifname' [-Werror,-Wunused-parameter]
const char *ifname) {
^
1 error generated.
build/core/binary.mk:986: recipe for target '/home/neverson/android/system/out/target/product/omega/obj/EXECUTABLES/netd_intermediates/SoftapController.o' failed
make: *** [/home/neverson/android/system/out/target/product/omega/obj/EXECUTABLES/netd_intermediates/SoftapController.o] Error 1
make: Leaving directory '/home/neverson/android/system'
#### make failed to build some targets (01:08:21 (hh:mm:ss)) ####
Dersaun said:
Can someone please help me to finish my LineageOs build, I did make my own device and vendor tree I'm using prebuilt kernel.
I dont what is this error or how to fix.
system/netd/server/SoftapController.cpp:156:17: error: unused parameter 'ifname' [-Werror,-Wunused-parameter]
const char *ifname) {
^
1 error generated.
build/core/binary.mk:986: recipe for target '/home/neverson/android/system/out/target/product/omega/obj/EXECUTABLES/netd_intermediates/SoftapController.o' failed
make: *** [/home/neverson/android/system/out/target/product/omega/obj/EXECUTABLES/netd_intermediates/SoftapController.o] Error 1
make: Leaving directory '/home/neverson/android/system'
#### make failed to build some targets (01:08:21 (hh:mm:ss)) ####
Click to expand...
Click to collapse
Hi,
This error is generally due to not having LIBWPA_CLIENT_EXISTS flag enabled
either you can try
$ export LIBWPA_CLIENT_EXISTS=true
if this not solves your issue then check Android.mk of the project
system/netd/server/Android.mk
Here it is showing that LIBWPA_CLIENT_EXISTS depends on WPA_SUPPLICANT_VERSION
ifdef WPA_SUPPLICANT_VERSION
LOCAL_CFLAGS += -DLIBWPA_CLIENT_EXISTS
LOCAL_SHARED_LIBRARIES += libwpa_client
LOCAL_C_INCLUDES += external/wpa_supplicant_8/src/common
endif
You can find this flag WPA_SUPPLICANT_VERSION somewhere inside vendor/chipset/proprietary/common
Hope this helps.
Thanks
Girish
dja
I have checked all these files, alright, but the problem does not resolve

Build Android P aosp error

I am doing it according to the website.
https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-p-9-0-0
terminal picture
https://imgur.com/a/t08GNrC
[ 97% 86508/88632] //frameworks/base/libs/hwui:libhwui link libhwui.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 97% 86509/88632] //frameworks/base/libs/hwui:libhwui link libhwui.so [arm]
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
ninja: build stopped: subcommand failed.
20:00:42 ninja failed with: exit status 1
failed to build some targets (02:41:31 (hh:mm:ss))
Has anyone been able to figure this one out?
I even added "export LLVM_ENABLE_THREADS=1" to my .bashrc and nothing changed, still the same problem.
zagi988 said:
Has anyone been able to figure this one out?
I even added "export LLVM_ENABLE_THREADS=1" to my .bashrc and nothing changed, still the same problem.
Click to expand...
Click to collapse
Thanks, dude. "export LLVM_ENABLE_THREADS=1" works for me but not in the .bashrc
If it failed with same error, don't do anything and run "export LLVM_ENABLE_THREADS=1" then continue build the rom (type "make")
java.lang.OutOfMemory: Java heap space
I'm getting error while building Android 9
Exception in thread "main" Java.lang.OutOfMemory: Java heap space
ninja: build stopped: subcommand failed.
ninja failed with: exit status 1

Help building Pixel Experience for OnePlus 3

First of all, I know that there is modified OnePlus 3 device tree for Pixel Experience ROM already, but I would like to modify LineageOS device tree to gain experience.
Basically, I am using LOS device & kernel trees, TheMuppets vendor and packages_resources_OneplusGestures & device_oppo_common dependencies from PixelExperience repo.
My issue is that I can't find the reason why it throws this error while trying to build:
Code:
[ 0% 4/9421] Target buildinfo: /home/zlluvhaj/pe-pie/o...plus3/obj/ETC/system_build_prop_intermediates/build.prop
Target buildinfo from: device/oneplus/oneplus3/system.prop
[ 1% 103/9421] AAPT2 compile /home/zlluvhaj/pe-pie/out...ce/oppo/common/DeviceHandler/res/values/strings.xml.save
FAILED: /home/zlluvhaj/pe-pie/out/target/common/obj/APPS/DeviceHandler_intermediates/flat-res/device/oppo/common/D
eviceHandler/res/values_strings.xml.save.flat
/bin/bash -c "/home/zlluvhaj/pe-pie/out/host/linux-x86/bin/aapt2 compile -o /home/zlluvhaj/pe-pie/out/target/comm
on/obj/APPS/DeviceHandler_intermediates/flat-res/device/oppo/common/DeviceHandler/res/ --pseudo-localize --legacy d
evice/oppo/common/DeviceHandler/res/values/strings.xml.save"
error: invalid file path 'device/oppo/common/DeviceHandler/res/values/strings.xml.save'.
[ 1% 106/9421] build /home/zlluvhaj/pe-pie/out/target/...t_pub_versioned.cil_intermediates/plat_pub_versioned.cil
Parsing /home/zlluvhaj/pe-pie/out/target/product/oneplus3/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_poli
cy.cil
Parsing /home/zlluvhaj/pe-pie/out/target/product/oneplus3/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_poli
cy.cil
ninja: build stopped: subcommand failed.
22:44:03 ninja failed with: exit status 1
#### failed to build some targets (01:07 (mm:ss)) ####
I mostly followed ArrowOS compilation-guide, replacing arrow with aosp (unfortunately I can't post exact link).
//Edit: I got it fixed by removing device/oppo/common folder, adding more dependencies, resyncing the project and executing make clobber.

Weird Android Build Error; Undefined 'Compiler' symbol

Recently, I have been trying to build Lineage OS 16.0 for my smartphone (Nokia 8). I have created a device tree, vendor tree and downloaded the kernel sources. However everytime I try to build, at around 63% it gives weird compilation errors. Here is the error message. I am building with WSL 2 environment;
Code:
[ 5% 2042/39631] //art/dex2oat:libart-dex2oat clang++ art/dex2oat/linker/image_writer.operator_out.cc [arm]
In file included from /mnt/d/dev/android/android/lineage/out/soong/.intermediates/art/dex2oat/art_dex2oat_operator_srcs/gen/art/dex2oat/linker/image_writer.operator_out.cc:3:
In file included from art/dex2oat/linker/image_writer.h:40:
art/compiler/driver/compiler_driver.h:99:18: error: use of undeclared identifier 'Compiler'
Compiler::Kind compiler_kind,
^
art/compiler/driver/compiler_driver.h:145:3: error: unknown type name 'Compiler'
Compiler* GetCompiler() const {
^
art/compiler/driver/compiler_driver.h:348:3: error: use of undeclared identifier 'Compiler'
Compiler::Kind GetCompilerKind() {
^
art/compiler/driver/compiler_driver.h:471:19: error: use of undeclared identifier 'Compiler'
std::unique_ptr<Compiler> compiler_;
^
art/compiler/driver/compiler_driver.h:472:3: error: use of undeclared identifier 'Compiler'
Compiler::Kind compiler_kind_;
^
5 errors generated.
...
ninja: build stopped: subcommand failed.
10:22:23 ninja failed with: exit status 1
#### failed to build some targets (01:49:21 (hh:mm:ss)) ####
Looking at it, the compiler complains that the class 'Compiler' is not defined in the 'compiler_driver.h' file. However looking at this file, it includes the 'compiler.h' which contains the Compiler class. Has anyone ever experienced this error, and is there any way to fix it?

Categories

Resources