Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akau16 opened this issue Dec 26, 2024 · 0 comments
Assignees
Labels
legacy:hands Hand tracking/gestures/etc os:windows MediaPipe issues on Windows platform:c++ Issues specific to C++ framework in mediapipe type:build/install For Build and Installation issues

Comments

@akau16
Copy link

akau16 commented Dec 26, 2024

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
@akau16 akau16 added the type:build/install For Build and Installation issues label Dec 26, 2024
@kuaashish kuaashish added os:windows MediaPipe issues on Windows platform:c++ Issues specific to C++ framework in mediapipe legacy:hands Hand tracking/gestures/etc labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:hands Hand tracking/gestures/etc os:windows MediaPipe issues on Windows platform:c++ Issues specific to C++ framework in mediapipe type:build/install For Build and Installation issues
Projects
None yet
Development

No branches or pull requests

2 participants