Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Build Error: `always_inline` function might not be inlinable

Abierto
#64 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

@aferr ya está trabajando en esto.

Desde el 21/10/2022.

  • #65 de @aferr — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
cpp
Área
testing-qa

Línea de trabajo

Reproduzca el fallo de compilación de Bazel utilizando el entorno Debian GLIBC 2.34 y GCC 12.2 indicado, y después inspeccione external/fuzztest/fuzztest/internal/coverage.cc alrededor de TraceCmp en la línea 274. Confirme que la compilación ya no falla debido al diagnóstico -Werror=attributes always_inline.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C++
Estrellas
1.1k
Forks
139
Merge medio
2 d 21 h
PR fusionados (30 d)
19

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de google/fuzztest

Todos los issues de google/fuzztest

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.