Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148626 - eselect-opengl not working on ppc64
Summary: eselect-opengl not working on ppc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC64 Linux
: High major
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 04:02 UTC by Coste Maxime
Modified: 2007-04-20 00:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log of mesa-6.5.1-r1 (build.log,14.56 KB, text/plain)
2007-03-19 19:55 UTC, José Costa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coste Maxime 2006-09-22 04:02:40 UTC
Hi, there is a bug in the mesa ebuild with the eselect-opengl system, mesa need glxproto.h which is installed by gentoo only in /usr/lib/opengl/xorg-x11/include, but at this stage of the install, no links are made in /usr/include/GL, so mesa installation fails.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-22 04:15:06 UTC
Works fine here, run eselect opengs set xorg-x11 and try again. If it still doesn't work, we need mesa/eselect-opengl version.
Comment 2 Coste Maxime 2006-09-22 08:27:11 UTC
that works, but should'nt the script do that for me ?
Comment 3 José Costa 2007-03-19 19:55:21 UTC
Created attachment 113802 [details]
build.log of mesa-6.5.1-r1
Comment 4 José Costa 2007-03-19 19:58:30 UTC
I think that the problem comes with x11-proto/glproto ebuild.
It fails when running switch_opengl_implem(). There's no xorg-x11 target on eselect.

I was doing a clean install btw.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-03-19 21:55:17 UTC
(In reply to comment #4)
> I think that the problem comes with x11-proto/glproto ebuild.
> It fails when running switch_opengl_implem(). There's no xorg-x11 target on
> eselect.

# eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11

xorg-x11 comes from mesa... 
Comment 6 Markus Rothe (RETIRED) gentoo-dev 2007-04-01 19:01:09 UTC
I've just reinstalled my system from scratch and I got the same error.

this seems to be /usr/include/gentoo-multilib/ releated? look at the build.log, there are some warings such as:

makedepend: warning:  glcontextmodes.c (reading /usr/include/gentoo-multilib/ppc64/bits/types.h, line 31): cannot find include file "stddef.h"

Coste: correct me, if I'm wrong, but your hardware does not look like x86 (according to the build.log)
Comment 7 Markus Rothe (RETIRED) gentoo-dev 2007-04-01 19:03:35 UTC
I'm not sure, if this bug is in glibc (the files in /usr/include/gentoo-multilib/ are from glibc) or in mesa. I guess it is in glibc, but I'll assign this to toolchain and ad x11 to CC to be sure.
Comment 8 SpanKY gentoo-dev 2007-04-01 22:35:14 UTC
stddef.h is part of gcc itself, so if you're missing that file, you've got problems

however, that warning is just a red herring ... makedepend is too stupid to search all of the proper include paths, thus the spam

the real error is exactly as the summary says:
In file included from clientattrib.c:38:
glxclient.h:59:25: error: GL/glxproto.h: No such file or directory

i hit this bug on my ppc64 because eselect-opengl was broken and didnt account properly for the multilib setup ... mentioned on #-ppc64 and iirc, someone already knew about it, so i didnt bother fixing it myself
Comment 9 José Costa 2007-04-01 22:57:44 UTC
I've talked to ranger and the problem is with the /etc/env.d/04multilib.

The lib64 dirs are missing. eselect uses the /etc/ld.so.conf to search for the xorg-x11 implementation and it fails without them.
Comment 10 Markus Rothe (RETIRED) gentoo-dev 2007-04-02 09:07:53 UTC
on my g5:

G5 ~ # eselect opengl set xorg-x11
Switching to xorg-x11 OpenGL interface... done
G5 ~ # find / -name glxproto.h
/usr/lib64/opengl/xorg-x11/include/glxproto.h
G5 ~ #


on my x86 machine:

sigma ~ # find / -name glxproto.h
/usr/include/GL/glxproto.h
/usr/lib/opengl/xorg-x11/include/glxproto.h
sigma ~ #
Comment 11 Brent Baude (RETIRED) gentoo-dev 2007-04-02 14:33:33 UTC
Corsair & Meetra,

Have you both tried with the *latest* 64ul stage3 and release snapshot?  Wolfie tweaked some profile foo and I do not see this problem anymore.

equery l mesa
[ Searching for package 'mesa' in all categories among: ]
 * installed packages
[I--] [  ] media-libs/mesa-6.5.1-r1 (0)
Comment 12 Markus Rothe (RETIRED) gentoo-dev 2007-04-03 14:22:50 UTC
(In reply to comment #11) 
> Have you both tried with the *latest* 64ul stage3 and release snapshot?  Wolfie
> tweaked some profile foo and I do not see this problem anymore.

yes, this fixed it.

reassigning to wolf31o2. please close once this profile changes are in portage.
Comment 13 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-20 00:53:46 UTC
I've added the profiles to the tree for 2007.0, but I didn't touch anything prior since those *should* be working already.