https://buildkite.com/bazel/bazel-at-head-plus-disabled/builds/1741#01899b1f-bbb1-4dc9-8ffa-1b1b129810b3
(06:36:48) ERROR: /var/lib/buildkite-agent/builds/bk-docker-bl1p/bazel-downstream-projects/tensorflow/tensorflow/lite/experimental/microfrontend/BUILD:97:21: Linking tensorflow/lite/experimental/microfrontend/gen_audio_microfrontend_op_py_wrappers_cc [for tool] failed: (Exit 1): clang failed: error executing CppLink command (from target //tensorflow/lite/experimental/microfrontend:gen_audio_microfrontend_op_py_wrappers_cc)
(cd /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/c3b80eb6321395e802c419deaac81a18/execroot/org_tensorflow && \
exec env - \
PATH=/var/lib/buildkite-agent/.cache/bazelisk/local/-tmp-tmpxmujvc4j-bazel/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
PWD=/proc/self/cwd \
ZERO_AR_DATE=1 \
/usr/lib/llvm-16/bin/clang @bazel-out/k8-opt-exec-ST-a0a42e9628a1/bin/tensorflow/lite/experimental/microfrontend/gen_audio_microfrontend_op_py_wrappers_cc-2.params)
# Configuration: 58da8197376b354f6825ccc0ccc40424332586b6eb574b2ca1de78a5bc0d109a
# Execution platform: @local_execution_config_platform//:platform
ld.lld: error: undefined symbol: tsl::Flag::Flag(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool*)
>>> referenced by python_op_gen_main.cc
>>> bazel-out/k8-opt-exec-ST-a0a42e9628a1/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:(main)
>>> referenced by python_op_gen_main.cc
>>> bazel-out/k8-opt-exec-ST-a0a42e9628a1/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:(main)
>>> referenced by python_op_gen_main.cc
>>> bazel-out/k8-opt-exec-ST-a0a42e9628a1/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:(main)
>>> referenced 4 more times
ld.lld: error: undefined symbol: tsl::Flags::Usage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<tsl::Flag, std::allocator<tsl::Flag>> const&)
>>> referenced by python_op_gen_main.cc
>>> bazel-out/k8-opt-exec-ST-a0a42e9628a1/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:(main)
ld.lld: error: undefined symbol: tsl::Flags::Parse(int*, char**, std::vector<tsl::Flag, std::allocator<tsl::Flag>> const&)
>>> referenced by python_op_gen_main.cc
>>> bazel-out/k8-opt-exec-ST-a0a42e9628a1/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:(main)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Target //tensorflow/tools/pip_package:build_pip_package failed to build
A bisect shows the breaking change is: bazelbuild/bazel#17498
@keith Can you give some guidance on how to adapt for this breaking change?
/cc @learning-to-play
4条答案
按热度按时间0lvr5msh1#
tensorflow/.bazelrc
第111行 2bade54
| | build --features=-force_no_whole_archive |
也许在这一行后面加上
build --host_features=-force_no_whole_archive
就足够了?csga3l582#
有兴趣知道这是否解决了^,否则可能是另一个
--features
标志需要一个新的--host_features
等效项。wtzytmuj3#
@meteorcloudy Could you please keep this issue assigned to you (if you're working on it) or assign it to the person you expect to look into it? When it's unassigned the gTech team assigns it to new owners and this causes confusion and spamming.
@sachinprasadhs FYI
ecfdbz9o4#
你对你的问题的解决是否满意?
是
否