configure: error: The installed libgccjit failed to compile and run a test program using
the libgccjit library; see config.log for the details of the failure.
A look to config.log then shows:
configure:19456: gcc -E conftest.c
conftest.c:124:10: fatal error: 'libgccjit.h' file not found
#include <libgccjit.h>