Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volkerarmin@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Ati-drivers emerge fails.
Date: Sun, 07 Jun 2009 17:01:22
Message-Id: 200906071900.35161.volkerarmin@googlemail.com
In Reply to: [gentoo-user] Ati-drivers emerge fails. by Hazen Valliant-Saunders
1 On Sonntag 07 Juni 2009, Hazen Valliant-Saunders wrote:
2 > Good Day;
3 >
4 > ati-drivers fails to emerge; foolowed the somewhat out of date doc's
5 > online.
6 >
7 >
8 > emerge ati-drivers
9 > Calculating dependencies... done!
10 >
11 > >>> Verifying ebuild manifests
12 > >>>
13 > >>> Emerging (1 of 1) x11-drivers/ati-drivers-8.552-r2
14 >
15 > * ati-driver-installer-8-11-x86.x86_64.run RMD160 SHA1 SHA256 size ;-) ...
16 > [ ok ]
17 > * checking ebuild checksums ;-) ... [
18 > ok ]
19 > * checking auxfile checksums ;-) ... [
20 > ok ]
21 > * checking miscfile checksums ;-) ... [
22 > ok ]
23 > * Determining the location of the kernel source code
24 > * Found kernel source directory:
25 > * /usr/src/linux
26 > * Found kernel object directory:
27 > * /lib/modules/2.6.29-gentoo-r5/build
28 > * Found sources for kernel version:
29 > * 2.6.29-gentoo-r5
30 >
31 > >>> Unpacking source...
32 >
33 > Warning: target directory exists
34 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work
35 > Verifying archive integrity... All good.
36 > Uncompressing ATI Proprietary Linux
37 > Driver-8.552...............................................................
38 >............................................................................
39 >............................................................................
40 >............................................................................
41 >............................................................................
42 >............................................................................
43 >............................................................................
44 >............................................................................
45 >............................................................................
46 >............................................................................
47 >............................................................................
48 >.......................................... * Converting 2.6.x/Makefile to
49 > use M= instead of SUBDIRS= ... [ ok ]
50 >
51 > >>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz to
52 >
53 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/extra
54 >
55 > >>> Source unpacked in
56 >
57 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work
58 >
59 > >>> Compiling source in
60 >
61 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work ...
62 > * Preparing fglrx module
63 > make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu-
64 > LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.29-gentoo-r5 KDIR=/usr/src/linux kmod_build
65 > make -C /usr/src/linux
66 > M=/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules
67 >/fglrx/build_mod/2.6.x modules
68 > make[1]: Entering directory `/usr/src/linux-2.6.29-gentoo-r5'
69 > CC [M]
70 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
71 >glrx/build_mod/2.6.x/firegl_public.o CC [M]
72 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
73 >glrx/build_mod/2.6.x/kcl_acpi.o CC [M]
74 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
75 >glrx/build_mod/2.6.x/kcl_agp.o CC [M]
76 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
77 >glrx/build_mod/2.6.x/kcl_debug.o CC [M]
78 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
79 >glrx/build_mod/2.6.x/kcl_ioctl.o
80 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
81 >glrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_EvalObject':
82 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
83 >glrx/build_mod/2.6.x/kcl_acpi.c:229: error: dereferencing pointer to
84 > incomplete type
85 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
86 >glrx/build_mod/2.6.x/kcl_acpi.c:255: error: dereferencing pointer to
87 > incomplete type
88 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
89 >glrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_GetNotifyHandler':
90 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
91 >glrx/build_mod/2.6.x/kcl_acpi.c:483: error: dereferencing pointer to
92 > incomplete type
93 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
94 >glrx/build_mod/2.6.x/kcl_acpi.c:485: error: dereferencing pointer to
95 > incomplete type
96 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
97 >glrx/build_mod/2.6.x/kcl_acpi.c:487: error: dereferencing pointer to
98 > incomplete type
99 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
100 >glrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_GetNotifyContext':
101 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
102 >glrx/build_mod/2.6.x/kcl_acpi.c:510: error: dereferencing pointer to
103 > incomplete type
104 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
105 >glrx/build_mod/2.6.x/kcl_acpi.c:512: error: dereferencing pointer to
106 > incomplete type
107 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
108 >glrx/build_mod/2.6.x/kcl_acpi.c:514: error: dereferencing pointer to
109 > incomplete type
110 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
111 >glrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_UpdateNotifyHandler':
112 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
113 >glrx/build_mod/2.6.x/kcl_acpi.c:538: error: dereferencing pointer to
114 > incomplete type
115 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
116 >glrx/build_mod/2.6.x/kcl_acpi.c:538: error: dereferencing pointer to
117 > incomplete type
118 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
119 >glrx/build_mod/2.6.x/kcl_acpi.c:540: error: dereferencing pointer to
120 > incomplete type
121 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
122 >glrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_UpdateNotifyContext':
123 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
124 >glrx/build_mod/2.6.x/kcl_acpi.c:557: error: dereferencing pointer to
125 > incomplete type
126 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
127 >glrx/build_mod/2.6.x/kcl_acpi.c:557: error: dereferencing pointer to
128 > incomplete type
129 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
130 >glrx/build_mod/2.6.x/kcl_acpi.c:559: error: dereferencing pointer to
131 > incomplete type
132 > make[2]: ***
133 > [/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/
134 >fglrx/build_mod/2.6.x/kcl_acpi.o] Error 1
135 > make[2]: *** Waiting for unfinished jobs....
136 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
137 >glrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_GetEffectiveUid':
138 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
139 >glrx/build_mod/2.6.x/firegl_public.c:1429: error: 'struct task_struct' has
140 > no member named 'euid'
141 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
142 >glrx/build_mod/2.6.x/firegl_public.c: In function
143 > 'KCL_PosixSecurityCapSetIPCLock':
144 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
145 >glrx/build_mod/2.6.x/firegl_public.c:1784: error: 'struct task_struct' has
146 > no member named 'cap_effective'
147 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
148 >glrx/build_mod/2.6.x/firegl_public.c:1788: error: 'struct task_struct' has
149 > no member named 'cap_effective'
150 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
151 >glrx/build_mod/2.6.x/firegl_public.c: In function '__ke_vm_phys_addr_str':
152 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
153 >glrx/build_mod/2.6.x/firegl_public.c:3206: warning: return makes pointer
154 > from integer without a cast
155 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
156 >glrx/build_mod/2.6.x/firegl_public.c:3207: warning: return makes pointer
157 > from integer without a cast
158 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
159 >glrx/build_mod/2.6.x/firegl_public.c:3208: warning: return makes pointer
160 > from integer without a cast
161 > /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/f
162 >glrx/build_mod/2.6.x/firegl_public.c:3210: warning: return makes pointer
163 > from integer without a cast
164 > make[2]: ***
165 > [/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/
166 >fglrx/build_mod/2.6.x/firegl_public.o] Error 1
167 > make[1]: ***
168 > [_module_/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/
169 >modules/fglrx/build_mod/2.6.x] Error 2
170 > make[1]: Leaving directory `/usr/src/linux-2.6.29-gentoo-r5'
171 > make: *** [kmod_build] Error 2
172 > *
173 > * ERROR: x11-drivers/ati-drivers-8.552-r2 failed.
174 > * Call stack:
175 > * ebuild.sh, line 48: Called src_compile
176 > * environment, line 3410: Called linux-mod_src_compile
177 > * environment, line 2596: Called die
178 > * The specific snippet of code:
179 > * eval "emake HOSTCC="$(tc-getBUILD_CC)"
180 > CROSS_COMPILE=${CHOST}-
181 > LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS}
182 > ${BUILD_TARGETS} " || die "Unable to emake
183 > HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}-
184 > LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS}
185 > ${BUILD_TARGETS}";
186 > * The die message:
187 > * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc
188 > CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4
189 > KVER=2.6.29-gentoo-r5 KDIR=/usr/src/linux kmod_build
190 > *
191 > * If you need support, post the topmost build error, and the call stack if
192 > relevant.
193 > * A complete build log is located at
194 > '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/build.log'.
195 > * The ebuild environment file is located at
196 > '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/environment'.
197 > *
198 >
199 > Any ideas?
200 >
201 > There are many bugs listed on line but very few resolutions.
202 >
203 > Regards,
204
205 yes, the driver is from the stone ages. Since binary drivers like ati's can't
206 really be recompiled they become incompatible with newer kernel releases over
207 time. In fact no released ati driver is compatible with 2.6.29 at the moment.
208 Even the latest one (out for weeks but still not in portage), need a patch to
209 compile against 2.6.29.
210
211 So you have several possible ways to go:
212 - stay with the old, buggy driver and an old kernel.
213 - install a slightly newer driver and use 2.6.27 or 2.6.28.
214 - download this:
215 http://rapidshare.com/files/238417338/ati-drivers.tbz
216
217 unpack in your overlay/x11-drivers directory (probably /usr/local/portage/x11-
218 drivers)
219
220 add =x11-drivers/ati-drivers-8.612 ** to /etc/portage/package.keywords
221 emerge the drivers.
222
223 That said, the ati driver versions in portage are all outdated. This sucks A
224 LOT. And that a driver that is very buggy, whose ebuild was buggy and who is
225 from somewhere summer/fall last year is hilarious - in a very sad way.

Replies

Subject Author
Re: [gentoo-user] Ati-drivers emerge fails. Hazen Valliant-Saunders <hazenvs@×××××.com>