Repository: tensorflow
Issue: tflite-support build is failing for elinux_aarch6
Labels: stat:awaiting tensorflower,type:build/install,comp:lite,subtype: ubuntu/linux

### Issue type

Build/Install

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

Yes

### Source

source

### TensorFlow version

tflite-support 0.4.4

### Custom code

No

### OS platform and distribution

Ubuntu 22.04 Arm

### Mobile device

NXP i.mx8 plus

### Python version

3.10.12

### Bazel version

5.1.1

### GCC/compiler version

11.4.0

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

pip install tflite-support on the NXP i.mx8 plus board gets a very old version of the package (0.1.0)

I need the 0.4.4 wheel built for arm64, to make use of TextEmbedder.

I expect the bazel build to succeed on the Ubuntu 22.04 arm64 based machine that I have (AWS T4G EC2 instance) from where I plan to take the wheel and deploy to the NXP device. 

The build is failing.

### Standalone code to reproduce the issue

```shell
1. Obtain the source code from https://github.com/tensorflow/tflite-support/archive/refs/tags/v0.4.4.tar.gz

2. Install bazel using https://github.com/bazelbuild/bazelisk/releases/download/v1.22.0/bazelisk-linux-arm64

3. Modify tensorflow_lite_support/tools/pip_package/rpi/build_arm_pip_package.sh to remove build for elinux_armhf, as I need only the elinux_aarch64 to be built.

4. Run tensorflow_lite_support/tools/pip_package/rpi/build_arm_pip_package.sh

It results in the errors show in in the log output. Same issue occurs when building from nightly as well as 0.4.3.
```


### Relevant log output

