Skip to content

error message : "gcc: error: unrecognized command-line option '-mavxvnniint8'; did you mean '-mavxvnni’?" #5797

Open
@akau16

Description

@akau16

OS Platform and Distribution

Windows 11 WSL2(Ubuntu 22.04.5 LTS)

Compiler version

gcc 11.4.0 / g++ 11.4.0

Programming Language and version

C++17

Installed using virtualenv? pip? Conda?(if python)

Windows 11 WSL2(Ubuntu 22.04.5 LTS)

MediaPipe version

No response

Bazel version

v1.25.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)

3.4.20

Describe the problem

gcc: error: unrecognized command-line option '-mavxvnniint8'; did you mean '-mavxvnni’?

Complete Logs

To build, for example, the C++ example app of the legacy MediaPipe Hand Detection solution with CPU, run:

bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu

and it show 

ERROR: /home/davidshiu0316/.cache/bazel/_bazel_davidshiu0316/682fbe615818a463bd3f18a2ef38cf0a/external/XNNPACK/BUILD.bazel:661:36: Compiling src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-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 97 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'?
ERROR: /home/davidshiu0316/.cache/bazel/_bazel_davidshiu0316/682fbe615818a463bd3f18a2ef38cf0a/external/XNNPACK/BUILD.bazel:661:36: Compiling src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-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 97 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: 1.030s, Critical Path: 0.40s
INFO: 134 processes: 130 internal, 4 linux-sandbox.
FAILED: Build did NOT complete successfully

Metadata

Metadata

Assignees

Labels

legacy:handsHand tracking/gestures/etcos:windowsMediaPipe issues on Windowsplatform:c++Issues specific to C++ framework in mediapipetype:build/installFor Build and Installation issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions