Gentoo Archives: gentoo-user

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