Closed
Description
When trying to build XNNPACK for release got an error
ERROR: xnnpack/BUILD.bazel:481:19: Compiling src/log.c failed: (Exit 1): gcc failed: error executing CppCompile command (from target //:logging) /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 93 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
src/log.c:61:13: error: 'xnn_vlog' defined but not used [-Werror=unused-function]
61 | static void xnn_vlog(int output_handle, const char* prefix,
| ^~~~~~~~
cc1: all warnings being treated as errors
Platform used:
Linux Ubuntu 22.04 arm64 and MacOS arm64
Command to build:
USE_BAZEL_VERSION="7.x" bazelisk build -c opt //test/...
Revision:
commit 7a11b75 (HEAD, origin/master, m/main)
Note:
fastbuild works fine
Metadata
Metadata
Assignees
Labels
No labels