[Huawei Nova/Nova Plus Questions & Answers] Vinnom:
Ok,

following #Henkate's advice, I changed kernel source, as I was using the wrong one. I tried to build again, same error.

Then, knowing it wouldn't be a good fix, I edited the file with error, commenting out those 2 functions which was being caught in the non-used thing. It didn't solved the issue and produced another which is below:

FAILED: /bin/bash -c "(echo \"target thumb C++:\"\" libstagefright_32 <= frameworks/av/media/libstagefright/FLACExtractor.cpp\" ) && (mkdir -p /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/ ) && (PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/huawei/hwcan/include -I ./frameworks/av/include/media/ -I ./frameworks/av/media/libavextensions -I ./frameworks/av/media/libstagefright/mpeg2ts -I ./frameworks/av/include/media/stagefright/timedtext -I ./frameworks/native/include/media/hardware -I ./frameworks/native/include/media/openmax -I ./external/flac/include -I ./external/tremolo -I ./external/libvpx/libwebm -I ./system/netd/include -I system/media/audio_utils/include -I hardware/qcom/media-caf/msm8937/mm-core/inc -I ./external/stagefright-plugins/include -I frameworks/av/media/libstagefright -I /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates -I /home/vinnom/tesla/out/target/product/hwcan/gen/SHARED_LIBRARIES/libstagefright_intermediates -I libnativehelper/include/nativehelper \$(cat /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /home/vinnom/tesla/out/target/product/hwcan/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -mcpu=cortex-a7 -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -mfloat-abi=softfp -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g0 -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -target arm-linux-androideabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -Wno-multichar -Werror -Wno-error=deprecated-declarations -Wall -DENABLE_STAGEFRIGHT_EXPERIMENTS -DQTI_FLAC_DECODER -fPIC -D_USING_LIBCXX -fsanitize=unsigned-integer-overflow,signed-integer-overflow -fsanitize-trap=all -ftrap-function=abort -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.d -o /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.o frameworks/av/media/libstagefright/FLACExtractor.cpp ) && (cp /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.d /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.d >> /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.P; rm -f /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.d )"
target thumb C++: libstagefright_32 <= frameworks/av/media/libstagefright/FLACExtractor.cpp
frameworks/av/media/libstagefright/FLACExtractor.cpp:542:55: error: use of undeclared identifier 'bitsToAudioEncoding'
mTrackMetadata->setInt32(kKeyPcmEncoding, bitsToAudioEncoding(getBitsPerSample()));
^
1 error generated.

It was building until 94% and now it just builds until 48%. I guess was just lazy to try that. The fix is yet to be found.

PS: I still can't tag #Henkate =/ =/ =/ lol