I was recently building the bproc module. It errored out on a one file. I suspected a problem with the include path, but the Kernel build mechanism swallows all of the command line arguments for gcc. The trick is to run make with the argument:
make KBUILD_VERBOSE=1
Now it spews out everything it is doing.