Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Cc: realnc@×××××.de
Subject: Re: [gentoo-user] mesa build failure
Date: Sat, 27 Jun 2009 18:26:27
Message-Id: 5bdc1c8b0906271126t26d91c5creeaaccbb038a3664@mail.gmail.com
In Reply to: Re: [gentoo-user] mesa build failure by Mark Knecht
1 Copying Nikos as I think he may have the answer right on the tip of his tongue.
2 Bulk of message posted at the bottom.
3
4 On Sat, Jun 27, 2009 at 10:32 AM, Mark Knecht<markknecht@×××××.com> wrote:
5 > On Sat, Jun 27, 2009 at 10:27 AM, Mark Knecht<markknecht@×××××.com> wrote:
6 >> On Sat, Jun 27, 2009 at 10:25 AM, Mark Knecht<markknecht@×××××.com> wrote:
7 >>> On Sat, Jun 27, 2009 at 10:18 AM, Alan McKinnon<alan.mckinnon@×××××.com> wrote:
8 >>>> On Saturday 27 June 2009 19:10:43 Mark Knecht wrote:
9 >>>>> On Sat, Jun 27, 2009 at 2:34 AM, Alan McKinnon<alan.mckinnon@×××××.com>
10 >>>> wrote:
11 >>>>> > On Saturday 27 June 2009 06:24:12 Mark Knecht wrote:
12 >>>>> >> On Fri, Jun 26, 2009 at 12:30 PM, Alan McKinnon<alan.mckinnon@×××××.com>
13 >>>>> >
14 >>>>> > wrote:
15 >>>>> >> > On Friday 26 June 2009 21:05:01 Mark Knecht wrote:
16 >>>>> >> >> So the weirdness continues. mesa built but then xorg-server failed
17 >>>>> >> >> with the same failure:
18 >>>>> >> >>
19 >>>>> >> >>
20 >>>>> >> >>  * >>> SetUID: [chmod go-r] /usr/bin/Xorg ...
21 >>>>> >> >>                        [ ok ]
22 >>>>> >> >>
23 >>>>> >> >> Switching to xorg-x11 OpenGL interface...ln: creating symbolic link
24 >>>>> >> >> `./libglx.so': File exists
25 >>>>> >> >> !!! Error: Failed to create /lib/libglx.so
26 >>>>> >> >
27 >>>>> >> > Looks like you have a file collision between xorg-server and mesa,
28 >>>>> >> > which is odd as those packages get a lot of testing.
29 >>>>> >> >
30 >>>>> >> > Anything on bugs.gentoo.org?
31 >>>>> >>
32 >>>>> >> Unfortunately it seem that there are bug reports on this and more
33 >>>>> >> unfortunately they have apparently been going on nearly a year now.
34 >>>>> >> It's not a Gentoo thing specifically as there are Ubuntu, Debian and
35 >>>>> >> other distros with reports in their forums.
36 >>>>> >>
37 >>>>> >> There was a possible by hand fix for it but I'll need to look at that
38 >>>>> >> over the weekend to see if it makes sense on this machine.
39 >>>>> >>
40 >>>>> >> Bummer. I hate banging my head up against a wall made of problems no
41 >>>>> >> one seems to be fixing.
42 >>>>> >>
43 >>>>> >> http://bugs.gentoo.org/247685
44 >>>>> >
45 >>>>> > The fix seems (in principle at least) to be brain-dead easy:
46 >>>>> >
47 >>>>> > - all ebuilds that merge opengl files should put them in distinct
48 >>>>> > locations by name to avoid collisions
49 >>>>> > - the contents of /usr/lib64/opengl/xorg-x11/extensions/ should be
50 >>>>> > symlinks with a sane default put there by xorg-server and modified by
51 >>>>> > eselect
52 >>>>> >
53 >>>>> > Nikos's comments are especially sane in that thread. Perhaps he'll come
54 >>>>> > along, see this thread and help you out further.
55 >>>>> >
56 >>>>> > I suspect that the temporary workaround will be to delete a symlink and
57 >>>>> > emerge stuff, then remember to always do this on every future re-emerge
58 >>>>> >
59 >>>>> > --
60 >>>>> > alan dot mckinnon at gmail dot com
61 >>>>>
62 >>>>> In concept it does seem fairly straight forward, but to some extent
63 >>>>> I'm not clear why my previous attempts didn't work, unless the
64 >>>>> questionable files remained behind. What I attempted to do was
65 >>>>> completely remove everything X, but I probably didn't specifically
66 >>>>> remove the stuff in /usr/lib/opengl/xorg-x11/extensions. I was
67 >>>>> expecting the emerge to do that.
68 >>>>
69 >>>> According to the bug report you mentioned earlier, the ebuild is attempting to
70 >>>> perform eselect too late in the process, which fails, and the ebuild
71 >>>> immediately exits.
72 >>>>
73 >>>> So it's not surprising that dodgy files are left behind which you must remove
74 >>>> manually.
75 >>>>
76 >>>> --
77 >>>> alan dot mckinnon at gmail dot com
78 >>>>
79 >>>>
80 >>> So I'm little confused by a couple of the postings in that report. I
81 >>> did emerge -C glproto/eselect/mesa/xorg-server and then made sure
82 >>> there was nothing left in those directories at all. Should I emerge
83 >>> eselect, manually do a select, and then emerge the rest of the files?
84 >>>
85 >>> Or emerge eselect and maybe mesa, do the eselect, then xorg-server?
86 >>>
87 >>> mesa is currently building. glproto created
88 >>> /usr/lib/opengl/xorg-x11/include, but the other two directories are
89 >>> there yet.
90 >>>
91 >>> Cheers,
92 >>> Mark
93 >>>
94 >>
95 >> With mesa building in screen I tried the eselect step. It completes
96 >> normally but the extensions directory isn't there yet so there's
97 >> nothing to check.
98 >>
99 >> [detached]
100 >> myth12 ~ # eselect opengl list
101 >> Available OpenGL implementations:
102 >>  [1]   xorg-x11 *
103 >> myth12 ~ # eselect opengl set 1
104 >> Switching to xorg-x11 OpenGL interface... done
105 >> myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/
106 >> total 12
107 >> drwxr-xr-x 3 root root 4096 Jun 27 10:20 .
108 >> drwxr-xr-x 4 root root 4096 Jun 27 10:20 ..
109 >> drwxr-xr-x 2 root root 4096 Jun 27 10:20 include
110 >> myth12 ~ #
111 >>
112 >
113 > Ok, with mesa finished building there are now two more directories
114 > with some header files added in include and some links and files in
115 > lib:
116 >
117 > myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/
118 > total 20
119 > drwxr-xr-x 5 root root 4096 Jun 27 10:28 .
120 > drwxr-xr-x 4 root root 4096 Jun 27 10:20 ..
121 > drwxr-xr-x 2 root root 4096 Jun 27 10:28 extensions
122 > drwxr-xr-x 2 root root 4096 Jun 27 10:28 include
123 > drwxr-xr-x 2 root root 4096 Jun 27 10:28 lib
124 > myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/extensions/
125 > total 8
126 > drwxr-xr-x 2 root root 4096 Jun 27 10:28 .
127 > drwxr-xr-x 5 root root 4096 Jun 27 10:28 ..
128 > myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/include/
129 > total 716
130 > drwxr-xr-x 2 root root   4096 Jun 27 10:28 .
131 > drwxr-xr-x 5 root root   4096 Jun 27 10:28 ..
132 > -rw-r--r-- 1 root root  90752 Jun 27 10:28 gl.h
133 > -rw-r--r-- 1 root root 461180 Jun 27 10:28 glext.h
134 > -rw-r--r-- 1 root root  17155 Jun 27 10:28 glx.h
135 > -rw-r--r-- 1 root root  34142 Jun 27 10:28 glxext.h
136 > -rw-r--r-- 1 root root   2453 Jun 27 10:20 glxmd.h
137 > -rw-r--r-- 1 root root  77887 Jun 27 10:20 glxproto.h
138 > -rw-r--r-- 1 root root  10613 Jun 27 10:20 glxtokens.h
139 > myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/lib
140 > total 456
141 > drwxr-xr-x 2 root root   4096 Jun 27 10:28 .
142 > drwxr-xr-x 5 root root   4096 Jun 27 10:28 ..
143 > -rw-r--r-- 1 root root    743 Jun 27 10:28 libGL.la
144 > lrwxrwxrwx 1 root root     12 Jun 27 10:28 libGL.so -> libGL.so.1.2
145 > lrwxrwxrwx 1 root root     12 Jun 27 10:28 libGL.so.1 -> libGL.so.1.2
146 > -rwxr-xr-x 1 root root 448056 Jun 27 10:28 libGL.so.1.2
147 > myth12 ~ #
148 >
149 > Still no problem doing a set in eselect. OK so far... (I think)
150 >
151 > myth12 ~ # eselect opengl list
152 > Available OpenGL implementations:
153 >  [1]   xorg-x11 *
154 > myth12 ~ # eselect opengl set 1
155 > Switching to xorg-x11 OpenGL interface... done
156 > myth12 ~ #
157 >
158 > Now I'll emerge xorg-server.
159 >
160 > Cheers,
161 > Mark
162 >
163
164 OK - so now I'm not so sure what the correct next step is. The
165 xorg-server emerge completed cleanly but the contents of the
166 extensions directory are a single file, not a link and now eselect
167 opengl set 1 fails:
168
169 myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/
170 total 20
171 drwxr-xr-x 5 root root 4096 Jun 27 10:28 .
172 drwxr-xr-x 4 root root 4096 Jun 27 10:20 ..
173 drwxr-xr-x 2 root root 4096 Jun 27 10:57 extensions
174 drwxr-xr-x 2 root root 4096 Jun 27 10:28 include
175 drwxr-xr-x 2 root root 4096 Jun 27 10:28 lib
176 myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/extensions/
177 total 340
178 drwxr-xr-x 2 root root 4096 Jun 27 10:57 .
179 drwxr-xr-x 5 root root 4096 Jun 27 10:28 ..
180 -rwxr-xr-x 1 root root 334456 Jun 27 10:57 libglx.so
181 myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/include/
182 total 716
183 drwxr-xr-x 2 root root 4096 Jun 27 10:28 .
184 drwxr-xr-x 5 root root 4096 Jun 27 10:28 ..
185 -rw-r--r-- 1 root root 90752 Jun 27 10:28 gl.h
186 -rw-r--r-- 1 root root 461180 Jun 27 10:28 glext.h
187 -rw-r--r-- 1 root root 17155 Jun 27 10:28 glx.h
188 -rw-r--r-- 1 root root 34142 Jun 27 10:28 glxext.h
189 -rw-r--r-- 1 root root 2453 Jun 27 10:20 glxmd.h
190 -rw-r--r-- 1 root root 77887 Jun 27 10:20 glxproto.h
191 -rw-r--r-- 1 root root 10613 Jun 27 10:20 glxtokens.h
192 myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/lib/
193 total 456
194 drwxr-xr-x 2 root root 4096 Jun 27 10:28 .
195 drwxr-xr-x 5 root root 4096 Jun 27 10:28 ..
196 -rw-r--r-- 1 root root 743 Jun 27 10:28 libGL.la
197 lrwxrwxrwx 1 root root 12 Jun 27 10:28 libGL.so -> libGL.so.1.2
198 lrwxrwxrwx 1 root root 12 Jun 27 10:28 libGL.so.1 -> libGL.so.1.2
199 -rwxr-xr-x 1 root root 448056 Jun 27 10:28 libGL.so.1.2
200 myth12 ~ #
201
202
203 myth12 ~ # eselect opengl list
204 Available OpenGL implementations:
205 [1] xorg-x11
206 myth12 ~ # eselect opengl set 1
207 Switching to xorg-x11 OpenGL interface...ln: creating symbolic link
208 `./libglx.so': File exists
209 !!! Error: Failed to create lib/libglx.so
210 Killed
211 myth12 ~ #
212
213
214
215 myth12 ~ # slocate libglx.so
216 /usr/lib/opengl/xorg-x11/extensions/libglx.so
217 /usr/lib/xorg/modules/extensions/libglx.so
218 myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/extensions/libglx.so
219 -rwxr-xr-x 1 root root 334456 Jun 27 10:57
220 /usr/lib/opengl/xorg-x11/extensions/libglx.so
221 myth12 ~ # ls -al /usr/lib/xorg/modules/extensions/libglx.so
222 lrwxrwxrwx 1 root root 42 Jun 23 16:42
223 /usr/lib/xorg/modules/extensions/libglx.so ->
224 //usr//lib/opengl/ati/extensions/libglx.so
225 myth12 ~ #
226
227
228 The second one is a link that I suppose it broken because it's showing
229 up in red. However I don't know if it was there after removing
230 everything and redoing the emerges as I didn't check for it.
231
232 Basically, if the 'thing' in extensions is supposed to be a link, then
233 where is the real libglx.so supposed to go?
234
235 Con-fuzed...
236
237 - Mark

Replies

Subject Author
Re: [gentoo-user] mesa build failure Volker Armin Hemmann <volkerarmin@××××××××××.com>