Help to analyse "Please reinstall the GNU C Compiler (4.8 or later)"

Hi,

building OpenWrt (master) I get this error: Please reinstall the GNU C Compiler (4.8 or later) - it appears to be broken.

I do not think my compiler is missing or broken. Thus I like to figure out why the error is generated.

The error in triggered in https://github.com/openwrt/openwrt/blob/0ba83a757728185eabd965e07331508923cca825/include/prereq-build.mk#L36

Since my Makefile Foo is weak, can anyone give me an isolated Makefile to perform this check?

Fwiw, this runs well and without problems:

echo 'int main(int argc, char **argv) { return 0; }' | gcc -x c -o a.out -