[Huawei Nova/Nova Plus Questions & Answers] Vinnom:
Hi guys!

I'm trying to unofficially compile tesla ROM for our device. I already solved some compile issues, but now I found an issue that I can't find any where when googleing for it.

Here is my whole build output so far! It stopped at 94% of the build process. The error is at the end.

Long story short, this is what I'm getting:

[ 94% 51226/54069] build /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.o
FAILED: /bin/bash -c "(echo \"target C++:\"\" Utils_test <= frameworks/av/media/libstagefright/tests/Utils_test.cpp\" ) && (mkdir -p /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_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 -I frameworks/av/media/libstagefright -I frameworks/av/media/libstagefright/include -I ./frameworks/native/include/media/openmax -I external/gtest/include -I frameworks/av/media/libstagefright/tests -I /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates -I /home/vinnom/tesla/out/target/product/hwcan/gen/EXECUTABLES/Utils_test_intermediates -I libnativehelper/include/nativehelper \$(cat /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_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/base/include -isystem hardware/ril-caf/include -isystem /home/vinnom/tesla/out/target/product/hwcan/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libm/include -isystem bionic/libm/include/arm64 -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -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 -O2 -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 aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -fno-rtti -Werror -Wall -DGTEST_OS_LINUX_ANDROID -DGTEST_HAS_STD_STRING -fpie -D_USING_LIBCXX -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/EXECUTABLES/Utils_test_intermediates/Utils_test.d -o /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.o frameworks/av/media/libstagefright/tests/Utils_test.cpp ) && (cp /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d >> /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.P; rm -f /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d )"
target C++: Utils_test <= frameworks/av/media/libstagefright/tests/Utils_test.cpp
In file included from frameworks/av/media/libstagefright/tests/Utils_test.cpp:29:
In file included from frameworks/av/include/media/stagefright/Utils.h:27:
frameworks/av/include/media/stagefright/MediaDefs.h:120:22: error: unused function 'bitsToAudioEncoding' [-Werror,-Wunused-function]
static AudioEncoding bitsToAudioEncoding(int32_t bits) {
^
frameworks/av/include/media/stagefright/MediaDefs.h:134:16: error: unused function 'audioEncodingToBits' [-Werror,-Wunused-function]
static int32_t audioEncodingToBits(AudioEncoding encoding) {
^
2 errors generated.

UPDATE 2018-06-10

I just had to switch from static to inline.

Then, as I described in this post, I had to change a xml file. Those java errors in the post I mentioned doesn't occur anymore, but I have another one.

The java.lang can't be found in classpath or bootclasspath. I'm trying to export some paths of android.jar to CLASSPATH, until now didn't seem to work. For now, I'm lost.