Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278674 - x11-drivers/ati-drivers-9.6 & sys-kernel/gentoo-sources- 2.6.30-r3 #error unknown or undefined architecture configured
Summary: x11-drivers/ati-drivers-9.6 & sys-kernel/gentoo-sources- 2.6.30-r3 #error unk...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 12:28 UTC by Vladimir Berezhnoy
Modified: 2009-07-26 20:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Berezhnoy 2009-07-22 12:28:47 UTC
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.
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2009-07-24 15:54:25 UTC
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.
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2009-07-24 15:56:21 UTC
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.
Comment 3 Vladimir Berezhnoy 2009-07-24 17:15:03 UTC
This is originally coming from this post http://bugs.gentoo.org/show_bug.cgi?id=266819#c57
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-07-25 10:26:13 UTC
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.
Comment 5 Vladimir Berezhnoy 2009-07-25 11:37:43 UTC
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.
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-07-26 19:42:04 UTC
I tried to adjust 9.7 build to compile for you without this configure option.
Please try.
Comment 7 Vladimir Berezhnoy 2009-07-26 20:57:53 UTC
Thanks, kernel compiles fine now without BIGSMP