If the user has something like -Werror in CFLAGS in their environment, and runs stap, that -Werror flag will leak into the command line for compiling stap’s runtime autoconf-*.c programs. It can cause compilation of the tests to fail when it shouldn’t, which results in the user having the wrong config for building the kernel module to run their tapset. I’m not sure whether stap should remove the user’s CFLAGS entirely when running the autoconf tests, or just remove obviously-bad settings like -Werror.
This could be similar to bug #14168, and clean up more kbuild-sensitive variables.