Was ist ac_nonexistent.h?

Was ist ac_nonexistent.h?

Untersuchen eines Buildprotokolls eines fehlgeschlagenen Builds, was bedeutet der folgende Fehler,

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

Hier einige Hintergrundinformationen.

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 */

Was ist ac_nonexistent.h? Was soll ich tun, wenn dieser Fehler auftritt?

Antwort1

Das ist einGesundheitsüberprüfung, um sicherzustellen, dass das Konfigurationsskript korrekt feststellen kann, ob eine Header-Datei vorhanden ist oder nicht: Es fordert den Compiler auf, einen nicht vorhandenen Header zu verwenden, und überprüft, ob der Compiler (korrekterweise) fehlschlägt.

Beachten Sie, dass Ihr Build nach diesem „Fehler“ weitergeht... Um die Ursache eines Build-Fehlers herauszufinden, sollten Sie im Allgemeinen vom Ende des Build-Protokolls aus arbeiten. In diesem Fall ist der wichtige Teil des Protokolls

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

verwandte Informationen