tensorflow: Selectively build TFLite for IOS failure

Click to expand!

Issue Type

Bug

Have you reproduced the bug with TF nightly?

Yes

Source

source

Tensorflow Version

2.11.0

Custom Code

No

OS Platform and Distribution

MacOS Monterey 12.6.2

Mobile device

N/A

Python version

3.9

Bazel version

5.3.0

GCC/Compiler version

14.0.0

CUDA/cuDNN version

No response

GPU model and memory

N/A

Current Behaviour?

I tried building a selective TFL framework following this guide(https://www.tensorflow.org/lite/guide/build_ios#selectively_build_tflite_frameworks). The model I fed into the command only uses builtin and select ops. However this command returns error. 

ERROR: /Users/xx/projects/tensorflow/tensorflow/lite/ios/tmp/BUILD:4:24: Compiling tensorflow/lite/ios/tmp/custom_c_api_registration_registration.cc failed: undeclared inclusion(s) in rule '//tensorflow/lite/ios/tmp:custom_c_api_create_op_resolver':
this rule is missing dependency declarations for the following files included by 'tensorflow/lite/ios/tmp/custom_c_api_registration_registration.cc':
  'tensorflow/lite/core/shims/builtin_ops_list.inc'

I tried adding shims:builtin_ops_list but it is not helping and keep failing.

Standalone code to reproduce the issue

The original code is not working

Relevant log output

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 32 (16 by maintainers)

Commits related to this issue

Most upvoted comments

Just pulled the latest version from git, still seeing the 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule error

ERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: Executing genrule //tensorflow:libtensorflow_framework.2.dylib_sym [for host] failed: not all outputs were created or valid
realpath: illegal option -- -
usage: realpath [-q] [path ...]
Target //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 591.530s, Critical Path: 121.72s
INFO: 2120 processes: 20 internal, 2100 local.
FAILED: Build did NOT complete successfully