ati-drivers compilation fails with error /var/tmp/portage/x11-drivers/ati-drivers-8.612/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:44:2: error: #error unknown or undefined architecture configured Reproducible: Always Steps to Reproduce: This happens because of this check in the ati-driver #include <linux/autoconf.h> #if !defined(CONFIG_X86_PC) #if !defined(CONFIG_X86_PC_XEN) #if !defined(CONFIG_X86_XEN) #if !defined(CONFIG_X86_64_XEN) #if !defined(CONFIG_X86_64) #if !defined(CONFIG_X86_VOYAGER) #if !defined(CONFIG_X86_NUMAQ) #if !defined(CONFIG_X86_SUMMIT) #if !defined(CONFIG_X86_BIGSMP) #if !defined(CONFIG_X86_VISWS) #if !defined(CONFIG_X86_GENERICARCH) #error unknown or undefined architecture configured So to successfully build ati-drivers one of the above options must be set in kernel config. For me it was CONFIG_X86_BIGSMP. And also probably the kernel sources should be built bafore that to generate the correct file linux/autoconf.h Ati-drivers ebuild should perform the check and warn user about this.
EE, wontfix, ebuild itself state that you should use kernel up to .28 everything newer than this is just experimental stuff. Write patch if you want it working.
Okey after second thinking the config option might be checked. So if anyone else with the new kernel confirms i will add the check to the ebuild.
This is originally coming from this post http://bugs.gentoo.org/show_bug.cgi?id=266819#c57
Well for me the driver find correct arch even without bigsmp, and by looking on the list of what the option does i think it is not correct approach.
Prior to 2.6.30 kernel there was a generic kernel config option CONFIG_X86_PC. But it is gone int 2.6.30. The code in the driver obviously just checks the presence of some options (see my original report) and if none of these options is found, then compilation will simply fail. In my case CONFIG_X86_BIGSMP was the easiest one to set in kernel config, but it will work for any of those 11 options.
I tried to adjust 9.7 build to compile for you without this configure option. Please try.
Thanks, kernel compiles fine now without BIGSMP