```shell
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/com_google_absl/absl/types/BUILD.bazel:154:11: Compiling absl/types/bad_optional_access.cc failed: (Exit 2): aarch64-none-linux-gnu-gcc failed: error executing command
  (cd /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/execroot/org_tensorflow_lite_support && \
  exec env - \
    PATH=/home/ubuntu/.cache/bazelisk/downloads/sha256/a590a28608772e779efc0c29bb678cd2a150deb27a9f8c557cc1d2b131a779ef/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ubuntu/bazelisk \
    PWD=/proc/self/cwd \
    TF2_BEHAVIOR=1 \
  /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/bin/aarch64-none-linux-gnu-gcc -fstack-protector -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/lib/gcc/aarch64-none-linux-gnu/11.3.1/include -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/lib/gcc/aarch64-none-linux-gnu/11.3.1/include-fixed -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/aarch64-none-linux-gnu/include/c++/11.3.1/ -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/aarch64-none-linux-gnu/libc/usr/include/ -isystem /usr/include/python3.5 -isystem /usr/include/ -MD -MF bazel-out/aarch64-opt/bin/external/com_google_absl/absl/types/_objs/bad_optional_access/bad_optional_access.pic.d '-frandom-seed=bazel-out/aarch64-opt/bin/external/com_google_absl/absl/types/_objs/bad_optional_access/bad_optional_access.pic.o' -fPIC -iquote external/com_google_absl -iquote bazel-out/aarch64-opt/bin/external/com_google_absl -w '-std=c++17' -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -no-canonical-prefixes -fno-canonical-system-headers -c external/com_google_absl/absl/types/bad_optional_access.cc -o bazel-out/aarch64-opt/bin/external/com_google_absl/absl/types/_objs/bad_optional_access/bad_optional_access.pic.o)
# Configuration: 2e794a98601ad29846b443b77992a53d92a5a762ca0ee677f9a8aca3a1760abb
# Execution platform: @local_execution_config_platform//:platform
/home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/bin/aarch64-none-linux-gnu-gcc: 1: Syntax error: Unterminated quoted string
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/com_google_absl/absl/strings/BUILD.bazel:30:11: Compiling absl/strings/escaping.cc failed: (Exit 2): aarch64-none-linux-gnu-gcc failed: error executing command
  (cd /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/execroot/org_tensorflow_lite_support && \
  exec env - \
    PATH=/home/ubuntu/.cache/bazelisk/downloads/sha256/a590a28608772e779efc0c29bb678cd2a150deb27a9f8c557cc1d2b131a779ef/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ubuntu/bazelisk \
    PWD=/proc/self/cwd \
    TF2_BEHAVIOR=1 \
  /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/bin/aarch64-none-linux-gnu-gcc -fstack-protector -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/lib/gcc/aarch64-none-linux-gnu/11.3.1/include -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/lib/gcc/aarch64-none-linux-gnu/11.3.1/include-fixed -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/aarch64-none-linux-gnu/include/c++/11.3.1/ -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/aarch64-none-linux-gnu/libc/usr/include/ -isystem /usr/include/python3.5 -isystem /usr/include/ -MD -MF bazel-out/aarch64-opt/bin/external/com_google_absl/absl/strings/_objs/strings/escaping.pic.d '-frandom-seed=bazel-out/aarch64-opt/bin/external/com_google_absl/absl/strings/_objs/strings/escaping.pic.o' -fPIC -iquote external/com_google_absl -iquote bazel-out/aarch64-opt/bin/external/com_google_absl -w '-std=c++17' -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -no-canonical-prefixes -fno-canonical-system-headers -c external/com_google_absl/absl/strings/escaping.cc -o bazel-out/aarch64-opt/bin/external/com_google_absl/absl/strings/_objs/strings/escaping.pic.o)
# Configuration: 2e794a98601ad29846b443b77992a53d92a5a762ca0ee677f9a8aca3a1760abb
# Execution platform: @local_execution_config_platform//:platform
/home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/bin/aarch64-none-linux-gnu-gcc: 1: Syntax error: Unterminated quoted string
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/com_google_absl/absl/strings/BUILD.bazel:30:11: Compiling absl/strings/internal/memutil.cc failed: (Exit 2): aarch64-none-linux-gnu-gcc failed: error executing command
  (cd /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/execroot/org_tensorflow_lite_support && \
  exec env - \
    PATH=/home/ubuntu/.cache/bazelisk/downloads/sha256/a590a28608772e779efc0c29bb678cd2a150deb27a9f8c557cc1d2b131a779ef/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ubuntu/bazelisk \
    PWD=/proc/self/cwd \
    TF2_BEHAVIOR=1 \
  /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/bin/aarch64-none-linux-gnu-gcc -fstack-protector -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/lib/gcc/aarch64-none-linux-gnu/11.3.1/include -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/lib/gcc/aarch64-none-linux-gnu/11.3.1/include-fixed -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/aarch64-none-linux-gnu/include/c++/11.3.1/ -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/aarch64-none-linux-gnu/libc/usr/include/ -isystem /usr/include/python3.5 -isystem /usr/include/ -MD -MF bazel-out/aarch64-opt/bin/external/com_google_absl/absl/strings/_objs/strings/memutil.pic.d '-frandom-seed=bazel-out/aarch64-opt/bin/external/com_google_absl/absl/strings/_objs/strings/memutil.pic.o' -fPIC -iquote external/com_google_absl -iquote bazel-out/aarch64-opt/bin/external/com_google_absl -w '-std=c++17' -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -no-canonical-prefixes -fno-canonical-system-headers -c external/com_google_absl/absl/strings/internal/memutil.cc -o bazel-out/aarch64-opt/bin/external/com_google_absl/absl/strings/_objs/strings/memutil.pic.o)
# Configuration: 2e794a98601ad29846b443b77992a53d92a5a762ca0ee677f9a8aca3a1760abb
# Execution platform: @local_execution_config_platform//:platform
/home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/bin/aarch64-none-linux-gnu-gcc: 1: Syntax error: Unterminated quoted string
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/com_google_absl/absl/strings/BUILD.bazel:30:11: Compiling absl/strings/string_view.cc failed: (Exit 2): aarch64-none-linux-gnu-gcc failed: error executing command
  (cd /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/execroot/org_tensorflow_lite_support && \
  exec env - \
    PATH=/home/ubuntu/.cache/bazelisk/downloads/sha256/a590a28608772e779efc0c29bb678cd2a150deb27a9f8c557cc1d2b131a779ef/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ubuntu/bazelisk \
    PWD=/proc/self/cwd \
    TF2_BEHAVIOR=1 \
  /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/bin/aarch64-none-linux-gnu-gcc -fstack-protector -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/lib/gcc/aarch64-none-linux-gnu/11.3.1/include -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/lib/gcc/aarch64-none-linux-gnu/11.3.1/include-fixed -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/aarch64-none-linux-gnu/include/c++/11.3.1/ -isystem /home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/aarch64-none-linux-gnu/libc/usr/include/ -isystem /usr/include/python3.5 -isystem /usr/include/ -MD -MF bazel-out/aarch64-opt/bin/external/com_google_absl/absl/strings/_objs/strings/string_view.pic.d '-frandom-seed=bazel-out/aarch64-opt/bin/external/com_google_absl/absl/strings/_objs/strings/string_view.pic.o' -fPIC -iquote external/com_google_absl -iquote bazel-out/aarch64-opt/bin/external/com_google_absl -w '-std=c++17' -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -no-canonical-prefixes -fno-canonical-system-headers -c external/com_google_absl/absl/strings/string_view.cc -o bazel-out/aarch64-opt/bin/external/com_google_absl/absl/strings/_objs/strings/string_view.pic.o)
# Configuration: 2e794a98601ad29846b443b77992a53d92a5a762ca0ee677f9a8aca3a1760abb
# Execution platform: @local_execution_config_platform//:platform
/home/ubuntu/.cache/bazel/_bazel_ubuntu/54ed875be5e8bbb87133512fb093e2b6/external/aarch64_linux_toolchain/bin/aarch64-none-linux-gnu-gcc: 1: Syntax error: Unterminated quoted string
Target //tensorflow_lite_support/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 31.453s, Critical Path: 0.47s
INFO: 33 processes: 30 internal, 3 local.
FAILED: Build did NOT complete successfully
```