Build Error: `always_inline` function might not be inlinable
- Dominant language
- C++
- Stars
- 1.1k
- Forks
- 137
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 22
Description
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`
Contributor guide
Assessment
This issue has not been assessed yet.