Skip to content

Fatal Bazel error when building benchmark model for LiteRT with bazel 7.6.1 #3474

@SuhailMunshi

Description

@SuhailMunshi

Hi,
I am looking to build LiteRT benchmark model with Bazel - and have run into some issues. Any suggestions would be appreciated!

I appear to be getting build errors with the command below, but only after the commit hash 01ed81c.
Checking out the commit before it seems to build fine.

OS: MacOS 15.5

Bazel Commands:

export MACOS_SDK_VERSION=$(xcrun --sdk macosx --show-sdk-version)
 
bazel build -c dbg --macos_sdk_version=$MACOS_SDK_VERSION --config macos //litert/tools:benchmark_model --define xnn_enable_profiler=true \
    --define tflite_with_xnnpack=true \
    --define xnn_enable_arm_i8mm=true \
    --define tflite_with_xnnpack_qs8=true \
    --define tflite_with_xnnpack_qu8=true

Building after the commit hash shown above gives the following bazel errors:

[INFO 13:49:52.774 src/main/cpp/option_processor.cc:407] Looking for the following rc files: /etc/bazel.bazelrc,/Users/MyUser/Google/LiteRT/.bazelrc,/Users/MyUser/.bazelrc
[INFO 13:49:52.774 src/main/cpp/rc_file.cc:56] Parsing the RcFile /Users/MyUser/Google/LiteRT/.bazelrc
[INFO 13:49:52.777 src/main/cpp/rc_file.cc:56] Parsing the RcFile /Users/MyUser/Google/LiteRT/.litert_configure.bazelrc
[FATAL 13:49:52.777 src/main/cpp/blaze.cc:1105] Unexpected error reading config file '/Users/MyUser/Google/LiteRT/.litert_configure.bazelrc': (error: 2): No such file or directory

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions