8000 Build broken for Bazel build with '-c opt'. Unused function warning(treated as error) · Issue #8618 · google/XNNPACK · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Build broken for Bazel build with '-c opt'. Unused function warning(treated as error) #8618
Closed
@AntonBondarenkoArm

Description

@AntonBondarenkoArm

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0