Fail to build TFLite shared library with GPU delegates
Hi @dorishyc3, can you please share whether you have an M series or an intel chip for your Mac? Thanks. Hello,
I’m using an M1 mac Hi @dorishyc3, which version of the NDK are you using? Thanks. my ndk version is 26 I'm running into a different issue, I tried with ndk version = 26 and 25b and the errors were similar but not exactly the same.

My reproduce step (on MacOS M1 and ndk=25b):
```sh
git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
cd tensorflow_src
git switch r2.16
git pull
cd ..
mkdir tflite_build
cd tflite_build
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DTFLITE_ENABLE_GPU=ON -DBUILD_SHARED_LIBS=ON  ../tensorflow_src/tensorflow/lite # This seems to work fine
cmake --build . -j # where it fails
```

End of my output:
```sh
[ 48%] Linking CXX static library libruy_thread_pool.a
[ 48%] Built target ruy_profiler_profiler
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-vhswish/gen/qs8-vhswish-scalar-u2.c.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-vcvt/gen/qs8-vcvt-neon-u16.c.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/f32-vbinary/gen/f32-vrdivc-scalar-u1.c.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/f32-dwconv/gen/f32-dwconv-8f8m9l1c1s1r-scalar-acc2.c.o
[ 48%] Linking CXX shared library libabsl_random_internal_randen_hwaes.so
[ 48%] Built target absl_cordz_functions
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c.o
[ 48%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_tune.dir/tune.cc.o
[ 48%] Building ASM object _deps/xnnpack-build/CMakeFiles/microkernels-prod.dir/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S.o
[ 48%] Built target absl_bad_any_cast_impl
[ 48%] Linking CXX static library libruy_block_map.a
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-relu-scalar.c.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u24.c.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mul8-ld64.c.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/f32-vbinary/gen/f32-vdiv-minmax-scalar-u2.c.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/math/gen/f32-tanh-scalar-expm1minus-rr2-p6h4ts-div.c.o
[ 48%] Built target absl_throw_delegate
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/math/gen/f32-tanh-scalar-expm1minus-rr1-lut16-p3h1ts-div.c.o
[ 48%] Linking CXX static library libruy_tune.a
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/f16-rminmax/gen/f16-rmin-scalar-u4-acc2.c.o
[ 48%] Built target absl_scoped_set_env
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/f32-vhswish/gen/f32-vhswish-scalar-u1.c.o
[ 48%] Built target ruy_prepacked_cache
[ 48%] Built target microkernels-prod
[ 48%] Built target ruy_thread_pool
[ 48%] Built target absl_bad_variant_access
[ 48%] Built target logging
[ 48%] Built target absl_bad_optional_access
[ 48%] Linking CXX shared library libabsl_base.so
[ 48%] Built target absl_random_internal_randen_hwaes
[ 48%] Built target ruy_allocator
[ 48%] Linking CXX shared library libabsl_debugging_internal.so
[ 48%] Built target ruy_tune
gmake[1]: *** [CMakeFiles/Makefile2:6772: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/hardware-config.dir/src/configs/hardware-config.c.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-1x8-aarch64-neonfma-cortex-a53.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-gemm/gen/f16-gemm-6x16-aarch64-neonfp16arith-cortex-a55r0.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-igemm/gen/f32-igemm-6x8-aarch64-neonfma-cortex-a53.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-igemm/gen/f16-igemm-6x16-aarch64-neonfp16arith-cortex-a55r0.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-igemm/gen/f16-igemm-6x16-aarch64-neonfp16arith-ld64.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-6x8-aarch64-neonfma-cortex-a55.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-igemm/gen/f32-igemm-4x8-aarch64-neonfma-cortex-a55.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-gemm/gen/f16-gemm-1x16-aarch64-neonfp16arith-ld64.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-6x8-aarch64-neonfma-ld128.cc.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/memory.dir/src/memory.c.o
[ 48%] Built target ruy_block_map
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/jit/aarch64-assembler.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-igemm/gen/f16-igemm-4x16-aarch64-neonfp16arith-ld64.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-igemm/gen/f32-igemm-1x8-aarch64-neonfma-cortex-a53.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-gemm/gen/f16-gemm-6x16-aarch64-neonfp16arith-ld64.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-igemm/gen/f16-igemm-6x16-aarch64-neonfp16arith-cortex-a55.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-igemm/gen/f32-igemm-4x8-aarch64-neonfma-ld128.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-6x8-aarch64-neonfma-cortex-a53.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-igemm/gen/f32-igemm-6x8-aarch64-neonfma-cortex-a75.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-igemm/gen/f32-igemm-6x8-aarch64-neonfma-ld128.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-4x8-aarch64-neonfma-cortex-a75.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-gemm/gen/f16-gemm-4x16-aarch64-neonfp16arith-ld64.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-igemm/gen/f16-igemm-1x16-aarch64-neonfp16arith-ld64.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-igemm/gen/f32-igemm-6x8-aarch64-neonfma-cortex-a55.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-4x8-aarch64-neonfma-cortex-a55.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-gemm/gen/f16-gemm-6x16-aarch64-neonfp16arith-cortex-a75.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-gemm/gen/f16-gemm-6x16-aarch64-neonfp16arith-cortex-a55.cc.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-4x8-aarch64-neonfma-cortex-a53.cc.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/operator-utils.dir/src/operator-utils.c.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/post-operation.dir/src/operators/post-operation.c.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/jit/aarch32-assembler.cc.o
[ 48%] Building C object _deps/xnnpack-build/CMakeFiles/mutex.dir/src/mutex.c.o
[ 48%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f16-igemm/gen/f16-igemm-6x16-aarch64-neonfp16arith-cortex-a75.cc.o
[ 48%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_pack_avx.dir/pack_avx.cc.o
[ 48%] Built target absl_base
[ 48%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_pack_avx2_fma.dir/pack_avx2_fma.cc.o
[ 49%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/jit/assembler.cc.o
[ 49%] Built target operator-utils
[ 49%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_kernel_avx.dir/kernel_avx.cc.o
[ 49%] Built target absl_debugging_internal
[ 49%] Built target mutex
[ 49%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-1x8-aarch64-neonfma-ld64.cc.o
[ 49%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_ctx.dir/ctx.cc.o
[ 49%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_kernel_avx512.dir/kernel_avx512.cc.o
[ 49%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-igemm/gen/f32-igemm-1x8-aarch64-neonfma-cortex-a75.cc.o
[ 49%] Building C object _deps/xnnpack-build/CMakeFiles/operator-run.dir/src/operator-run.c.o
[ 49%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-igemm/gen/f32-igemm-4x8-aarch64-neonfma-cortex-a53.cc.o
[ 49%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_pack_avx512.dir/pack_avx512.cc.o
[ 49%] Linking CXX static library libruy_pack_avx2_fma.a
[ 49%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_kernel_arm.dir/kernel_arm32.cc.o
[ 49%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-4x8-aarch64-neonfma-ld128.cc.o
[ 50%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_kernel_avx2_fma.dir/kernel_avx2_fma.cc.o
[ 50%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-6x8-aarch64-neonfma-cortex-a75.cc.o
[ 50%] Linking CXX static library libruy_kernel_avx.a
[ 50%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-igemm/gen/f32-igemm-4x8-aarch64-neonfma-cortex-a75.cc.o
[ 50%] Building CXX object _deps/abseil-cpp-build/absl/random/CMakeFiles/absl_random_internal_randen.dir/internal/randen.cc.o
[ 50%] Built target hardware-config
[ 50%] Built target memory
[ 50%] Built target post-operation
[ 50%] Linking CXX static library libruy_pack_avx512.a
[ 50%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_kernel_arm.dir/kernel_arm64.cc.o
[ 50%] Building CXX object _deps/ruy-build/ruy/CMakeFiles/ruy_pack_arm.dir/pack_arm.cc.o
[ 50%] Building CXX object _deps/xnnpack-build/CMakeFiles/jit.dir/src/f32-gemm/gen/f32-gemm-1x8-aarch64-neonfma-cortex-a75.cc.o
[ 50%] Linking CXX static library libruy_pack_avx.a
[ 50%] Built target ruy_pack_avx2_fma
[ 50%] Linking CXX static library libruy_kernel_arm.a
[ 50%] Linking CXX static library libruy_ctx.a
[ 50%] Linking CXX static library libruy_kernel_avx512.a
[ 50%] Built target ruy_kernel_avx
[ 50%] Linking CXX static library libruy_kernel_avx2_fma.a
[ 50%] Linking CXX shared library libabsl_random_internal_randen.so
[ 50%] Built target ruy_pack_avx512
[ 50%] Built target operator-run
[ 50%] Built target jit
[ 50%] Linking CXX static library libruy_pack_arm.a
[ 50%] Built target ruy_pack_avx
[ 50%] Built target ruy_kernel_arm
[ 50%] Built target absl_random_internal_randen
[ 50%] Built target ruy_ctx
[ 50%] Built target ruy_kernel_avx2_fma
[ 50%] Built target ruy_kernel_avx512
[ 50%] Built target ruy_pack_arm
gmake: *** [Makefile:136: all] Error 2
```

