From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MKfK2-00034R-R8 for garchives@archives.gentoo.org; Sat, 27 Jun 2009 21:20:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7845E044F; Sat, 27 Jun 2009 21:20:29 +0000 (UTC) Received: from mail-px0-f197.google.com (mail-px0-f197.google.com [209.85.216.197]) by pigeon.gentoo.org (Postfix) with ESMTP id 6C080E044F for ; Sat, 27 Jun 2009 21:20:29 +0000 (UTC) Received: by pxi35 with SMTP id 35so255553pxi.32 for ; Sat, 27 Jun 2009 14:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=2Sn9EW7y1lxcgDfreWBep5tBfO1Cc+5F/NMmCTXQjr8=; b=I+t5pH1+J3vgfk1HOx+Z+OdF3RQVOwQ3FfkbfqT9NhJrXBiDFXxlXwoBo7N1PimRDX 8vCagt/lVhIUlbQl5PiYQqGZNMopayhm/FT4X6HhCg5CebBUxJSZksQ3Azsl//PibCxp 4epr2g5hLUYVlqoRrvNZMOL4TucZ9c6647coU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=r26puPToLXUAG8Gla7y6uzQi8OUubPbwkbIzw16yV5m9JDag/HMA7kTGdfZEe6cga/ HSlZdD9tt3H59v4CdkU6pFHD6Pzre5lmMe8Bj8jmtOmpf1+UlRTyvzuID04OoFE7BeV9 OJlJuoD7DBBYBzhL1Tsqa6oOxDJmUemM4G7h4= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.114.112.18 with SMTP id k18mr8387712wac.131.1246137628948; Sat, 27 Jun 2009 14:20:28 -0700 (PDT) In-Reply-To: <200906272300.50441.volkerarmin@googlemail.com> References: <5bdc1c8b0906260816w2e028a7v8759a4d3e3a48504@mail.gmail.com> <200906272225.21055.volkerarmin@googlemail.com> <5bdc1c8b0906271354u20efa5bi543d0a0121a8a86a@mail.gmail.com> <200906272300.50441.volkerarmin@googlemail.com> Date: Sat, 27 Jun 2009 14:20:28 -0700 Message-ID: <5bdc1c8b0906271420n2facaa49t1106b66f958a413a@mail.gmail.com> Subject: Re: [gentoo-user] mesa build failure From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6b3b8a19-7054-446c-8c9a-6db9641015b7 X-Archives-Hash: ebbcbd970013f47ce32b2323c064d20b On Sat, Jun 27, 2009 at 2:00 PM, Volker Armin Hemmann wrote: > On Samstag 27 Juni 2009, Mark Knecht wrote: >> On Sat, Jun 27, 2009 at 1:25 PM, Volker Armin >> >> Hemmann wrote: >> > On Samstag 27 Juni 2009, Mark Knecht wrote: >> >> Copying Nikos as I think he may have the answer right on the tip of h= is >> >> tongue. Bulk of message posted at the bottom. >> >> >> >> On Sat, Jun 27, 2009 at 10:32 AM, Mark Knecht > wrote: >> >> > On Sat, Jun 27, 2009 at 10:27 AM, Mark Knecht > wrote: >> >> >> On Sat, Jun 27, 2009 at 10:25 AM, Mark Knecht >> > >> > wrote: >> >> >>> On Sat, Jun 27, 2009 at 10:18 AM, Alan >> >> >>> McKinnon >> > >> > wrote: >> >> >>>> On Saturday 27 June 2009 19:10:43 Mark Knecht wrote: >> >> >>>>> On Sat, Jun 27, 2009 at 2:34 AM, Alan >> >> >>>>> McKinnon >> >> >>>> >> >> >>>> wrote: >> >> >>>>> > On Saturday 27 June 2009 06:24:12 Mark Knecht wrote: >> >> >>>>> >> On Fri, Jun 26, 2009 at 12:30 PM, Alan >> >> >>>>> >> McKinnon >> >> >>>>> > >> >> >>>>> > wrote: >> >> >>>>> >> > On Friday 26 June 2009 21:05:01 Mark Knecht wrote: >> >> >>>>> >> >> So the weirdness continues. mesa built but then xorg-serv= er >> >> >>>>> >> >> failed with the same failure: >> >> >>>>> >> >> >> >> >>>>> >> >> >> >> >>>>> >> >> =C2=A0* >>> SetUID: [chmod go-r] /usr/bin/Xorg ... >> >> >>>>> >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0[ ok ] >> >> >>>>> >> >> >> >> >>>>> >> >> Switching to xorg-x11 OpenGL interface...ln: creating >> >> >>>>> >> >> symbolic link `./libglx.so': File exists >> >> >>>>> >> >> !!! Error: Failed to create /lib/libglx.so >> >> >>>>> >> > >> >> >>>>> >> > Looks like you have a file collision between xorg-server a= nd >> >> >>>>> >> > mesa, which is odd as those packages get a lot of testing. >> >> >>>>> >> > >> >> >>>>> >> > Anything on bugs.gentoo.org? >> >> >>>>> >> >> >> >>>>> >> Unfortunately it seem that there are bug reports on this and >> >> >>>>> >> more unfortunately they have apparently been going on nearly= a >> >> >>>>> >> year now. It's not a Gentoo thing specifically as there are >> >> >>>>> >> Ubuntu, Debian and other distros with reports in their forum= s. >> >> >>>>> >> >> >> >>>>> >> There was a possible by hand fix for it but I'll need to loo= k >> >> >>>>> >> at that over the weekend to see if it makes sense on this >> >> >>>>> >> machine. >> >> >>>>> >> >> >> >>>>> >> Bummer. I hate banging my head up against a wall made of >> >> >>>>> >> problems no one seems to be fixing. >> >> >>>>> >> >> >> >>>>> >> http://bugs.gentoo.org/247685 >> >> >>>>> > >> >> >>>>> > The fix seems (in principle at least) to be brain-dead easy: >> >> >>>>> > >> >> >>>>> > - all ebuilds that merge opengl files should put them in >> >> >>>>> > distinct locations by name to avoid collisions >> >> >>>>> > - the contents of /usr/lib64/opengl/xorg-x11/extensions/ shou= ld >> >> >>>>> > be symlinks with a sane default put there by xorg-server and >> >> >>>>> > modified by eselect >> >> >>>>> > >> >> >>>>> > Nikos's comments are especially sane in that thread. Perhaps >> >> >>>>> > he'll come along, see this thread and help you out further. >> >> >>>>> > >> >> >>>>> > I suspect that the temporary workaround will be to delete a >> >> >>>>> > symlink and emerge stuff, then remember to always do this on >> >> >>>>> > every future re-emerge >> >> >>>>> > >> >> >>>>> > -- >> >> >>>>> > alan dot mckinnon at gmail dot com >> >> >>>>> >> >> >>>>> In concept it does seem fairly straight forward, but to some >> >> >>>>> extent I'm not clear why my previous attempts didn't work, unle= ss >> >> >>>>> the questionable files remained behind. What I attempted to do = was >> >> >>>>> completely remove everything X, but I probably didn't specifica= lly >> >> >>>>> remove the stuff in /usr/lib/opengl/xorg-x11/extensions. I was >> >> >>>>> expecting the emerge to do that. >> >> >>>> >> >> >>>> According to the bug report you mentioned earlier, the ebuild is >> >> >>>> attempting to perform eselect too late in the process, which fai= ls, >> >> >>>> and the ebuild immediately exits. >> >> >>>> >> >> >>>> So it's not surprising that dodgy files are left behind which yo= u >> >> >>>> must remove manually. >> >> >>>> >> >> >>>> -- >> >> >>>> alan dot mckinnon at gmail dot com >> >> >>> >> >> >>> So I'm little confused by a couple of the postings in that report= . I >> >> >>> did emerge -C glproto/eselect/mesa/xorg-server and then made sure >> >> >>> there was nothing left in those directories at all. Should I emer= ge >> >> >>> eselect, manually do a select, and then emerge the rest of the >> >> >>> files? >> >> >>> >> >> >>> Or emerge eselect and maybe mesa, do the eselect, then xorg-serve= r? >> >> >>> >> >> >>> mesa is currently building. glproto created >> >> >>> /usr/lib/opengl/xorg-x11/include, but the other two directories a= re >> >> >>> there yet. >> >> >>> >> >> >>> Cheers, >> >> >>> Mark >> >> >> >> >> >> With mesa building in screen I tried the eselect step. It complete= s >> >> >> normally but the extensions directory isn't there yet so there's >> >> >> nothing to check. >> >> >> >> >> >> [detached] >> >> >> myth12 ~ # eselect opengl list >> >> >> Available OpenGL implementations: >> >> >> =C2=A0[1] =C2=A0 xorg-x11 * >> >> >> myth12 ~ # eselect opengl set 1 >> >> >> Switching to xorg-x11 OpenGL interface... done >> >> >> myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/ >> >> >> total 12 >> >> >> drwxr-xr-x 3 root root 4096 Jun 27 10:20 . >> >> >> drwxr-xr-x 4 root root 4096 Jun 27 10:20 .. >> >> >> drwxr-xr-x 2 root root 4096 Jun 27 10:20 include >> >> >> myth12 ~ # >> >> > >> >> > Ok, with mesa finished building there are now two more directories >> >> > with some header files added in include and some links and files in >> >> > lib: >> >> > >> >> > myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/ >> >> > total 20 >> >> > drwxr-xr-x 5 root root 4096 Jun 27 10:28 . >> >> > drwxr-xr-x 4 root root 4096 Jun 27 10:20 .. >> >> > drwxr-xr-x 2 root root 4096 Jun 27 10:28 extensions >> >> > drwxr-xr-x 2 root root 4096 Jun 27 10:28 include >> >> > drwxr-xr-x 2 root root 4096 Jun 27 10:28 lib >> >> > myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/extensions/ >> >> > total 8 >> >> > drwxr-xr-x 2 root root 4096 Jun 27 10:28 . >> >> > drwxr-xr-x 5 root root 4096 Jun 27 10:28 .. >> >> > myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/include/ >> >> > total 716 >> >> > drwxr-xr-x 2 root root =C2=A0 4096 Jun 27 10:28 . >> >> > drwxr-xr-x 5 root root =C2=A0 4096 Jun 27 10:28 .. >> >> > -rw-r--r-- 1 root root =C2=A090752 Jun 27 10:28 gl.h >> >> > -rw-r--r-- 1 root root 461180 Jun 27 10:28 glext.h >> >> > -rw-r--r-- 1 root root =C2=A017155 Jun 27 10:28 glx.h >> >> > -rw-r--r-- 1 root root =C2=A034142 Jun 27 10:28 glxext.h >> >> > -rw-r--r-- 1 root root =C2=A0 2453 Jun 27 10:20 glxmd.h >> >> > -rw-r--r-- 1 root root =C2=A077887 Jun 27 10:20 glxproto.h >> >> > -rw-r--r-- 1 root root =C2=A010613 Jun 27 10:20 glxtokens.h >> >> > myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/lib >> >> > total 456 >> >> > drwxr-xr-x 2 root root =C2=A0 4096 Jun 27 10:28 . >> >> > drwxr-xr-x 5 root root =C2=A0 4096 Jun 27 10:28 .. >> >> > -rw-r--r-- 1 root root =C2=A0 =C2=A0743 Jun 27 10:28 libGL.la >> >> > lrwxrwxrwx 1 root root =C2=A0 =C2=A0 12 Jun 27 10:28 libGL.so -> li= bGL.so.1.2 >> >> > lrwxrwxrwx 1 root root =C2=A0 =C2=A0 12 Jun 27 10:28 libGL.so.1 -> = libGL.so.1.2 >> >> > -rwxr-xr-x 1 root root 448056 Jun 27 10:28 libGL.so.1.2 >> >> > myth12 ~ # >> >> > >> >> > Still no problem doing a set in eselect. OK so far... (I think) >> >> > >> >> > myth12 ~ # eselect opengl list >> >> > Available OpenGL implementations: >> >> > =C2=A0[1] =C2=A0 xorg-x11 * >> >> > myth12 ~ # eselect opengl set 1 >> >> > Switching to xorg-x11 OpenGL interface... done >> >> > myth12 ~ # >> >> > >> >> > Now I'll emerge xorg-server. >> >> > >> >> > Cheers, >> >> > Mark >> >> >> >> OK - so now I'm not so sure what the correct next step is. The >> >> xorg-server emerge completed cleanly but the contents of the >> >> extensions directory are a single file, not a link and now eselect >> >> opengl set 1 fails: >> >> >> >> myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/ >> >> total 20 >> >> drwxr-xr-x 5 root root 4096 Jun 27 10:28 . >> >> drwxr-xr-x 4 root root 4096 Jun 27 10:20 .. >> >> drwxr-xr-x 2 root root 4096 Jun 27 10:57 extensions >> >> drwxr-xr-x 2 root root 4096 Jun 27 10:28 include >> >> drwxr-xr-x 2 root root 4096 Jun 27 10:28 lib >> >> myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/extensions/ >> >> total 340 >> >> drwxr-xr-x 2 root root =C2=A0 4096 Jun 27 10:57 . >> >> drwxr-xr-x 5 root root =C2=A0 4096 Jun 27 10:28 .. >> >> -rwxr-xr-x 1 root root 334456 Jun 27 10:57 libglx.so >> >> myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/include/ >> >> total 716 >> >> drwxr-xr-x 2 root root =C2=A0 4096 Jun 27 10:28 . >> >> drwxr-xr-x 5 root root =C2=A0 4096 Jun 27 10:28 .. >> >> -rw-r--r-- 1 root root =C2=A090752 Jun 27 10:28 gl.h >> >> -rw-r--r-- 1 root root 461180 Jun 27 10:28 glext.h >> >> -rw-r--r-- 1 root root =C2=A017155 Jun 27 10:28 glx.h >> >> -rw-r--r-- 1 root root =C2=A034142 Jun 27 10:28 glxext.h >> >> -rw-r--r-- 1 root root =C2=A0 2453 Jun 27 10:20 glxmd.h >> >> -rw-r--r-- 1 root root =C2=A077887 Jun 27 10:20 glxproto.h >> >> -rw-r--r-- 1 root root =C2=A010613 Jun 27 10:20 glxtokens.h >> >> myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/lib/ >> >> total 456 >> >> drwxr-xr-x 2 root root =C2=A0 4096 Jun 27 10:28 . >> >> drwxr-xr-x 5 root root =C2=A0 4096 Jun 27 10:28 .. >> >> -rw-r--r-- 1 root root =C2=A0 =C2=A0743 Jun 27 10:28 libGL.la >> >> lrwxrwxrwx 1 root root =C2=A0 =C2=A0 12 Jun 27 10:28 libGL.so -> libG= L.so.1.2 >> >> lrwxrwxrwx 1 root root =C2=A0 =C2=A0 12 Jun 27 10:28 libGL.so.1 -> li= bGL.so.1.2 >> >> -rwxr-xr-x 1 root root 448056 Jun 27 10:28 libGL.so.1.2 >> >> myth12 ~ # >> >> >> >> >> >> myth12 ~ # eselect opengl list >> >> Available OpenGL implementations: >> >> =C2=A0 [1] =C2=A0 xorg-x11 >> >> myth12 ~ # eselect opengl set 1 >> >> Switching to xorg-x11 OpenGL interface...ln: creating symbolic link >> >> `./libglx.so': File exists >> >> !!! Error: Failed to create lib/libglx.so >> >> Killed >> >> myth12 ~ # >> >> >> >> >> >> >> >> myth12 ~ # slocate libglx.so >> >> /usr/lib/opengl/xorg-x11/extensions/libglx.so >> >> /usr/lib/xorg/modules/extensions/libglx.so >> >> myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/extensions/libglx.so >> >> -rwxr-xr-x 1 root root 334456 Jun 27 10:57 >> >> /usr/lib/opengl/xorg-x11/extensions/libglx.so >> >> myth12 ~ # ls -al /usr/lib/xorg/modules/extensions/libglx.so >> >> lrwxrwxrwx 1 root root 42 Jun 23 16:42 >> >> /usr/lib/xorg/modules/extensions/libglx.so -> >> >> //usr//lib/opengl/ati/extensions/libglx.so >> >> myth12 ~ # >> >> >> >> >> >> The second one is a link that I suppose it broken because it's showin= g >> >> up in red. However I don't know if it was there after removing >> >> everything and redoing the emerges as I didn't check for it. >> >> >> >> Basically, if the 'thing' in extensions is supposed to be a link, the= n >> >> where is the real libglx.so supposed to go? >> >> >> >> Con-fuzed... >> >> >> >> - Mark >> > >> > /usr/lib64/opengl/ati/extensions/libglx.so >> > /usr/lib64/opengl/xorg-x11/extensions/libglx.so >> > >> > is where libglx.so belongs >> > >> > /usr/lib64/xorg/modules/extensions/libglx.so >> > >> > is the symlink >> > >> > so, why not follow the instructions in the bug, that was posted in the >> > thread? >> >> Which is what I got by doing a reinstall. So what's the problem? >> >> myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/extensions/libglx.so >> -rwxr-xr-x 1 root root 334456 Jun 27 12:56 > > that is correct. > >> /usr/lib/opengl/xorg-x11/extensions/libglx.so >> myth12 ~ # ls -al /usr/lib/xorg/modules/extensions/libglx.so >> lrwxrwxrwx 1 root root 45 Jun 27 13:00 >> /usr/lib/xorg/modules/extensions/libglx.so -> >> /usr/lib/opengl/xorg-x11/extensions/libglx.so >> myth12 ~ # >> > > and that is correct too. > > equery belongs /usr/lib64/opengl/xorg-x11/extensions/libglx.so > =C2=A0* Searching for /usr/lib64/opengl/xorg-x11/extensions/libglx.so ... > x11-base/xorg-server-1.6.1.901-r4 (/usr/lib64/opengl/xorg- > x11/extensions/libglx.so) > > mesa does not install any libglx files. > > I think it's all working now. I still cannot run X as I cannot figure out the right wat to set up xorg.conf for the TV Out port but as far as the mesa build failure after emerging things a few times and finally figuring out what I had to delete, etc., I *think* it's OK now. As far as the bug report went it just didn't click for me. Disappointing that after something like 10 months no one has fixed the ebuild. Cheers, Mark