It appears that the asm header patches that are applied in this build to the types.h files are either bad, or they are being applied incorrectly. After the patch has occurred most of them have an additional #endif at the end of the file which causes compilation to fail. The following files are broken after the patch on my system, but It appears that the types files for other architectures are also broken include/asm/posix_types.h:83:2: #endif without #if include/linux/spinlock_types.h:68:2: #endif without #if include/linux/types.h:216:2: #endif without #if
Created attachment 104586 [details] emerge --info output
Created attachment 104587 [details] emerge output
looks fine to me but i dont really know what you're doing as you didnt say
All I'm doing is an "emerge linux-headers", then I get the errors attached. I suppose though that it could be something related to my particular machine. I checked the ebuild work files on my machine, and all the broken type header files have an additional #endif at the end of the file. Removing these allows the package to build successfully.
your system is ancient; update it Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-3.2.3, glibc-2.3.2-r1, 2.6.14-gentoo-r2 i686)
if you can reproduce with an up-to-date system, i'll review again ... but 2.6.17-r2 works fine in my x86 systems
See bug 163604.