Ran into a build issue with pc386 bsp
Using following config
[DEFAULT]
RTEMS_POSIX_API = True
OPTIMIZATION_FLAGS = -Wpedantic -Wno-error
[i386/pc386]
On inspecting the affected file bsps/i386/pc386/console/vgainit.c
The file has forward declarations like:
static REGIO graphics_on[];
static REGIO graph_off[];
These are later defined with initializers in the same file, but modern compilers treat the earlier lines as incomplete definitions, which causes build errors (e.g., “array size missing”).
Removing the declarations leads to “undeclared” errors since the arrays are used before definition.
This looks like a legacy code pattern that newer toolchains reject.