Hi @terryheo, can you please take a look? Thanks.
### Issue type

Build/Install

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

2.16.1

### Custom code

No

### OS platform and distribution

MacOS

### Mobile device

Android

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

Clang 17.0.2

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Building TFLite with CMake following [this guide](https://www.tensorflow.org/lite/guide/build_cmake), with the option to build shared lib and GPU delegates fails.


### Standalone code to reproduce the issue

```shell
Follow Step 1-3 in the guide
`cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
  -DANDROID_ABI=arm64-v8a -DTFLITE_ENABLE_GPU=ON -DBUILD_SHARED_LIBS=ON  ../tensorflow/lite`
`cmake --build . -j`
```


### Relevant log output

```shell
1 warning generated.
[ 98%] Linking CXX shared library libabsl_flags_usage_internal.so
1 warning generated.
[ 98%] Built target absl_flags_usage_internal
[ 98%] Building CXX object _deps/abseil-cpp-build/absl/flags/CMakeFiles/absl_flags_usage.dir/usage.cc.o
1 warning generated.
1 warning generated.
1 warning generated.
[ 98%] Linking CXX shared library libabsl_flags_usage.so
1 warning generated.
[ 98%] Built target absl_flags_usage
[ 98%] Building CXX object _deps/abseil-cpp-build/absl/flags/CMakeFiles/absl_flags_parse.dir/parse.cc.o
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
[ 98%] Linking CXX shared library libabsl_flags_parse.so
[ 98%] Built target absl_flags_parse
1 warning generated.
[100%] Linking CXX shared library libtensorflow-lite.so
ld.lld: error: undefined symbol: tflite::gpu::OptionalAndroidHardwareBuffer::OptionalAndroidHardwareBuffer()
>>> referenced by android_hardware_buffer.h:69 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/android_hardware_buffer.h:69)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(TfLiteGpuDelegateV2CreateAsync)
>>> referenced by android_hardware_buffer.h:69 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/android_hardware_buffer.h:69)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::RegisterBuffer(TfLiteOpaqueContext*, TfLiteIoType, TfLiteBackendBuffer const*, TfLiteAttributeMap const*, int))
>>> referenced by android_hardware_buffer.h:69 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/android_hardware_buffer.h:69)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::SetBufferAttributes(TfLiteBackendBuffer const*, TfLiteAttributeMap const*))
>>> referenced 7 more times

ld.lld: error: undefined symbol: tflite::delegates::BackendAsyncKernelInterface::BackendAsyncKernelInterface()
>>> referenced by delegate.cc:772 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:772)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::CreateAsyncRegistration()::$_0::__invoke(TfLiteContext*, char const*, unsigned long))
>>> did you mean: tflite::delegates::BackendAsyncKernelInterface::~BackendAsyncKernelInterface()
>>> defined in: CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o

ld.lld: error: undefined symbol: tflite::delegates::utils::ReadBufferAttrs(TfLiteAttributeMap const*)
>>> referenced by delegate.cc:1034 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1034)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::ReconcileRestrictions(TfLiteOpaqueContext const*, TfLiteOpaqueNode const*, int, TfLiteAttributeMap const*, TfLiteAttributeMap*, TfLiteAttributeMap*) const)
>>> referenced by delegate.cc:892 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:892)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::CheckAttributes(TfLiteAttributeMap const*, tflite::delegates::utils::BufferAttributes&))

ld.lld: error: undefined symbol: tflite::delegates::utils::WriteBufferAttrs(tflite::delegates::utils::BufferAttributes const&, TfLiteAttributeMap*)
>>> referenced by delegate.cc:1036 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1036)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::ReconcileRestrictions(TfLiteOpaqueContext const*, TfLiteOpaqueNode const*, int, TfLiteAttributeMap const*, TfLiteAttributeMap*, TfLiteAttributeMap*) const)
>>> referenced by delegate.cc:1036 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1036)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::ReconcileRestrictions(TfLiteOpaqueContext const*, TfLiteOpaqueNode const*, int, TfLiteAttributeMap const*, TfLiteAttributeMap*, TfLiteAttributeMap*) const)
>>> referenced by delegate.cc:1036 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1036)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::ReconcileRestrictions(TfLiteOpaqueContext const*, TfLiteOpaqueNode const*, int, TfLiteAttributeMap const*, TfLiteAttributeMap*, TfLiteAttributeMap*) const)
>>> referenced 3 more times

ld.lld: error: undefined symbol: tflite::delegates::utils::ReadSyncAttrs(TfLiteAttributeMap const*)
>>> referenced by delegate.cc:1059 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1059)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::ReconcileRestrictions(TfLiteOpaqueContext const*, TfLiteOpaqueNode const*, int, TfLiteAttributeMap const*, TfLiteAttributeMap*, TfLiteAttributeMap*) const)
>>> referenced by delegate.cc:1092 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1092)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::SetAttributes(TfLiteOpaqueContext*, TfLiteOpaqueNode*, int, TfLiteAttributeMap const*))

ld.lld: error: undefined symbol: tflite::delegates::utils::WriteSyncAttrs(tflite::delegates::utils::SyncAttributes const&, TfLiteAttributeMap*)
>>> referenced by delegate.cc:1061 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1061)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::ReconcileRestrictions(TfLiteOpaqueContext const*, TfLiteOpaqueNode const*, int, TfLiteAttributeMap const*, TfLiteAttributeMap*, TfLiteAttributeMap*) const)
>>> referenced by delegate.cc:1061 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1061)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::ReconcileRestrictions(TfLiteOpaqueContext const*, TfLiteOpaqueNode const*, int, TfLiteAttributeMap const*, TfLiteAttributeMap*, TfLiteAttributeMap*) const)
>>> referenced by delegate.cc:1063 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1063)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::ReconcileRestrictions(TfLiteOpaqueContext const*, TfLiteOpaqueNode const*, int, TfLiteAttributeMap const*, TfLiteAttributeMap*, TfLiteAttributeMap*) const)

ld.lld: error: undefined symbol: tflite::gpu::gl::WaitFdGpu(int)
>>> referenced by delegate.cc:1350 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1350)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))

ld.lld: error: undefined symbol: tflite::delegates::utils::WaitForAllFds(absl::lts_20230802::Span<int const>)
>>> referenced by delegate.cc:1353 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1353)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))

ld.lld: error: undefined symbol: tflite::gpu::gl::EglEnvironment::NewEglEnvironment(std::__ndk1::unique_ptr<tflite::gpu::gl::EglEnvironment, std::__ndk1::default_delete<tflite::gpu::gl::EglEnvironment>>*)
>>> referenced by delegate.cc:1358 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1358)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))

ld.lld: error: undefined symbol: tflite::delegates::utils::ConvertToTfLiteStatus(absl::lts_20230802::Status)
>>> referenced by delegate.cc:1358 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1358)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))
>>> referenced by delegate.cc:1369 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1369)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))
>>> referenced by delegate.cc:1370 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1370)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))
>>> referenced 3 more times

ld.lld: error: undefined symbol: tflite::gpu::gl::EglEnvironment::~EglEnvironment()
>>> referenced by unique_ptr.h:65 (/Users/dhe/Library/Android/sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__memory/unique_ptr.h:65)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))
>>> referenced by unique_ptr.h:65 (/Users/dhe/Library/Android/sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__memory/unique_ptr.h:65)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))

ld.lld: error: undefined symbol: tflite::gpu::AsyncBuffer::GetOpenGlBuffer(unsigned int&)
>>> referenced by delegate.cc:1369 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1369)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))
>>> referenced by delegate.cc:1382 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1382)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))

ld.lld: error: undefined symbol: tflite::gpu::gl::CreateFdGpu()
>>> referenced by delegate.cc:1394 (/Users/dhe/Snapchat/Dev/tensorflow/tensorflow/lite/delegates/gpu/delegate.cc:1394)
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libtensorflow-lite.so] Error 1
make[1]: *** [CMakeFiles/tensorflow-lite.dir/all] Error 2
make: *** [all] Error 2
```
