O que é ac_nonexistent.h?

O que é ac_nonexistent.h?

Examinando um buildlog de uma compilação com falha, o que significa o seguinte erro,

fatal error: ac_nonexistent.h: No such file or directory #include <ac_nonexistent.h>

Aqui está algum contexto.

configure:6614: $? = 0
configure:6627: result: none needed
configure:6648: checking how to run the C preprocessor
configure:6679: gcc -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c
configure:6679: $? = 0
configure:6693: gcc -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:6693: $? = 1
configure: failed program was:
| /* confdefs.h */

O que é ac_nonexistent.h? O que devo fazer quando encontrar esse erro?

Responder1

Aquilo é umverificação de sanidade, para garantir que o script de configuração seja capaz de determinar corretamente se um arquivo de cabeçalho está presente ou não: ele pede ao compilador para usar um cabeçalho inexistente e verifica se o compilador falha (corretamente).

Observe que sua compilação continua após esse “erro”... Para descobrir a causa de uma falha de compilação, você geralmente deve trabalhar a partir do final do log de compilação. Neste caso, a parte importante do log é

configure:47489: checking for the Wayland protocols
configure:47492: $PKG_CONFIG --exists --print-errors "wayland-protocols >= 1.4"
Package wayland-protocols was not found in the pkg-config search path.
Perhaps you should add the directory containing `wayland-protocols.pc' to the PKG_CONFIG_PATH environment variable
No package 'wayland-protocols' found

informação relacionada