tensorflow: Tf_lite fails to compile in v2.18.0-rc0 in Ubuntu

Issue type

Build/Install

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

2.18.0-rc0

Custom code

No

OS platform and distribution

ubuntu 22.04, ubuntu 24.04

Mobile device

No response

Python version

3.10, 3.12

Bazel version

6.5

GCC/compiler version

No response

CUDA/cuDNN version

GPU model and memory

Current behavior?

When follow the normal instructions to build tf_lite as indicated, compilation fails, log is attached.

Standalone code to reproduce the issue

Follow the normal instructions to build tf_lite as indicated here: https://ai.google.dev/edge/litert/build/cmake_pip

Compilation fails, log is attached.

Relevant log output

Full log: ubuntu22.04.log ubuntu24.04.log

/usr/bin/ranlib libmicrokernels-prod.a
gmake[3]: Leaving directory '/tensorflow/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3.12/cmake_build'
[ 69%] Built target microkernels-prod
gmake[2]: Leaving directory '/tensorflow/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3.12/cmake_build'
gmake[1]: *** [CMakeFiles/Makefile2:1526: CMakeFiles/_pywrap_tensorflow_interpreter_wrapper.dir/rule] Error 2
gmake[1]: Leaving directory '/tensorflow/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3.12/cmake_build'
gmake: *** [Makefile:208: _pywrap_tensorflow_interpreter_wrapper] Error 2

make: *** [Makefile:72: docker-build] Error 2
make: Leaving directory '/home/----/Software/tensorflow-dir/tflite_runtime/tensorflow/tensorflow/lite/tools/pip_package'

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (13 by maintainers)

Most upvoted comments

Hi, @feranick

Thank you for providing the steps I tried with r2.17 and it’s working as expected for reference I’ve added output log below so let me try with 2.18.0rc0 pre-release and will update you it is working or not. Thank you

1. With r2.17

Output can be found here:
+ find /home/gaikwadrahul/tflite-76908/tensorflow_src/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/dist
/home/gaikwadrahul/tflite-76908/tensorflow_src/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/dist
/home/gaikwadrahul/tflite-76908/tensorflow_src/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/dist/tflite_runtime-2.17.1-cp312-cp312-linux_x86_64.whl
/home/gaikwadrahul/tflite-76908/tensorflow_src/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/dist/tflite_runtime-2.17.1.linux-x86_64.tar.gz
+ [[ '' != \y ]]
+ exit 0
(base) gaikwadrahul@gaikwadrahul-n1-standard-1-gpu-t4x1-tflite-ubuntu-24:~/tflite-76908/tensorflow_src$