[Android] bootslag:
I need help

Can anyone help me with this error? I'm trying to build unofficial LineageOS for a tablet. There are multiple errors from hardware/qcom/audio-caf such as error: field has incomplete type 'struct pbe_params' , error: invalid application of 'sizeof' to an incomplete type 'struct pbe_params' and error: use of undeclared identifier 'PBE_CONF_MODULE_ID' and etc.

Something like this:

[ 11% 8047/71953] target thumb C: libqcompostprocbundle <= hardware/qcom/audio-caf/post_proc/bass_boost.c
FAILED: /home/rh/CarbonROM/out/target/product/YT3850M/obj/SHARED_LIBRARIES/libqcompostprocbundle_intermediates/bass_boost.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4053586/bin/clang	-I external/tinyalsa/include -I /home/rh/CarbonROM/out/target/product/YT3850M/obj/KERNEL_OBJ/usr/include -I system/media/audio_effects/include -I hardware/qcom/audio-caf/post_proc -I /home/rh/CarbonROM/out/target/product/YT3850M/obj/SHARED_LIBRARIES/libqcompostprocbundle_intermediates -I /home/rh/CarbonROM/out/target/product/YT3850M/gen/SHARED_LIBRARIES/libqcompostprocbundle_intermediates -I libnativehelper/include_deprecated \$(cat /home/rh/CarbonROM/out/target/product/YT3850M/obj/SHARED_LIBRARIES/libqcompostprocbundle_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /home/rh/CarbonROM/out/target/product/YT3850M/obj/include -isystem device/lenovo/YT3850M/kernel-headers -isystem hardware/qcom/msm8x09/kernel-headers -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a7 -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -O2 -fvisibility=hidden -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-error -MD -MF /home/rh/CarbonROM/out/target/product/YT3850M/obj/SHARED_LIBRARIES/libqcompostprocbundle_intermediates/bass_boost.d -o /home/rh/CarbonROM/out/target/product/YT3850M/obj/SHARED_LIBRARIES/libqcompostprocbundle_intermediates/bass_boost.o hardware/qcom/audio-caf/post_proc/bass_boost.c"
In file included from hardware/qcom/audio-caf/post_proc/bass_boost.c:32:
hardware/qcom/audio-caf/post_proc/effect_api.h:41:36: warning: declaration of 'struct pbe_params' will not be visible outside of this function [-Wvisibility]
void offload_pbe_set_device(struct pbe_params *pbe,
^
hardware/qcom/audio-caf/post_proc/effect_api.h:43:41: warning: declaration of 'struct pbe_params' will not be visible outside of this function [-Wvisibility]
void offload_pbe_set_enable_flag(struct pbe_params *pbe,
^
hardware/qcom/audio-caf/post_proc/effect_api.h:45:40: warning: declaration of 'struct pbe_params' will not be visible outside of this function [-Wvisibility]
int offload_pbe_get_enable_flag(struct pbe_params *pbe);
^
hardware/qcom/audio-caf/post_proc/effect_api.h:48:36: warning: declaration of 'struct pbe_params' will not be visible outside of this function [-Wvisibility]
struct pbe_params *pbe,
^
hardware/qcom/audio-caf/post_proc/effect_api.h:51:35: warning: declaration of 'struct pbe_params' will not be visible outside of this function [-Wvisibility]
struct pbe_params *pbe,
^
In file included from hardware/qcom/audio-caf/post_proc/bass_boost.c:33:
hardware/qcom/audio-caf/post_proc/bass_boost.h:54:23: error: field has incomplete type 'struct pbe_params'
struct pbe_params offload_pbe;
^
hardware/qcom/audio-caf/post_proc/bass_boost.h:54:12: note: forward declaration of 'struct pbe_params'
struct pbe_params offload_pbe;
^
hardware/qcom/audio-caf/post_proc/bass_boost.c:509:41: error: invalid application of 'sizeof' to an incomplete type 'struct pbe_params'
memset(&(pbe_ctxt->offload_pbe), 0, sizeof(struct pbe_params));
^ ~~~~~~~~~~~~~~~~~~~
hardware/qcom/audio-caf/post_proc/bass_boost.h:54:12: note: forward declaration of 'struct pbe_params'
struct pbe_params offload_pbe;
^
hardware/qcom/audio-caf/post_proc/bass_boost.c:582:38: warning: missing field 'snd_dev_id' initializer [-Wmissing-field-initializers]
acdb_audio_cal_cfg_t cal_cfg = {0};
^
hardware/qcom/audio-caf/post_proc/bass_boost.c:608:36: error: use of undeclared identifier 'PBE_CONF_MODULE_ID'
cal_cfg.module_id = PBE_CONF_MODULE_ID;
^
hardware/qcom/audio-caf/post_proc/bass_boost.c:609:36: error: use of undeclared identifier 'PBE_CONF_PARAM_ID'
cal_cfg.param_id = PBE_CONF_PARAM_ID;
^
hardware/qcom/audio-caf/post_proc/bass_boost.c:611:24: error: incomplete definition of type 'struct pbe_params'
len = sizeof(params->config);
~~~~~~^
hardware/qcom/audio-caf/post_proc/bass_boost.h:54:12: note: forward declaration of 'struct pbe_params'
struct pbe_params offload_pbe;
^
hardware/qcom/audio-caf/post_proc/bass_boost.c:612:63: error: incomplete definition of type 'struct pbe_params'
ret = acdb_get_audio_cal((void *)&cal_cfg, (void*)&(params->config), &len);
~~~~~~^
hardware/qcom/audio-caf/post_proc/bass_boost.h:54:12: note: forward declaration of 'struct pbe_params'
struct pbe_params offload_pbe;
^
hardware/qcom/audio-caf/post_proc/bass_boost.c:615:15: error: incomplete definition of type 'struct pbe_params'
params->cfg_len = len;
~~~~~~^
hardware/qcom/audio-caf/post_proc/bass_boost.h:54:12: note: forward declaration of 'struct pbe_params'
struct pbe_params offload_pbe;
^
6 warnings and 7 errors generated.
[ 11% 8048/71953] target thumb C: libqcompostprocbundle <= hardware/qcom/audio-caf/post_proc/bundle.c
FAILED: /home/rh/CarbonROM/out/target/product/YT3850M/obj/SHARED_LIBRARIES/libqcompostprocbundle_intermediates/bundle.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4053586/bin/clang	-I external/tinyalsa/include -I /home/rh/CarbonROM/out/target/product/YT3850M/obj/KERNEL_OBJ/usr/include -I system/media/audio_effects/include -I hardware/qcom/audio-caf/post_proc -I /home/rh/CarbonROM/out/target/product/YT3850M/obj/SHARED_LIBRARIES/libqcompostprocbundle_intermediates -I /home/rh/CarbonROM/out/target/product/YT3850M/gen/SHARED_LIBRARIES/libqcompostprocbundle_intermediates -I libnativehelper/include_deprecated \$(cat /home/rh/CarbonROM/out/target/product/YT3850M/obj/SHARED_LIBRARIES/libqcompostprocbundle_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /home/rh/CarbonROM/out/target/product/YT3850M/obj/include -isystem device/lenovo/YT3850M/kernel-headers -isystem hardware/qcom/msm8x09/kernel-headers -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a7 -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -O2 -fvisibility=hidden -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-error -MD -MF /home/rh/CarbonROM/out/target/product/YT3850M/obj/SHARED_LIBRARIES/libqcompostprocbundle_intermediates/bundle.d -o /home/rh/CarbonROM/out/target/product/YT3850M/obj/SHARED_LIBRARIES/libqcompostprocbundle_intermediates/bundle.o hardware/qcom/audio-caf/post_proc/bundle.c"
In file included from hardware/qcom/audio-caf/post_proc/bundle.c:30:
In file included from hardware/qcom/audio-caf/post_proc/bundle.h:25:
hardware/qcom/audio-caf/post_proc/effect_api.h:41:36: warning: declaration of 'struct pbe_params' will not be visible outside of this function [-Wvisibility]
void offload_pbe_set_device(struct pbe_params *pbe,
^
hardware/qcom/audio-caf/post_proc/effect_api.h:43:41: warning: declaration of 'struct pbe_params' will not be visible outside of this function [-Wvisibility]
void offload_pbe_set_enable_flag(struct pbe_params *pbe,
^
hardware/qcom/audio-caf/post_proc/effect_api.h:45:40: warning: declaration of 'struct pbe_params' will not be visible outside of this function [-Wvisibility]
int offload_pbe_get_enable_flag(struct pbe_params *pbe);
^
hardware/qcom/audio-caf/post_proc/effect_api.h:48:36: warning: declaration of 'struct pbe_params' will not be visible outside of this function [-Wvisibility]
struct pbe_params *pbe,
^
hardware/qcom/audio-caf/post_proc/effect_api.h:51:35: warning: declaration of 'struct pbe_params' will not be visible outside of this function [-Wvisibility]
struct pbe_params *pbe,
^
In file included from hardware/qcom/audio-caf/post_proc/bundle.c:32:
hardware/qcom/audio-caf/post_proc/bass_boost.h:54:23: error: field has incomplete type 'struct pbe_params'
struct pbe_params offload_pbe;
^
hardware/qcom/audio-caf/post_proc/bass_boost.h:54:12: note: forward declaration of 'struct pbe_params'
struct pbe_params offload_pbe;
^
hardware/qcom/audio-caf/post_proc/bundle.c:775:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
tag : AUDIO_EFFECT_LIBRARY_TAG,
^~~~~
.tag =
hardware/qcom/audio-caf/post_proc/bundle.c:776:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
version : EFFECT_LIBRARY_API_VERSION,
^~~~~~~~~
.version =
hardware/qcom/audio-caf/post_proc/bundle.c:777:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
name : "Offload Effects Bundle Library",
^~~~~~
.name =
hardware/qcom/audio-caf/post_proc/bundle.c:778:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
implementor : "The Linux Foundation",
^~~~~~~~~~~~~
.implementor =
hardware/qcom/audio-caf/post_proc/bundle.c:779:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
create_effect : effect_lib_create,
^~~~~~~~~~~~~~~
.create_effect =
hardware/qcom/audio-caf/post_proc/bundle.c:780:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
release_effect : effect_lib_release,
^~~~~~~~~~~~~~~~
.release_effect =
hardware/qcom/audio-caf/post_proc/bundle.c:781:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
get_descriptor : effect_lib_get_descriptor,
^~~~~~~~~~~~~~~~
.get_descriptor =
12 warnings and 1 error generated.
ninja: build stopped: subcommand failed.
02:49:05 ninja failed with: exit status 1

#### failed to build some targets (23:55 (mm:ss)) ####