I'm compiling svnversion 35011 from scratch on a Ubuntu-12.04 VM, targeting an Alfa Hornet-UB board. The kernel in OpenWRT/trunk is 3.6.11, whereas Ubuntu is running 3.2.0-34. The default compilation dies in swconfig when cli.c can't find <linux/switch.h>. This file was apparently added to the kernel sometime between 3.2.0 and 3.6.11, but more importantly, I believe the failure means that the OpenWRT build system isn't redirecting include paths properly -- for some reason, the cross compiler is looking in the system's /usr/include/linux directory rather than OpenWRT/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.6.11/include/linux.
Have I made a stupid error, or is this just something that most developers don't hit because they're running the same kernel on their development boxes as the kernel in the OpenWRT tree?
Thanks!