mediapipe
mediapipe copied to clipboard
error from building an example named hand_tracking_cpu using bazel
OS Platform and Distribution
ubuntu22.04
Compiler version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Programming Language and version
mediapipe 's example (mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu)
Installed using virtualenv? pip? Conda?(if python)
No response
MediaPipe version
v0.10.22-25-gf659be26
Bazel version
bazel 6.5.0
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
No response
Android AAR (if android)
None
OpenCV version (if running on desktop)
4.5.4
Describe the problem
bazel 6.5.0
Complete Logs
bazel --output_base ./build build --config=linux -c opt --define MEDIAPIPE_DISABLE_GPU=1 --cxxopt="-I/usr/include/opencv4" mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu
INFO: Build options --copt, --cxxopt, --define, and 1 more have changed, discarding analysis cache.
WARNING: /home/devel/Patient/workspace_2025/new/mediapipe/mediapipe/framework/tool/BUILD:204:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /home/devel/Patient/workspace_2025/new/mediapipe/mediapipe/framework/BUILD:70:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
INFO: Analyzed target //mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu (0 packages loaded, 9980 targets configured).
INFO: Found 1 target...
INFO: From Compiling src/google/protobuf/message_lite.cc [for tool]:
In file included from /usr/include/string.h:535,
from external/com_google_protobuf/src/google/protobuf/stubs/port.h:39,
from external/com_google_protobuf/src/google/protobuf/stubs/common.h:48,
from external/com_google_protobuf/src/google/protobuf/message_lite.h:45,
from external/com_google_protobuf/src/google/protobuf/message_lite.cc:36:
In function 'void* memcpy(void*, const void*, size_t)',
inlined from 'uint8_t* google::protobuf::io::EpsCopyOutputStream::WriteRaw(const void*, int, uint8_t*)' at external/com_google_protobuf/src/google/protobuf/io/coded_stream.h:706:16,
inlined from 'virtual uint8_t* google::protobuf::internal::ImplicitWeakMessage::_InternalSerialize(uint8_t*, google::protobuf::io::EpsCopyOutputStream*) const' at external/com_google_protobuf/src/google/protobuf/implicit_weak_message.h:84:28,
inlined from 'bool google::protobuf::MessageLite::SerializePartialToZeroCopyStream(google::protobuf::io::ZeroCopyOutputStream*) const' at external/com_google_protobuf/src/google/protobuf/message_lite.cc:412:30:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:33: warning: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)' specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
29 | return __builtin___memcpy_chk (__dest, __src, __len,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
30 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling mediapipe/framework/tool/message_type_util.cc [for tool]:
mediapipe/framework/tool/message_type_util.cc: In static member function 'static int mediapipe::DescriptorReader::MatchingPrefixLength(const string&, const string&)':
mediapipe/framework/tool/message_type_util.cc:67:14: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
67 | while (i < std::min(s.size(), t.size()) && s[i] == t[i]) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling mediapipe/framework/deps/status_builder.cc [for tool]:
mediapipe/framework/deps/status_builder.cc: In lambda function:
mediapipe/framework/deps/status_builder.cc:107:3: warning: control reaches end of non-void function [-Wreturn-type]
107 | }());
| ^
ERROR: /home/devel/Patient/workspace_2025/new/mediapipe/build/external/XNNPACK/BUILD.bazel:661:36: Compiling src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c failed: (Exit 1): gcc failed: error executing command (from target @XNNPACK//:avxvnniint8_prod_microkernels) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 98 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
gcc: error: unrecognized command-line option '-mavxvnniint8'; did you mean '-mavxvnni'?
Target //mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 153.213s, Critical Path: 108.47s
INFO: 1272 processes: 128 internal, 1144 linux-sandbox.
FAILED: Build did NOT complete successfully
gcc: error: unrecognized command-line option '-mavxvnniint8'; did you mean '-mavxvnni'?
Processor: Intel® Core™ i3-10100 CPU @ 3.60GHz × 8