[Android Q&A, Help & Troubleshooting] oneboiwithRosy:
Hello everyone! I might post this to a wrong category cause my account's privilege is too small and cannot post in a dev forums:

Current ROM on device: Mokee 100.0(Android 10_r32, LOS Based)

Trying to build: Resurrection Remix 10(LOS Based)

Device: Meizu X8(sdm710,emmc,m1852_CN)

Trees used to build: Mokee Tree/The Xperience Project CAF tree

Kernel sources: None, using prebuilt image

Error:

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=10

TARGET_PRODUCT=rr_m1852

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=kryo385

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv8-2a

TARGET_2ND_CPU_VARIANT=kryo385

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-5.0.0-32-generic-x86_64-Linux-Mint-19.3

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=QP1A.191105.004

OUT_DIR=out

PRODUCT_SOONG_NAMESPACES=vendor/meizu/m1852 vendor/meizu/sdm710-common device/meizu/sdm710-common device/meizu/m1852 hardware/qcom-caf/sdm845

============================================

[ 0% 10/85069] //external/flatbuffers:flatc link flatc [linux_glibc]

FAILED: out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/flatc

prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang++ [MENTION=1056765]out[/MENTION]/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/flatc.rsp out/soong/.intermediates/external/libcxx/libc++/linux_glibc_x86_64_shared/libc++.so -o out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/flatc -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin -fuse-ld=lld -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--no-undefined-version --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot -m64 -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -ldl -lpthread -lm -lrt -Wl,-rpath,\$ORIGIN/../lib64 -Wl,-rpath,\$ORIGIN/lib64 -pie -nodefaultlibs -lgcc_s -lgcc -lc -lgcc_s -lgcc

ld.lld: error: undefined symbol: grpc_cpp_generator::GetHeaderPrologue(grpc_generator::File*, grpc_cpp_generator::Parameters const&)

>>> referenced by idl_gen_grpc.cpp:315 (external/flatbuffers/src/idl_gen_grpc.cpp:315)

>>> out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/obj/external/flatbuffers/src/idl_gen_grpc.o:(flatbuffers::GenerateCppGRPC(flatbuffers::Parser const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))

ld.lld: error: undefined symbol: grpc_cpp_generator::GetHeaderIncludes(grpc_generator::File*, grpc_cpp_generator::Parameters const&)

>>> referenced by idl_gen_grpc.cpp:316 (external/flatbuffers/src/idl_gen_grpc.cpp:316)

>>> out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/obj/external/flatbuffers/src/idl_gen_grpc.o:(flatbuffers::GenerateCppGRPC(flatbuffers::Parser const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))

ld.lld: error: undefined symbol: grpc_cpp_generator::GetHeaderServices(grpc_generator::File*, grpc_cpp_generator::Parameters const&)

>>> referenced by idl_gen_grpc.cpp:317 (external/flatbuffers/src/idl_gen_grpc.cpp:317)

>>> out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/obj/external/flatbuffers/src/idl_gen_grpc.o:(flatbuffers::GenerateCppGRPC(flatbuffers::Parser const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))

ld.lld: error: undefined symbol: grpc_cpp_generator::GetHeaderEpilogue(grpc_generator::File*, grpc_cpp_generator::Parameters const&)

>>> referenced by idl_gen_grpc.cpp:318 (external/flatbuffers/src/idl_gen_grpc.cpp:318)

>>> out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/obj/external/flatbuffers/src/idl_gen_grpc.o:(flatbuffers::GenerateCppGRPC(flatbuffers::Parser const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))

ld.lld: error: undefined symbol: grpc_cpp_generator::GetSourcePrologue(grpc_generator::File*, grpc_cpp_generator::Parameters const&)

>>> referenced by idl_gen_grpc.cpp:321 (external/flatbuffers/src/idl_gen_grpc.cpp:321)

>>> out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/obj/external/flatbuffers/src/idl_gen_grpc.o:(flatbuffers::GenerateCppGRPC(flatbuffers::Parser const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))

ld.lld: error: undefined symbol: grpc_cpp_generator::GetSourceIncludes(grpc_generator::File*, grpc_cpp_generator::Parameters const&)

>>> referenced by idl_gen_grpc.cpp:322 (external/flatbuffers/src/idl_gen_grpc.cpp:322)

>>> out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/obj/external/flatbuffers/src/idl_gen_grpc.o:(flatbuffers::GenerateCppGRPC(flatbuffers::Parser const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))

ld.lld: error: undefined symbol: grpc_cpp_generator::GetSourceServices(grpc_generator::File*, grpc_cpp_generator::Parameters const&)

>>> referenced by idl_gen_grpc.cpp:323 (external/flatbuffers/src/idl_gen_grpc.cpp:323)

>>> out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/obj/external/flatbuffers/src/idl_gen_grpc.o:(flatbuffers::GenerateCppGRPC(flatbuffers::Parser const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))

ld.lld: error: undefined symbol: grpc_cpp_generator::GetSourceEpilogue(grpc_generator::File*, grpc_cpp_generator::Parameters const&)

>>> referenced by idl_gen_grpc.cpp:324 (external/flatbuffers/src/idl_gen_grpc.cpp:324)

>>> out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/obj/external/flatbuffers/src/idl_gen_grpc.o:(flatbuffers::GenerateCppGRPC(flatbuffers::Parser const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))

ld.lld: error: undefined symbol: grpc_java_generator::GenerateServiceSource(grpc_generator::File*, grpc_generator::Service const*, grpc_java_generator::Parameters*)

>>> referenced by idl_gen_grpc.cpp:347 (external/flatbuffers/src/idl_gen_grpc.cpp:347)

>>> out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/obj/external/flatbuffers/src/idl_gen_grpc.o:(flatbuffers::JavaGRPCGenerator::generate())

clang-9: error: linker command failed with exit code 1 (use -v to see invocation)

17:12:55 ninja failed with: exit status 1

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

adamjafarov@meizudev:~/rr$

I tried to search wth is this thing even is

Thanks in advance.