TFlite minimal example failing on latest tensorflow repo
Hi , @lcerman! This often occurs due to missing libraries or incorrect linking configuration. The errors specifically mention register.cc, which is a file related to registering built-in operators in TensorFlow Lite. This suggests that there might be problems with the TensorFlow Lite library or its configuration.
Please let us know the exact TF version you are using ?
Thank you! Hello, I have used TensorFlow git master branch (as suggested in the minimal example instructions).

For the first Linux PC, with Ubuntu 20.04 the hash of the last commit is fd725e2ec9d50107129e67851c25425c16fede2d.

I have then tried it later at another Linux PC with Ubuntu 20.04, the revision is also from yesterday, but little bit newer: 46438b8dd7c59769b068a640addca5cb43f01a57

I have now not access to the Windows PC with WSL and Ubuntu 22.04, which exhibited exactly the same error. But I have made the checkout in approximately the same time as for the first Linux PC. I could tell the exact hash later today or tomorrow.

If you need more details, please, let me know. Hello again, we have finally discovered the cause of this error after some hours of CMake debugging. Its the way how the list of the kernel source files is populated in the [CMakeLists.txt](https://github.com/tensorflow/tensorflow/blob/4c6d9fbd92975b6567628feb0a7bc5a711b2146b/tensorflow/lite/CMakeLists.txt#L532C1-L535C2) in combination with the parent directory name I have picked for my project. Note how the files that should be excluded from build are defined there:

```
populate_tflite_source_vars("kernels"
  TFLITE_KERNEL_SRCS
  FILTER "(.*_test_util_internal|test_.*|.*_ops_wrapper)\\.(cc|h)"
)
```

I have put my project under `test_tlite_cpp` directory, which caused the second regex in the disjunction - the `test_.*` - to trigger exclusion of all kernel files from the build.

Steps to reproduce:

1. `mkdir test_build_breaker`,
2. `cd test_build_breaker`,
3. follow the instructions from [the minimal example](https://github.com/tensorflow/tensorflow/blob/4c6d9fbd92975b6567628feb0a7bc5a711b2146b/tensorflow/lite/examples/minimal/README.md).

It was a nasty one... I had tried the build on several systems - Linux machines with Ubuntu 20.04, Windows machine with Ubuntu 22.04 @ WSL2, cross-compiled that under a Windows using a toolchain for ARM target. Always with the same result. To my bad, I had always used the same name for the parent project directory. Hi @Icerman,

I have reproduced the issue on linux machine with Ubuntu 20.04 and 22.04 with [the minimal example](https://github.com/tensorflow/tensorflow/blob/4c6d9fbd92975b6567628feb0a7bc5a711b2146b/tensorflow/lite/examples/minimal/README.md). Please recheck once. The build is successful without errors.  Here is the screenshot of the  build. 
![image](https://github.com/tensorflow/tensorflow/assets/149650845/9193b610-a333-4a8d-8bfa-0c4fca659cb0). 

Thank You Hello, it looks like you have missed the detailed description I had provided above: https://github.com/tensorflow/tensorflow/issues/62769#issuecomment-1885292459 and did the build in directory named `~/minimal_build`, which would not trigger the error. By using a directory name that starts with `test_*` (note that the git copy of the tensforflow must be in that directory too) we were able to reproduce this issue on multiple systems -- different Ubuntu versions, native, WSL, cross-copilation with toolchain for ARM...

Please,
- read the description provided in https://github.com/tensorflow/tensorflow/issues/62769#issuecomment-1885292459, we did also identified the source of the error, its quite obvious once you look at it...
- try to reproduce the error using the steps given in https://github.com/tensorflow/tensorflow/issues/62769#issuecomment-1885292459

 Hi @icerman, 

Sorry for my misunderstanding. Yes, exactly you are correct. As you mentioned in the above comment, the directory starts with test_* is included, has a constraint as it is intended. Thank you for your valuable observation. Let me know if you have any other queries. 

Thank You Hello, 

so, were you able to reproduce it? Hi @lcerman ,

I have reproduced on Ubuntu 22.04. Here is the screenshot
![Screenshot 2024-01-23 9 18 54 AM](https://github.com/tensorflow/tensorflow/assets/149650845/624e385e-5649-43e7-bd75-6c065f3063e1). 
@pkgoogle, Please look into the issue.

Thank You
 Hi @lcerman, including "test_" as the start of your directory name will cause conflicts because it is essentially a reserved nomenclature for us to handle our unit test infrastructure for the repo, please use a different name. Thanks. I don't think that defining such requirement on the environment outside of your project tree is a good design... Is that documented somewhere? At least, as you are not going to fix it, wouldn't be nice to leave some notice in the minimal example README.md? This is a nasty trap, we had spent lot of time in team of several people until we found whats going on... Hi @terryheo, is there a way we can redefine [CMakeLists.txt](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/CMakeLists.txt) to not exclude all these files if the parent directory of our source directory hits one of these filters? Thanks for looking into this. It's generally not advisable to use globing in cmakelists.txt at all, as there are many potential problems stemming from this. Even cmake documentation advises against, albeit for (yet another) different reason: https://cmake.org/cmake/help/latest/command/file.html#glob:

"We do not recommend using GLOB to collect a list of source files from your source tree. If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate. The CONFIGURE_DEPENDS flag may not work reliably on all generators, or if a new generator is added in the future that cannot support it, projects using it will be stuck. Even if CONFIGURE_DEPENDS works reliably, there is still a cost to perform the check on every rebuild."

Please consider listing the files explicitly. Tell me about a phenomenon, I found this issue because I encountered this problem

`collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/minimal.dir/build.make:185: minimal] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1369: CMakeFiles/minimal.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2`

I installed Ubuntu 22.04.1 LTS in WSL, and because I am not familiar with Linux systems, I initially executed the code for the smallest example in the/home folder，https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/minimal，The above error has occurred.

After I made the changes according to Lcerman's method and re executed, the number of errors increased.
Later, I saw that LakshmiKalaKadali executed successfully and looked at his directory. I wondered if the directory being executed was incorrect,~/minimal_build actually mean /home/user/minimal_build,Then,I downloaded the file and re exectuted it in the ~$directory,The downloaded file ultimately go to the /home/user folder and executed successfully.
![05312](https://github.com/tensorflow/tensorflow/assets/45954823/1d362c7c-3d0a-47bf-a1b8-5e432d779789)
I hope this case can help later generations.



### Issue type

Build/Install

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

No

### Source

source

### TensorFlow version

the git master branch

### Custom code

No

### OS platform and distribution

Ubuntu 22.04 @ WSL2, Ubuntu 20.04 native

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

When I try to follow the minimal example (exactly, step by step) -- https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/minimal I get the exactly same error as in this closed ticket: https://github.com/tensorflow/tensorflow/issues/59537

I got the same error on two systems, WSL with Ubuntu 22.04 and Linux system with Ubuntu 20.04.

## Error on WSL with Ubuntu 22.04

```
[100%] Linking CXX executable minimal
/usr/bin/ld: tensorflow-lite/libtensorflow-lite.a(register.cc.o): in function `tflite::ops::builtin::BuiltinOpResolver::BuiltinOpResolver()':
register.cc:(.text+0x99): undefined reference to `tflite::ops::builtin::Register_ABS()'
/usr/bin/ld: register.cc:(.text+0xbd): undefined reference to `tflite::ops::builtin::Register_HARD_SWISH()'
/usr/bin/ld: register.cc:(.text+0xdb): undefined reference to `tflite::ops::builtin::Register_RELU()'
/usr/bin/ld: register.cc:(.text+0xff): undefined reference to `tflite::ops::builtin::Register_RELU_N1_TO_1()'
/usr/bin/ld: register.cc:(.text+0x11d): undefined reference to `tflite::ops::builtin::Register_RELU_0_TO_1()'
/usr/bin/ld: register.cc:(.text+0x13b): undefined reference to `tflite::ops::builtin::Register_RELU6()'
/usr/bin/ld: register.cc:(.text+0x15f): undefined reference to `tflite::ops::builtin::Register_TANH()'
/usr/bin/ld: register.cc:(.text+0x183): undefined reference to `tflite::ops::builtin::Register_LOGISTIC()'
/usr/bin/ld: register.cc:(.text+0x1a7): undefined reference to `tflite::ops::builtin::Register_AVERAGE_POOL_2D()'
/usr/bin/ld: register.cc:(.text+0x1cb): undefined reference to `tflite::ops::builtin::Register_MAX_POOL_2D()'
/usr/bin/ld: register.cc:(.text+0x1ef): undefined reference to `tflite::ops::builtin::Register_L2_POOL_2D()'
/usr/bin/ld: register.cc:(.text+0x20d): undefined reference to `tflite::ops::builtin::Register_CONV_2D()'
/usr/bin/ld: register.cc:(.text+0x231): undefined reference to `tflite::ops::builtin::Register_DEPTHWISE_CONV_2D()'
/usr/bin/ld: register.cc:(.text+0x255): undefined reference to `tflite::ops::builtin::Register_SVDF()'
/usr/bin/ld: register.cc:(.text+0x279): undefined reference to `tflite::ops::builtin::Register_RNN()'
/usr/bin/ld: register.cc:(.text+0x29d): undefined reference to `tflite::ops::builtin::Register_BIDIRECTIONAL_SEQUENCE_RNN()'
/usr/bin/ld: register.cc:(.text+0x2c1): undefined reference to `tflite::ops::builtin::Register_UNIDIRECTIONAL_SEQUENCE_RNN()'
/usr/bin/ld: register.cc:(.text+0x2e5): undefined reference to `tflite::ops::builtin::Register_EMBEDDING_LOOKUP()'
/usr/bin/ld: register.cc:(.text+0x309): undefined reference to `tflite::ops::builtin::Register_EMBEDDING_LOOKUP_SPARSE()'
/usr/bin/ld: register.cc:(.text+0x327): undefined reference to `tflite::ops::builtin::Register_FULLY_CONNECTED()'
/usr/bin/ld: register.cc:(.text+0x34b): undefined reference to `tflite::ops::builtin::Register_LSH_PROJECTION()'
/usr/bin/ld: register.cc:(.text+0x369): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_LOOKUP()'
/usr/bin/ld: register.cc:(.text+0x387): undefined reference to `tflite::ops::builtin::Register_SOFTMAX()'
/usr/bin/ld: register.cc:(.text+0x3ab): undefined reference to `tflite::ops::builtin::Register_CONCATENATION()'
/usr/bin/ld: register.cc:(.text+0x3cf): undefined reference to `tflite::ops::builtin::Register_ADD()'
/usr/bin/ld: register.cc:(.text+0x3f3): undefined reference to `tflite::ops::builtin::Register_SPACE_TO_BATCH_ND()'
/usr/bin/ld: register.cc:(.text+0x417): undefined reference to `tflite::ops::builtin::Register_BATCH_TO_SPACE_ND()'
/usr/bin/ld: register.cc:(.text+0x43b): undefined reference to `tflite::ops::builtin::Register_MUL()'
/usr/bin/ld: register.cc:(.text+0x45f): undefined reference to `tflite::ops::builtin::Register_L2_NORMALIZATION()'
/usr/bin/ld: register.cc:(.text+0x483): undefined reference to `tflite::ops::builtin::Register_LOCAL_RESPONSE_NORMALIZATION()'
/usr/bin/ld: register.cc:(.text+0x4a1): undefined reference to `tflite::ops::builtin::Register_LSTM()'
/usr/bin/ld: register.cc:(.text+0x4c5): undefined reference to `tflite::ops::builtin::Register_BIDIRECTIONAL_SEQUENCE_LSTM()'
/usr/bin/ld: register.cc:(.text+0x4e9): undefined reference to `tflite::ops::builtin::Register_UNIDIRECTIONAL_SEQUENCE_LSTM()'
/usr/bin/ld: register.cc:(.text+0x50d): undefined reference to `tflite::ops::builtin::Register_PAD()'
/usr/bin/ld: register.cc:(.text+0x531): undefined reference to `tflite::ops::builtin::Register_PADV2()'
/usr/bin/ld: register.cc:(.text+0x555): undefined reference to `tflite::ops::builtin::Register_RESHAPE()'
/usr/bin/ld: register.cc:(.text+0x573): undefined reference to `tflite::ops::builtin::Register_RESIZE_BILINEAR()'
/usr/bin/ld: register.cc:(.text+0x597): undefined reference to `tflite::ops::builtin::Register_RESIZE_NEAREST_NEIGHBOR()'
/usr/bin/ld: register.cc:(.text+0x5bb): undefined reference to `tflite::ops::builtin::Register_SKIP_GRAM()'
/usr/bin/ld: register.cc:(.text+0x5d9): undefined reference to `tflite::ops::builtin::Register_SPACE_TO_DEPTH()'
/usr/bin/ld: register.cc:(.text+0x5fd): undefined reference to `tflite::ops::builtin::Register_DEPTH_TO_SPACE()'
/usr/bin/ld: register.cc:(.text+0x621): undefined reference to `tflite::ops::builtin::Register_GATHER()'
/usr/bin/ld: register.cc:(.text+0x645): undefined reference to `tflite::ops::builtin::Register_TRANSPOSE()'
/usr/bin/ld: register.cc:(.text+0x669): undefined reference to `tflite::ops::builtin::Register_MEAN()'
/usr/bin/ld: register.cc:(.text+0x68d): undefined reference to `tflite::ops::builtin::Register_DIV()'
/usr/bin/ld: register.cc:(.text+0x6b1): undefined reference to `tflite::ops::builtin::Register_SUB()'
/usr/bin/ld: register.cc:(.text+0x6d5): undefined reference to `tflite::ops::builtin::Register_SPLIT()'
/usr/bin/ld: register.cc:(.text+0x6f9): undefined reference to `tflite::ops::builtin::Register_SPLIT_V()'
/usr/bin/ld: register.cc:(.text+0x71d): undefined reference to `tflite::ops::builtin::Register_SQUEEZE()'
/usr/bin/ld: register.cc:(.text+0x741): undefined reference to `tflite::ops::builtin::Register_STRIDED_SLICE()'
/usr/bin/ld: register.cc:(.text+0x765): undefined reference to `tflite::ops::builtin::Register_EXP()'
/usr/bin/ld: register.cc:(.text+0x789): undefined reference to `tflite::ops::builtin::Register_TOPK_V2()'
/usr/bin/ld: register.cc:(.text+0x7ad): undefined reference to `tflite::ops::builtin::Register_LOG()'
/usr/bin/ld: register.cc:(.text+0x7d1): undefined reference to `tflite::ops::builtin::Register_LOG_SOFTMAX()'
/usr/bin/ld: register.cc:(.text+0x7f5): undefined reference to `tflite::ops::builtin::Register_CAST()'
/usr/bin/ld: register.cc:(.text+0x819): undefined reference to `tflite::ops::builtin::Register_DEQUANTIZE()'
/usr/bin/ld: register.cc:(.text+0x83d): undefined reference to `tflite::ops::builtin::Register_PRELU()'
/usr/bin/ld: register.cc:(.text+0x85b): undefined reference to `tflite::ops::builtin::Register_MAXIMUM()'
/usr/bin/ld: register.cc:(.text+0x87f): undefined reference to `tflite::ops::builtin::Register_MINIMUM()'
/usr/bin/ld: register.cc:(.text+0x8a3): undefined reference to `tflite::ops::builtin::Register_ARG_MAX()'
/usr/bin/ld: register.cc:(.text+0x8c7): undefined reference to `tflite::ops::builtin::Register_ARG_MIN()'
/usr/bin/ld: register.cc:(.text+0x8eb): undefined reference to `tflite::ops::builtin::Register_GREATER()'
/usr/bin/ld: register.cc:(.text+0x90f): undefined reference to `tflite::ops::builtin::Register_GREATER_EQUAL()'
/usr/bin/ld: register.cc:(.text+0x933): undefined reference to `tflite::ops::builtin::Register_LESS()'
/usr/bin/ld: register.cc:(.text+0x957): undefined reference to `tflite::ops::builtin::Register_LESS_EQUAL()'
/usr/bin/ld: register.cc:(.text+0x97b): undefined reference to `tflite::ops::builtin::Register_FLOOR()'
/usr/bin/ld: register.cc:(.text+0x999): undefined reference to `tflite::ops::builtin::Register_CEIL()'
/usr/bin/ld: register.cc:(.text+0x9b7): undefined reference to `tflite::ops::builtin::Register_ROUND()'
/usr/bin/ld: register.cc:(.text+0x9d5): undefined reference to `tflite::ops::builtin::Register_NEG()'
/usr/bin/ld: register.cc:(.text+0x9f3): undefined reference to `tflite::ops::builtin::Register_SELECT()'
/usr/bin/ld: register.cc:(.text+0xa17): undefined reference to `tflite::ops::builtin::Register_SELECT_V2()'
/usr/bin/ld: register.cc:(.text+0xa3b): undefined reference to `tflite::ops::builtin::Register_SLICE()'
/usr/bin/ld: register.cc:(.text+0xa5f): undefined reference to `tflite::ops::builtin::Register_SIN()'
/usr/bin/ld: register.cc:(.text+0xa7d): undefined reference to `tflite::ops::builtin::Register_COS()'
/usr/bin/ld: register.cc:(.text+0xa9b): undefined reference to `tflite::ops::builtin::Register_TRANSPOSE_CONV()'
/usr/bin/ld: register.cc:(.text+0xabf): undefined reference to `tflite::ops::builtin::Register_TILE()'
/usr/bin/ld: register.cc:(.text+0xae3): undefined reference to `tflite::ops::builtin::Register_SUM()'
/usr/bin/ld: register.cc:(.text+0xb07): undefined reference to `tflite::ops::builtin::Register_REDUCE_PROD()'
/usr/bin/ld: register.cc:(.text+0xb2b): undefined reference to `tflite::ops::builtin::Register_REDUCE_MAX()'
/usr/bin/ld: register.cc:(.text+0xb4f): undefined reference to `tflite::ops::builtin::Register_REDUCE_MIN()'
/usr/bin/ld: register.cc:(.text+0xb73): undefined reference to `tflite::ops::builtin::Register_REDUCE_ANY()'
/usr/bin/ld: register.cc:(.text+0xb91): undefined reference to `tflite::ops::builtin::Register_REDUCE_ALL()'
/usr/bin/ld: register.cc:(.text+0xbaf): undefined reference to `tflite::ops::builtin::Register_EXPAND_DIMS()'
/usr/bin/ld: register.cc:(.text+0xbcd): undefined reference to `tflite::ops::builtin::Register_SPARSE_TO_DENSE()'
/usr/bin/ld: register.cc:(.text+0xbf1): undefined reference to `tflite::ops::builtin::Register_EQUAL()'
/usr/bin/ld: register.cc:(.text+0xc15): undefined reference to `tflite::ops::builtin::Register_NOT_EQUAL()'
/usr/bin/ld: register.cc:(.text+0xc39): undefined reference to `tflite::ops::builtin::Register_SQRT()'
/usr/bin/ld: register.cc:(.text+0xc57): undefined reference to `tflite::ops::builtin::Register_RSQRT()'
/usr/bin/ld: register.cc:(.text+0xc7b): undefined reference to `tflite::ops::builtin::Register_SHAPE()'
/usr/bin/ld: register.cc:(.text+0xc99): undefined reference to `tflite::ops::builtin::Register_RANK()'
/usr/bin/ld: register.cc:(.text+0xcb7): undefined reference to `tflite::ops::builtin::Register_POW()'
/usr/bin/ld: register.cc:(.text+0xcd5): undefined reference to `tflite::ops::builtin::Register_FAKE_QUANT()'
/usr/bin/ld: register.cc:(.text+0xcf9): undefined reference to `tflite::ops::builtin::Register_PACK()'
/usr/bin/ld: register.cc:(.text+0xd1d): undefined reference to `tflite::ops::builtin::Register_ONE_HOT()'
/usr/bin/ld: register.cc:(.text+0xd3b): undefined reference to `tflite::ops::builtin::Register_LOGICAL_OR()'
/usr/bin/ld: register.cc:(.text+0xd59): undefined reference to `tflite::ops::builtin::Register_LOGICAL_AND()'
/usr/bin/ld: register.cc:(.text+0xd77): undefined reference to `tflite::ops::builtin::Register_LOGICAL_NOT()'
/usr/bin/ld: register.cc:(.text+0xd95): undefined reference to `tflite::ops::builtin::Register_UNPACK()'
/usr/bin/ld: register.cc:(.text+0xdb9): undefined reference to `tflite::ops::builtin::Register_FLOOR_DIV()'
/usr/bin/ld: register.cc:(.text+0xddd): undefined reference to `tflite::ops::builtin::Register_SQUARE()'
/usr/bin/ld: register.cc:(.text+0xdfb): undefined reference to `tflite::ops::builtin::Register_ZEROS_LIKE()'
/usr/bin/ld: register.cc:(.text+0xe19): undefined reference to `tflite::ops::builtin::Register_FLOOR_MOD()'
/usr/bin/ld: register.cc:(.text+0xe3d): undefined reference to `tflite::ops::builtin::Register_RANGE()'
/usr/bin/ld: register.cc:(.text+0xe61): undefined reference to `tflite::ops::builtin::Register_LEAKY_RELU()'
/usr/bin/ld: register.cc:(.text+0xe85): undefined reference to `tflite::ops::builtin::Register_SQUARED_DIFFERENCE()'
/usr/bin/ld: register.cc:(.text+0xea9): undefined reference to `tflite::ops::builtin::Register_FILL()'
/usr/bin/ld: register.cc:(.text+0xecd): undefined reference to `tflite::ops::builtin::Register_MIRROR_PAD()'
/usr/bin/ld: register.cc:(.text+0xef1): undefined reference to `tflite::ops::builtin::Register_UNIQUE()'
/usr/bin/ld: register.cc:(.text+0xf0f): undefined reference to `tflite::ops::builtin::Register_REVERSE_V2()'
/usr/bin/ld: register.cc:(.text+0xf33): undefined reference to `tflite::ops::builtin::Register_ADD_N()'
/usr/bin/ld: register.cc:(.text+0xf51): undefined reference to `tflite::ops::builtin::Register_GATHER_ND()'
/usr/bin/ld: register.cc:(.text+0xf75): undefined reference to `tflite::ops::builtin::Register_WHERE()'
/usr/bin/ld: register.cc:(.text+0xf99): undefined reference to `tflite::ops::builtin::Register_ELU()'
/usr/bin/ld: register.cc:(.text+0xfb7): undefined reference to `tflite::ops::builtin::Register_REVERSE_SEQUENCE()'
/usr/bin/ld: register.cc:(.text+0xfd5): undefined reference to `tflite::ops::builtin::Register_MATRIX_DIAG()'
/usr/bin/ld: register.cc:(.text+0xff3): undefined reference to `tflite::ops::builtin::Register_QUANTIZE()'
/usr/bin/ld: register.cc:(.text+0x1017): undefined reference to `tflite::ops::builtin::Register_MATRIX_SET_DIAG()'
/usr/bin/ld: register.cc:(.text+0x1035): undefined reference to `tflite::ops::builtin::Register_IF()'
/usr/bin/ld: register.cc:(.text+0x1053): undefined reference to `tflite::ops::builtin::Register_WHILE()'
/usr/bin/ld: register.cc:(.text+0x1071): undefined reference to `tflite::ops::builtin::Register_NON_MAX_SUPPRESSION_V4()'
/usr/bin/ld: register.cc:(.text+0x108f): undefined reference to `tflite::ops::builtin::Register_NON_MAX_SUPPRESSION_V5()'
/usr/bin/ld: register.cc:(.text+0x10ad): undefined reference to `tflite::ops::builtin::Register_SCATTER_ND()'
/usr/bin/ld: register.cc:(.text+0x10cb): undefined reference to `tflite::ops::builtin::Register_DENSIFY()'
/usr/bin/ld: register.cc:(.text+0x10e9): undefined reference to `tflite::ops::builtin::Register_SEGMENT_SUM()'
/usr/bin/ld: register.cc:(.text+0x1107): undefined reference to `tflite::ops::builtin::Register_BATCH_MATMUL()'
/usr/bin/ld: register.cc:(.text+0x112b): undefined reference to `tflite::ops::builtin::Register_CUMSUM()'
/usr/bin/ld: register.cc:(.text+0x1149): undefined reference to `tflite::ops::builtin::Register_BROADCAST_TO()'
/usr/bin/ld: register.cc:(.text+0x116d): undefined reference to `tflite::ops::builtin::Register_CALL_ONCE()'
/usr/bin/ld: register.cc:(.text+0x118b): undefined reference to `tflite::ops::builtin::Register_RFFT2D()'
/usr/bin/ld: register.cc:(.text+0x11a9): undefined reference to `tflite::ops::builtin::Register_CONV_3D()'
/usr/bin/ld: register.cc:(.text+0x11c7): undefined reference to `tflite::ops::builtin::Register_IMAG()'
/usr/bin/ld: register.cc:(.text+0x11e5): undefined reference to `tflite::ops::builtin::Register_REAL()'
/usr/bin/ld: register.cc:(.text+0x1203): undefined reference to `tflite::ops::builtin::Register_COMPLEX_ABS()'
/usr/bin/ld: register.cc:(.text+0x1221): undefined reference to `tflite::ops::builtin::Register_BROADCAST_ARGS()'
/usr/bin/ld: register.cc:(.text+0x123f): undefined reference to `tflite::ops::builtin::Register_HASHTABLE()'
/usr/bin/ld: register.cc:(.text+0x125d): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_FIND()'
/usr/bin/ld: register.cc:(.text+0x127b): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_IMPORT()'
/usr/bin/ld: register.cc:(.text+0x1299): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_SIZE()'
/usr/bin/ld: register.cc:(.text+0x12b7): undefined reference to `tflite::ops::builtin::Register_CONV_3D_TRANSPOSE()'
/usr/bin/ld: register.cc:(.text+0x12d5): undefined reference to `tflite::ops::builtin::Register_VAR_HANDLE()'
/usr/bin/ld: register.cc:(.text+0x12f3): undefined reference to `tflite::ops::builtin::Register_READ_VARIABLE()'
/usr/bin/ld: register.cc:(.text+0x1311): undefined reference to `tflite::ops::builtin::Register_ASSIGN_VARIABLE()'
/usr/bin/ld: register.cc:(.text+0x132f): undefined reference to `tflite::ops::builtin::Register_MULTINOMIAL()'
/usr/bin/ld: register.cc:(.text+0x134d): undefined reference to `tflite::ops::builtin::Register_RANDOM_STANDARD_NORMAL()'
/usr/bin/ld: register.cc:(.text+0x136b): undefined reference to `tflite::ops::builtin::Register_BUCKETIZE()'
/usr/bin/ld: register.cc:(.text+0x1389): undefined reference to `tflite::ops::builtin::Register_RANDOM_UNIFORM()'
/usr/bin/ld: register.cc:(.text+0x13a7): undefined reference to `tflite::ops::builtin::Register_GELU()'
/usr/bin/ld: register.cc:(.text+0x13cb): undefined reference to `tflite::ops::builtin::Register_DYNAMIC_UPDATE_SLICE()'
/usr/bin/ld: register.cc:(.text+0x13e9): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_PROD()'
/usr/bin/ld: register.cc:(.text+0x1407): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_MAX()'
/usr/bin/ld: register.cc:(.text+0x1425): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_MIN()'
/usr/bin/ld: register.cc:(.text+0x1443): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_SUM()'
/usr/bin/ld: register.cc:(.text+0x1461): undefined reference to `tflite::ops::builtin::Register_ATAN2()'
/usr/bin/ld: register.cc:(.text+0x147f): undefined reference to `tflite::ops::builtin::Register_SIGN()'
/usr/bin/ld: register.cc:(.text+0x14a3): undefined reference to `tflite::ops::builtin::Register_BITCAST()'
/usr/bin/ld: register.cc:(.text+0x14c1): undefined reference to `tflite::ops::builtin::Register_BITWISE_XOR()'
/usr/bin/ld: register.cc:(.text+0x14df): undefined reference to `tflite::ops::builtin::Register_RIGHT_SHIFT()'
/usr/bin/ld: register.cc:(.text+0x14fd): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_SCATTER()'
/usr/bin/ld: register.cc:(.text+0x151b): undefined reference to `tflite::ops::builtin::Register_DILATE()'
/usr/bin/ld: register.cc:(.text+0x1539): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_RNG_BIT_GENERATOR()'
/usr/bin/ld: register.cc:(.text+0x1557): undefined reference to `tflite::ops::builtin::Register_REDUCE_WINDOW()'
/usr/bin/ld: register.cc:(.text+0x1575): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_REDUCE_WINDOW()'
/usr/bin/ld: register.cc:(.text+0x1593): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_GATHER()'
/usr/bin/ld: register.cc:(.text+0x15b1): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_ADD()'
/usr/bin/ld: register.cc:(.text+0x15cf): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MULTIPLY()'
/usr/bin/ld: register.cc:(.text+0x15ed): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MAXIMUM()'
/usr/bin/ld: register.cc:(.text+0x160b): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MINIMUM()'
/usr/bin/ld: register.cc:(.text+0x1629): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_PAD()'
/usr/bin/ld: register.cc:(.text+0x1647): undefined reference to `tflite::ops::custom::Register_NUMERIC_VERIFY()'
/usr/bin/ld: register.cc:(.text+0x166a): undefined reference to `tflite::ops::custom::Register_MFCC()'
/usr/bin/ld: register.cc:(.text+0x168d): undefined reference to `tflite::ops::custom::Register_AUDIO_SPECTROGRAM()'
/usr/bin/ld: register.cc:(.text+0x16b0): undefined reference to `tflite::ops::custom::Register_DETECTION_POSTPROCESS()'
/usr/bin/ld: tensorflow-lite/libtensorflow-lite.a(xnnpack_delegate.cc.o): in function `tflite::xnnpack::(anonymous namespace)::Delegate::Delegate(TfLiteXNNPackDelegateOptions const*, xnn_workspace*, TfLiteContext*)':
xnnpack_delegate.cc:(.text+0x1368): undefined reference to `tflite::CpuBackendContext::GetFromContext(TfLiteContext*)'
/usr/bin/ld: xnnpack_delegate.cc:(.text+0x1370): undefined reference to `tflite::CpuBackendContext::get_xnnpack_threadpool()'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/minimal.dir/build.make:185: minimal] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1362: CMakeFiles/minimal.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
```

## Error on Linux system with Ubuntu 20.04

```
[100%] Linking CXX executable minimal
/usr/bin/ld: tensorflow-lite/libtensorflow-lite.a(register.cc.o): in function `tflite::ops::builtin::BuiltinOpResolver::BuiltinOpResolver()':
register.cc:(.text+0x1e5): undefined reference to `tflite::ops::builtin::Register_ABS()'
/usr/bin/ld: register.cc:(.text+0x205): undefined reference to `tflite::ops::builtin::Register_HARD_SWISH()'
/usr/bin/ld: register.cc:(.text+0x21f): undefined reference to `tflite::ops::builtin::Register_RELU()'
/usr/bin/ld: register.cc:(.text+0x23f): undefined reference to `tflite::ops::builtin::Register_RELU_N1_TO_1()'
/usr/bin/ld: register.cc:(.text+0x259): undefined reference to `tflite::ops::builtin::Register_RELU_0_TO_1()'
/usr/bin/ld: register.cc:(.text+0x273): undefined reference to `tflite::ops::builtin::Register_RELU6()'
/usr/bin/ld: register.cc:(.text+0x293): undefined reference to `tflite::ops::builtin::Register_TANH()'
/usr/bin/ld: register.cc:(.text+0x2b3): undefined reference to `tflite::ops::builtin::Register_LOGISTIC()'
/usr/bin/ld: register.cc:(.text+0x2d3): undefined reference to `tflite::ops::builtin::Register_AVERAGE_POOL_2D()'
/usr/bin/ld: register.cc:(.text+0x2f3): undefined reference to `tflite::ops::builtin::Register_MAX_POOL_2D()'
/usr/bin/ld: register.cc:(.text+0x313): undefined reference to `tflite::ops::builtin::Register_L2_POOL_2D()'
/usr/bin/ld: register.cc:(.text+0x32d): undefined reference to `tflite::ops::builtin::Register_CONV_2D()'
/usr/bin/ld: register.cc:(.text+0x34d): undefined reference to `tflite::ops::builtin::Register_DEPTHWISE_CONV_2D()'
/usr/bin/ld: register.cc:(.text+0x36d): undefined reference to `tflite::ops::builtin::Register_SVDF()'
/usr/bin/ld: register.cc:(.text+0x38d): undefined reference to `tflite::ops::builtin::Register_RNN()'
/usr/bin/ld: register.cc:(.text+0x3ad): undefined reference to `tflite::ops::builtin::Register_BIDIRECTIONAL_SEQUENCE_RNN()'
/usr/bin/ld: register.cc:(.text+0x3cd): undefined reference to `tflite::ops::builtin::Register_UNIDIRECTIONAL_SEQUENCE_RNN()'
/usr/bin/ld: register.cc:(.text+0x3ed): undefined reference to `tflite::ops::builtin::Register_EMBEDDING_LOOKUP()'
/usr/bin/ld: register.cc:(.text+0x40d): undefined reference to `tflite::ops::builtin::Register_EMBEDDING_LOOKUP_SPARSE()'
/usr/bin/ld: register.cc:(.text+0x427): undefined reference to `tflite::ops::builtin::Register_FULLY_CONNECTED()'
/usr/bin/ld: register.cc:(.text+0x447): undefined reference to `tflite::ops::builtin::Register_LSH_PROJECTION()'
/usr/bin/ld: register.cc:(.text+0x461): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_LOOKUP()'
/usr/bin/ld: register.cc:(.text+0x47b): undefined reference to `tflite::ops::builtin::Register_SOFTMAX()'
/usr/bin/ld: register.cc:(.text+0x49b): undefined reference to `tflite::ops::builtin::Register_CONCATENATION()'
/usr/bin/ld: register.cc:(.text+0x4bb): undefined reference to `tflite::ops::builtin::Register_ADD()'
/usr/bin/ld: register.cc:(.text+0x4d8): undefined reference to `tflite::ops::builtin::Register_SPACE_TO_BATCH_ND()'
/usr/bin/ld: register.cc:(.text+0x4f8): undefined reference to `tflite::ops::builtin::Register_BATCH_TO_SPACE_ND()'
/usr/bin/ld: register.cc:(.text+0x518): undefined reference to `tflite::ops::builtin::Register_MUL()'
/usr/bin/ld: register.cc:(.text+0x538): undefined reference to `tflite::ops::builtin::Register_L2_NORMALIZATION()'
/usr/bin/ld: register.cc:(.text+0x558): undefined reference to `tflite::ops::builtin::Register_LOCAL_RESPONSE_NORMALIZATION()'
/usr/bin/ld: register.cc:(.text+0x572): undefined reference to `tflite::ops::builtin::Register_LSTM()'
/usr/bin/ld: register.cc:(.text+0x592): undefined reference to `tflite::ops::builtin::Register_BIDIRECTIONAL_SEQUENCE_LSTM()'
/usr/bin/ld: register.cc:(.text+0x5b2): undefined reference to `tflite::ops::builtin::Register_UNIDIRECTIONAL_SEQUENCE_LSTM()'
/usr/bin/ld: register.cc:(.text+0x5d2): undefined reference to `tflite::ops::builtin::Register_PAD()'
/usr/bin/ld: register.cc:(.text+0x5f2): undefined reference to `tflite::ops::builtin::Register_PADV2()'
/usr/bin/ld: register.cc:(.text+0x612): undefined reference to `tflite::ops::builtin::Register_RESHAPE()'
/usr/bin/ld: register.cc:(.text+0x62c): undefined reference to `tflite::ops::builtin::Register_RESIZE_BILINEAR()'
/usr/bin/ld: register.cc:(.text+0x64c): undefined reference to `tflite::ops::builtin::Register_RESIZE_NEAREST_NEIGHBOR()'
/usr/bin/ld: register.cc:(.text+0x66c): undefined reference to `tflite::ops::builtin::Register_SKIP_GRAM()'
/usr/bin/ld: register.cc:(.text+0x686): undefined reference to `tflite::ops::builtin::Register_SPACE_TO_DEPTH()'
/usr/bin/ld: register.cc:(.text+0x6a6): undefined reference to `tflite::ops::builtin::Register_DEPTH_TO_SPACE()'
/usr/bin/ld: register.cc:(.text+0x6c6): undefined reference to `tflite::ops::builtin::Register_GATHER()'
/usr/bin/ld: register.cc:(.text+0x6e6): undefined reference to `tflite::ops::builtin::Register_TRANSPOSE()'
/usr/bin/ld: register.cc:(.text+0x706): undefined reference to `tflite::ops::builtin::Register_MEAN()'
/usr/bin/ld: register.cc:(.text+0x726): undefined reference to `tflite::ops::builtin::Register_DIV()'
/usr/bin/ld: register.cc:(.text+0x746): undefined reference to `tflite::ops::builtin::Register_SUB()'
/usr/bin/ld: register.cc:(.text+0x766): undefined reference to `tflite::ops::builtin::Register_SPLIT()'
/usr/bin/ld: register.cc:(.text+0x786): undefined reference to `tflite::ops::builtin::Register_SPLIT_V()'
/usr/bin/ld: register.cc:(.text+0x7a6): undefined reference to `tflite::ops::builtin::Register_SQUEEZE()'
/usr/bin/ld: register.cc:(.text+0x7c6): undefined reference to `tflite::ops::builtin::Register_STRIDED_SLICE()'
/usr/bin/ld: register.cc:(.text+0x7e6): undefined reference to `tflite::ops::builtin::Register_EXP()'
/usr/bin/ld: register.cc:(.text+0x806): undefined reference to `tflite::ops::builtin::Register_TOPK_V2()'
/usr/bin/ld: register.cc:(.text+0x826): undefined reference to `tflite::ops::builtin::Register_LOG()'
/usr/bin/ld: register.cc:(.text+0x846): undefined reference to `tflite::ops::builtin::Register_LOG_SOFTMAX()'
/usr/bin/ld: register.cc:(.text+0x866): undefined reference to `tflite::ops::builtin::Register_CAST()'
/usr/bin/ld: register.cc:(.text+0x886): undefined reference to `tflite::ops::builtin::Register_DEQUANTIZE()'
/usr/bin/ld: register.cc:(.text+0x8a6): undefined reference to `tflite::ops::builtin::Register_PRELU()'
/usr/bin/ld: register.cc:(.text+0x8c0): undefined reference to `tflite::ops::builtin::Register_MAXIMUM()'
/usr/bin/ld: register.cc:(.text+0x8e0): undefined reference to `tflite::ops::builtin::Register_MINIMUM()'
/usr/bin/ld: register.cc:(.text+0x900): undefined reference to `tflite::ops::builtin::Register_ARG_MAX()'
/usr/bin/ld: register.cc:(.text+0x920): undefined reference to `tflite::ops::builtin::Register_ARG_MIN()'
/usr/bin/ld: register.cc:(.text+0x940): undefined reference to `tflite::ops::builtin::Register_GREATER()'
/usr/bin/ld: register.cc:(.text+0x960): undefined reference to `tflite::ops::builtin::Register_GREATER_EQUAL()'
/usr/bin/ld: register.cc:(.text+0x980): undefined reference to `tflite::ops::builtin::Register_LESS()'
/usr/bin/ld: register.cc:(.text+0x9a0): undefined reference to `tflite::ops::builtin::Register_LESS_EQUAL()'
/usr/bin/ld: register.cc:(.text+0x9c0): undefined reference to `tflite::ops::builtin::Register_FLOOR()'
/usr/bin/ld: register.cc:(.text+0x9da): undefined reference to `tflite::ops::builtin::Register_CEIL()'
/usr/bin/ld: register.cc:(.text+0x9f4): undefined reference to `tflite::ops::builtin::Register_ROUND()'
/usr/bin/ld: register.cc:(.text+0xa0e): undefined reference to `tflite::ops::builtin::Register_NEG()'
/usr/bin/ld: register.cc:(.text+0xa28): undefined reference to `tflite::ops::builtin::Register_SELECT()'
/usr/bin/ld: register.cc:(.text+0xa48): undefined reference to `tflite::ops::builtin::Register_SELECT_V2()'
/usr/bin/ld: register.cc:(.text+0xa68): undefined reference to `tflite::ops::builtin::Register_SLICE()'
/usr/bin/ld: register.cc:(.text+0xa88): undefined reference to `tflite::ops::builtin::Register_SIN()'
/usr/bin/ld: register.cc:(.text+0xaa2): undefined reference to `tflite::ops::builtin::Register_COS()'
/usr/bin/ld: register.cc:(.text+0xabc): undefined reference to `tflite::ops::builtin::Register_TRANSPOSE_CONV()'
/usr/bin/ld: register.cc:(.text+0xadc): undefined reference to `tflite::ops::builtin::Register_TILE()'
/usr/bin/ld: register.cc:(.text+0xafc): undefined reference to `tflite::ops::builtin::Register_SUM()'
/usr/bin/ld: register.cc:(.text+0xb1c): undefined reference to `tflite::ops::builtin::Register_REDUCE_PROD()'
/usr/bin/ld: register.cc:(.text+0xb3c): undefined reference to `tflite::ops::builtin::Register_REDUCE_MAX()'
/usr/bin/ld: register.cc:(.text+0xb5c): undefined reference to `tflite::ops::builtin::Register_REDUCE_MIN()'
/usr/bin/ld: register.cc:(.text+0xb7c): undefined reference to `tflite::ops::builtin::Register_REDUCE_ANY()'
/usr/bin/ld: register.cc:(.text+0xb96): undefined reference to `tflite::ops::builtin::Register_REDUCE_ALL()'
/usr/bin/ld: register.cc:(.text+0xbb0): undefined reference to `tflite::ops::builtin::Register_EXPAND_DIMS()'
/usr/bin/ld: register.cc:(.text+0xbca): undefined reference to `tflite::ops::builtin::Register_SPARSE_TO_DENSE()'
/usr/bin/ld: register.cc:(.text+0xbea): undefined reference to `tflite::ops::builtin::Register_EQUAL()'
/usr/bin/ld: register.cc:(.text+0xc0a): undefined reference to `tflite::ops::builtin::Register_NOT_EQUAL()'
/usr/bin/ld: register.cc:(.text+0xc2a): undefined reference to `tflite::ops::builtin::Register_SQRT()'
/usr/bin/ld: register.cc:(.text+0xc44): undefined reference to `tflite::ops::builtin::Register_RSQRT()'
/usr/bin/ld: register.cc:(.text+0xc64): undefined reference to `tflite::ops::builtin::Register_SHAPE()'
/usr/bin/ld: register.cc:(.text+0xc7e): undefined reference to `tflite::ops::builtin::Register_RANK()'
/usr/bin/ld: register.cc:(.text+0xc98): undefined reference to `tflite::ops::builtin::Register_POW()'
/usr/bin/ld: register.cc:(.text+0xcb2): undefined reference to `tflite::ops::builtin::Register_FAKE_QUANT()'
/usr/bin/ld: register.cc:(.text+0xcd2): undefined reference to `tflite::ops::builtin::Register_PACK()'
/usr/bin/ld: register.cc:(.text+0xcf2): undefined reference to `tflite::ops::builtin::Register_ONE_HOT()'
/usr/bin/ld: register.cc:(.text+0xd0c): undefined reference to `tflite::ops::builtin::Register_LOGICAL_OR()'
/usr/bin/ld: register.cc:(.text+0xd26): undefined reference to `tflite::ops::builtin::Register_LOGICAL_AND()'
/usr/bin/ld: register.cc:(.text+0xd40): undefined reference to `tflite::ops::builtin::Register_LOGICAL_NOT()'
/usr/bin/ld: register.cc:(.text+0xd5a): undefined reference to `tflite::ops::builtin::Register_UNPACK()'
/usr/bin/ld: register.cc:(.text+0xd7a): undefined reference to `tflite::ops::builtin::Register_FLOOR_DIV()'
/usr/bin/ld: register.cc:(.text+0xd9a): undefined reference to `tflite::ops::builtin::Register_SQUARE()'
/usr/bin/ld: register.cc:(.text+0xdb4): undefined reference to `tflite::ops::builtin::Register_ZEROS_LIKE()'
/usr/bin/ld: register.cc:(.text+0xdce): undefined reference to `tflite::ops::builtin::Register_FLOOR_MOD()'
/usr/bin/ld: register.cc:(.text+0xdee): undefined reference to `tflite::ops::builtin::Register_RANGE()'
/usr/bin/ld: register.cc:(.text+0xe0e): undefined reference to `tflite::ops::builtin::Register_LEAKY_RELU()'
/usr/bin/ld: register.cc:(.text+0xe2e): undefined reference to `tflite::ops::builtin::Register_SQUARED_DIFFERENCE()'
/usr/bin/ld: register.cc:(.text+0xe4e): undefined reference to `tflite::ops::builtin::Register_FILL()'
/usr/bin/ld: register.cc:(.text+0xe6e): undefined reference to `tflite::ops::builtin::Register_MIRROR_PAD()'
/usr/bin/ld: register.cc:(.text+0xe8e): undefined reference to `tflite::ops::builtin::Register_UNIQUE()'
/usr/bin/ld: register.cc:(.text+0xea8): undefined reference to `tflite::ops::builtin::Register_REVERSE_V2()'
/usr/bin/ld: register.cc:(.text+0xec8): undefined reference to `tflite::ops::builtin::Register_ADD_N()'
/usr/bin/ld: register.cc:(.text+0xee2): undefined reference to `tflite::ops::builtin::Register_GATHER_ND()'
/usr/bin/ld: register.cc:(.text+0xf02): undefined reference to `tflite::ops::builtin::Register_WHERE()'
/usr/bin/ld: register.cc:(.text+0xf22): undefined reference to `tflite::ops::builtin::Register_ELU()'
/usr/bin/ld: register.cc:(.text+0xf3c): undefined reference to `tflite::ops::builtin::Register_REVERSE_SEQUENCE()'
/usr/bin/ld: register.cc:(.text+0xf56): undefined reference to `tflite::ops::builtin::Register_MATRIX_DIAG()'
/usr/bin/ld: register.cc:(.text+0xf70): undefined reference to `tflite::ops::builtin::Register_QUANTIZE()'
/usr/bin/ld: register.cc:(.text+0xf90): undefined reference to `tflite::ops::builtin::Register_MATRIX_SET_DIAG()'
/usr/bin/ld: register.cc:(.text+0xfaa): undefined reference to `tflite::ops::builtin::Register_IF()'
/usr/bin/ld: register.cc:(.text+0xfc4): undefined reference to `tflite::ops::builtin::Register_WHILE()'
/usr/bin/ld: register.cc:(.text+0xfde): undefined reference to `tflite::ops::builtin::Register_NON_MAX_SUPPRESSION_V4()'
/usr/bin/ld: register.cc:(.text+0xff8): undefined reference to `tflite::ops::builtin::Register_NON_MAX_SUPPRESSION_V5()'
/usr/bin/ld: register.cc:(.text+0x1012): undefined reference to `tflite::ops::builtin::Register_SCATTER_ND()'
/usr/bin/ld: register.cc:(.text+0x102c): undefined reference to `tflite::ops::builtin::Register_DENSIFY()'
/usr/bin/ld: register.cc:(.text+0x1046): undefined reference to `tflite::ops::builtin::Register_SEGMENT_SUM()'
/usr/bin/ld: register.cc:(.text+0x1060): undefined reference to `tflite::ops::builtin::Register_BATCH_MATMUL()'
/usr/bin/ld: register.cc:(.text+0x1080): undefined reference to `tflite::ops::builtin::Register_CUMSUM()'
/usr/bin/ld: register.cc:(.text+0x109a): undefined reference to `tflite::ops::builtin::Register_BROADCAST_TO()'
/usr/bin/ld: register.cc:(.text+0x10ba): undefined reference to `tflite::ops::builtin::Register_CALL_ONCE()'
/usr/bin/ld: register.cc:(.text+0x10d4): undefined reference to `tflite::ops::builtin::Register_RFFT2D()'
/usr/bin/ld: register.cc:(.text+0x10ee): undefined reference to `tflite::ops::builtin::Register_CONV_3D()'
/usr/bin/ld: register.cc:(.text+0x1108): undefined reference to `tflite::ops::builtin::Register_IMAG()'
/usr/bin/ld: register.cc:(.text+0x1122): undefined reference to `tflite::ops::builtin::Register_REAL()'
/usr/bin/ld: register.cc:(.text+0x113c): undefined reference to `tflite::ops::builtin::Register_COMPLEX_ABS()'
/usr/bin/ld: register.cc:(.text+0x1156): undefined reference to `tflite::ops::builtin::Register_BROADCAST_ARGS()'
/usr/bin/ld: register.cc:(.text+0x1170): undefined reference to `tflite::ops::builtin::Register_HASHTABLE()'
/usr/bin/ld: register.cc:(.text+0x118a): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_FIND()'
/usr/bin/ld: register.cc:(.text+0x11a4): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_IMPORT()'
/usr/bin/ld: register.cc:(.text+0x11be): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_SIZE()'
/usr/bin/ld: register.cc:(.text+0x11d8): undefined reference to `tflite::ops::builtin::Register_CONV_3D_TRANSPOSE()'
/usr/bin/ld: register.cc:(.text+0x11f2): undefined reference to `tflite::ops::builtin::Register_VAR_HANDLE()'
/usr/bin/ld: register.cc:(.text+0x120c): undefined reference to `tflite::ops::builtin::Register_READ_VARIABLE()'
/usr/bin/ld: register.cc:(.text+0x1226): undefined reference to `tflite::ops::builtin::Register_ASSIGN_VARIABLE()'
/usr/bin/ld: register.cc:(.text+0x1240): undefined reference to `tflite::ops::builtin::Register_MULTINOMIAL()'
/usr/bin/ld: register.cc:(.text+0x125a): undefined reference to `tflite::ops::builtin::Register_RANDOM_STANDARD_NORMAL()'
/usr/bin/ld: register.cc:(.text+0x1274): undefined reference to `tflite::ops::builtin::Register_BUCKETIZE()'
/usr/bin/ld: register.cc:(.text+0x128e): undefined reference to `tflite::ops::builtin::Register_RANDOM_UNIFORM()'
/usr/bin/ld: register.cc:(.text+0x12a8): undefined reference to `tflite::ops::builtin::Register_GELU()'
/usr/bin/ld: register.cc:(.text+0x12c8): undefined reference to `tflite::ops::builtin::Register_DYNAMIC_UPDATE_SLICE()'
/usr/bin/ld: register.cc:(.text+0x12e2): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_PROD()'
/usr/bin/ld: register.cc:(.text+0x12fc): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_MAX()'
/usr/bin/ld: register.cc:(.text+0x1316): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_MIN()'
/usr/bin/ld: register.cc:(.text+0x1330): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_SUM()'
/usr/bin/ld: register.cc:(.text+0x134a): undefined reference to `tflite::ops::builtin::Register_ATAN2()'
/usr/bin/ld: register.cc:(.text+0x1364): undefined reference to `tflite::ops::builtin::Register_SIGN()'
/usr/bin/ld: register.cc:(.text+0x1384): undefined reference to `tflite::ops::builtin::Register_BITCAST()'
/usr/bin/ld: register.cc:(.text+0x139e): undefined reference to `tflite::ops::builtin::Register_BITWISE_XOR()'
/usr/bin/ld: register.cc:(.text+0x13b8): undefined reference to `tflite::ops::builtin::Register_RIGHT_SHIFT()'
/usr/bin/ld: register.cc:(.text+0x13d2): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_SCATTER()'
/usr/bin/ld: register.cc:(.text+0x13ec): undefined reference to `tflite::ops::builtin::Register_DILATE()'
/usr/bin/ld: register.cc:(.text+0x1406): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_RNG_BIT_GENERATOR()'
/usr/bin/ld: register.cc:(.text+0x1420): undefined reference to `tflite::ops::builtin::Register_REDUCE_WINDOW()'
/usr/bin/ld: register.cc:(.text+0x143a): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_REDUCE_WINDOW()'
/usr/bin/ld: register.cc:(.text+0x1454): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_GATHER()'
/usr/bin/ld: register.cc:(.text+0x146e): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_ADD()'
/usr/bin/ld: register.cc:(.text+0x1488): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MULTIPLY()'
/usr/bin/ld: register.cc:(.text+0x14a2): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MAXIMUM()'
/usr/bin/ld: register.cc:(.text+0x14bc): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MINIMUM()'
/usr/bin/ld: register.cc:(.text+0x14d6): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_PAD()'
/usr/bin/ld: register.cc:(.text+0x14f0): undefined reference to `tflite::ops::custom::Register_NUMERIC_VERIFY()'
/usr/bin/ld: register.cc:(.text+0x150c): undefined reference to `tflite::ops::custom::Register_MFCC()'
/usr/bin/ld: register.cc:(.text+0x1528): undefined reference to `tflite::ops::custom::Register_AUDIO_SPECTROGRAM()'
/usr/bin/ld: register.cc:(.text+0x1544): undefined reference to `tflite::ops::custom::Register_DETECTION_POSTPROCESS()'
/usr/bin/ld: tensorflow-lite/libtensorflow-lite.a(xnnpack_delegate.cc.o): in function `TfLiteXNNPackDelegateCreateWithThreadpool':
xnnpack_delegate.cc:(.text+0xab0f): undefined reference to `tflite::CpuBackendContext::GetFromContext(TfLiteContext*)'
/usr/bin/ld: xnnpack_delegate.cc:(.text+0xab17): undefined reference to `tflite::CpuBackendContext::get_xnnpack_threadpool()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/minimal.dir/build.make:172: minimal] Error 1
make[1]: *** [CMakeFiles/Makefile2:1511: CMakeFiles/minimal.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

```

### Standalone code to reproduce the issue

```shell
Just follow the steps in: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/minimal
```


### Relevant log output

_No response_