Gentoo Archives: gentoo-user

From: Daniel D Jones <ddjones@××××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] ati-drivers won't compile
Date: Mon, 08 Dec 2008 02:11:15
Message-Id: 200812080211.13772.ddjones@riddlemaster.org
1 I can't get ati-drivers to compile. I'll post the entire output at the bottom
2 of the message but the error seems to be:
3
4 firegl_public.c:41:2: error: #error unknown or undefined architecture
5 configured
6
7 There have been known issues with this compiling with newer kernels but all of
8 the bug reports I've found indicated that the bug has been fixed in the
9 masked packages and the bug reports closed. I've unmasked 8.542 with no
10 change. I'm running a custom compiled 2.6.27 kernel but I've tried going
11 with gentoo-sources 2.6.26-r3 and r4.
12
13 Regardless of which version of the package I try to install or which kernel
14 I'm running, I get the same error. Here's the full output:
15
16
17 >>> Emerging (1 of 1) x11-drivers/ati-drivers-8.542 to /
18 * ati-driver-installer-8-10-x86.x86_64.run RMD160 SHA1 SHA256 size ;-) ...
19 [ ok ]
20 * checking ebuild checksums ;-) ... [
21 ok ]
22 * checking auxfile checksums ;-) ... [
23 ok ]
24 * checking miscfile checksums ;-) ... [
25 ok ]
26 * checking ati-driver-installer-8-10-x86.x86_64.run ;-) ... [
27 ok ]
28 * Determining the location of the kernel source code
29 * Found kernel source directory:
30 * /usr/src/linux
31 * Found sources for kernel version:
32 * 2.6.27
33 >>> Unpacking source...
34 Warning: target directory
35 exists /var/tmp/portage/x11-drivers/ati-drivers-8.542/work
36 Verifying archive integrity... All good.
37 Uncompressing ATI Proprietary Linux
38 Driver-8.542...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
39 * Applying ati-drivers-2.6.27.patch ...
40 [ ok ]
41 * Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ...
42 [ ok ]
43 >>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz
44 to /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/extra
45 >>> Source unpacked.
46 >>> Compiling source
47 in /var/tmp/portage/x11-drivers/ati-drivers-8.542/work ...
48 * Preparing fglrx module
49 make -C /usr/src/linux
50 M=/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x
51 modules
52 make[1]: Entering directory `/usr/src/linux-2.6.27'
53 CC
54 [M] /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
55 CC
56 [M] /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
57 /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:41:2:
58 error: #error unknown or undefined architecture configured
59 CC
60 [M] /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
61 /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:
62 In function '__ke_vm_phys_addr_str':
63 /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3528:
64 warning: return makes pointer from integer without a cast
65 /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3529:
66 warning: return makes pointer from integer without a cast
67 /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3530:
68 warning: return makes pointer from integer without a cast
69 /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3532:
70 warning: return makes pointer from integer without a cast
71 /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:
72 At top level:
73 /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5780:
74 warning: initialization from incompatible pointer type
75 /var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5806:
76 warning: initialization from incompatible pointer type
77 make[2]: ***
78 [/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o]
79 Error 1
80 make[2]: *** Waiting for unfinished jobs....
81 make[1]: ***
82 [_module_/var/tmp/portage/x11-drivers/ati-drivers-8.542/work/common/lib/modules/fglrx/build_mod/2.6.x]
83 Error 2
84 make[1]: Leaving directory `/usr/src/linux-2.6.27'
85 make: *** [kmod_build] Error 2
86 *
87 * ERROR: x11-drivers/ati-drivers-8.542 failed.
88 * Call stack:
89 * ebuild.sh, line 49: Called src_compile
90 * environment, line 3217: Called linux-mod_src_compile
91 * environment, line 2429: Called die
92 * The specific snippet of code:
93 * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"
94 CROSS_COMPILE=${CHOST}-
95 LDFLAGS=\"$(get_abi_LDFLAGS)\"
96 ${BUILD_FIXES} ${BUILD_PARAMS}
97 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)"
98 CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES}
99 ${BUILD_PARAMS} ${BUILD_TARGETS}";
100 * The die message:
101 * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc
102 CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.27
103 KDIR=/usr/src/linux kmod_build
104 *
105 * If you need support, post the topmost build error, and the call stack if
106 relevant.
107 * A complete build log is located
108 at '/var/tmp/portage/x11-drivers/ati-drivers-8.542/temp/build.log'.
109 * The ebuild environment file is located
110 at '/var/tmp/portage/x11-drivers/ati-drivers-8.542/temp/environment'.
111 *
112
113 * Messages for package x11-drivers/ati-drivers-8.542:
114
115 *
116 * ERROR: x11-drivers/ati-drivers-8.542 failed.
117 * Call stack:
118 * ebuild.sh, line 49: Called src_compile
119 * environment, line 3217: Called linux-mod_src_compile
120 * environment, line 2429: Called die
121 * The specific snippet of code:
122 * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"
123 CROSS_COMPILE=${CHOST}-
124 LDFLAGS=\"$(get_abi_LDFLAGS)\"
125 ${BUILD_FIXES} ${BUILD_PARAMS}
126 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)"
127 CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES}
128 ${BUILD_PARAMS} ${BUILD_TARGETS}";
129 * The die message:
130 * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc
131 CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.27
132 KDIR=/usr/src/linux kmod_build
133 *
134 * If you need support, post the topmost build error, and the call stack if
135 relevant.
136 * A complete build log is located
137 at '/var/tmp/portage/x11-drivers/ati-drivers-8.542/temp/build.log'.
138 * The ebuild environment file is located
139 at '/var/tmp/portage/x11-drivers/ati-drivers-8.542/temp/environment'.
140 *

Replies

Subject Author
Re: [gentoo-user] ati-drivers won't compile Volker Armin Hemmann <volker.armin.hemmann@××××××××××××.de>