
Examinar un registro de compilación de una compilación fallida¿Qué significa el siguiente error?
fatal error: ac_nonexistent.h: No such file or directory #include <ac_nonexistent.h>
Aquí hay algo de 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 */
Qué es ac_nonexistent.h
? ¿Qué debo hacer cuando encuentro este error?
Respuesta1
Eso es unprueba de cordura, para garantizar que el script de configuración pueda determinar correctamente si un archivo de encabezado está presente o no: le pide al compilador que use un encabezado inexistente y verifica que el compilador falle (correctamente).
Tenga en cuenta que su compilación continúa después de ese "error"... Para descubrir la causa de un error de compilación, generalmente debe comenzar desde el final del registro de compilación. En este caso, la parte importante del registro es
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