I can't get ati-drivers to compile. I'll post the entire output at the bottom
of the message but the error seems to be:
firegl_public.c:41:2: error: #error unknown or undefined architecture
configured
There have been known issues with this compiling with newer kernels but all of
the bug reports I've found indicated that the bug has been fixed in the
masked packages and the bug reports closed. I've unmasked 8.542 with no
change. I'm running a custom compiled 2.6.27 kernel but I've tried going
with gentoo-sources 2.6.26-r3 and r4.
Regardless of which version of the package I try to install or which kernel
I'm running, I get the same error. Here's the full output:
>>> Emerging (1 of 1) x11-drivers/ati-drivers-8.542 to /
* ati-driver-installer-8-10-x86.x86_64.run RMD160 SHA1 SHA256 size ;-) ...
[ ok ]
* checking ebuild checksums ;-) ... [
ok ]
* checking auxfile checksums ;-) ... [
ok ]
* checking miscfile checksums ;-) ... [
ok ]
* checking ati-driver-installer-8-10-x86.x86_64.run ;-) ... [
ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 2.6.27
>>> Unpacking source...
Warning: target directory
exists /var/tmp/portage/x11-drivers/ati-drivers-8.542/work
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux
Driver-8.542...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
* Applying ati-drivers-2.6.27.patch ...
[ ok ]
* Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ...
[ ok ]
>>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz
to /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/extra
>>> Source unpacked.
>>> Compiling source
in /var/tmp/portage/x11-drivers/ati-drivers-8.542/work ...
* Preparing fglrx module
make -C /usr/src/linux
M=/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x
modules
make[1]: Entering directory `/usr/src/linux-2.6.27'
CC
[M]
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
CC
[M]
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:41:2:
error: #error unknown or undefined architecture configured
CC
[M]
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:
In function '__ke_vm_phys_addr_str':
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3528:
warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3529:
warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3530:
warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3532:
warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:
At top level:
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5780:
warning: initialization from incompatible pointer type
/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5806:
warning: initialization from incompatible pointer type
make[2]: ***
[/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: ***
[_module_/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x]
Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27'
make: *** [kmod_build] Error 2
*
* ERROR: x11-drivers/ati-drivers-8.542 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3217: Called linux-mod_src_compile
* environment, line 2429: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"
CROSS_COMPILE=${CHOST}-
LDFLAGS=\"$(get_abi_LDFLAGS)\"
${BUILD_FIXES} ${BUILD_PARAMS}
${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)"
CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES}
${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc
CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.27
KDIR=/usr/src/linux kmod_build
*
* If you need support, post the topmost build error, and the call stack if
relevant.
* A complete build log is located
at '/var/tmp/portage/x11-drivers/ati-drivers-8.542/temp/build.log'.
* The ebuild environment file is located
at '/var/tmp/portage/x11-drivers/ati-drivers-8.542/temp/environment'.
*
* Messages for package x11-drivers/ati-drivers-8.542:
*
* ERROR: x11-drivers/ati-drivers-8.542 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3217: Called linux-mod_src_compile
* environment, line 2429: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"
CROSS_COMPILE=${CHOST}-
LDFLAGS=\"$(get_abi_LDFLAGS)\"
${BUILD_FIXES} ${BUILD_PARAMS}
${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)"
CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES}
${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc
CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.27
KDIR=/usr/src/linux kmod_build
*
* If you need support, post the topmost build error, and the call stack if
relevant.
* A complete build log is located
at '/var/tmp/portage/x11-drivers/ati-drivers-8.542/temp/build.log'.
* The ebuild environment file is located
at '/var/tmp/portage/x11-drivers/ati-drivers-8.542/temp/environment'.
*