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

Build Error: always_inline function might not be inlinable #64

Open
aferr opened this issue Oct 21, 2022 · 0 comments · May be fixed by #65
Open

Build Error: always_inline function might not be inlinable #64

aferr opened this issue Oct 21, 2022 · 0 comments · May be fixed by #65

Comments

@aferr
Copy link

aferr commented Oct 21, 2022

I get the following error

Compiling fuzztest/internal/coverage.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 35 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/fuzztest/fuzztest/internal/coverage.cc:274:5: error: 'always_inline' function might not be inlinable [-Werror=attributes]
  274 |     TraceCmp(uint64_t arg1, uint64_t arg2, uint8_t argsize_bit,
      |     ^~~~~~~~
external/fuzztest/fuzztest/internal/coverage.cc:274:5: error: 'always_inline' function might not be inlinable [-Werror=attributes]
external/fuzztest/fuzztest/internal/coverage.cc:274:5: error: 'always_inline' function might not be inlinable [-Werror=attributes]
external/fuzztest/fuzztest/internal/coverage.cc:274:5: error: 'always_inline' function might not be inlinable [-Werror=attributes]

when attempting to build a project that uses google/fuzztest as a dependency using bazel with the following WORKSPACE snippet:

# Fuzztest
http_archive(
    name = "fuzztest",
    strip_prefix = "fuzztest-" + fuzztest_commit_hash,
    urls = ["https://github.com/google/fuzztest/archive/" + fuzztest_commit_hash + ".zip"],
)

On my machine, the result of ldd --version is ldd (Debian GLIBC 2.34-8) 2.34 and the result of g++ --version is g++ (Debian 12.2.0-3) 12.2.0

aferr pushed a commit to aferr/fuzztest that referenced this issue Oct 21, 2022
aferr pushed a commit to aferr/fuzztest that referenced this issue Oct 21, 2022
aferr pushed a commit to aferr/fuzztest that referenced this issue Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant