mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-12 06:57:57 +04:00
With ccache enabled, MKlib_gen.sh treats ccache as the compiler when probing its version. It therefore misses GCC's required -P workaround for line markers introduced while expanding macros. The generated lib_gen.c then fails to compile with GCC 14.4.0, reporting: "_Bool" after # is not a positive integer Pass -P explicitly to the make-time preprocessor used by the ncurses source generators. This fixes the apm821xx/nand and qoriq/generic external-toolchain CI failures without changing compiler detection or the source library API. Increment the package release. Build-tested complete static/shared ncurses, menu, form and panel libraries with ccache and the failing PowerPC GCC 14.4.0 toolchains. The same build also passes with MIPS32 GCC 16.2.0. The original make-time CPP command reproduces both PowerPC failures. Signed-off-by: Gleb Pesin <dormancygrace@gmail.com> Assisted-by: Codex (OpenAI GPT-6) Link: https://github.com/openwrt/openwrt/pull/25538 Signed-off-by: Robert Marko <robimarko@gmail.com>