I am still stuck at revdep-rebuild step of upgrading to modular Xorg =(

Anyhow this particular bug happens on pyopengl package, and since it doesnt rebuild everything else is going to hell...

This error message is what I got by doing revdep-rebuild 2> crash_log. Any suggestions?

thanks,
Victor

[code=Error Message]>>> Regenerating /etc/ld.so.cache...
/usr/lib/python2.4/distutils/dist.py:222: UserWarning: 'licence' distribution option is deprecated; use 'license'
warnings.warn(msg)
unable to execute swig: No such file or directory
warning: build_w: Can't find SWIG, will just have to do with the existing wrapper source.
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from _configtest.c:4:
src/config.h:74:20: GL/glu.h: No such file or directory
Traceback (most recent call last):
File "/var/tmp/portage/pyopengl-2.0.0.44/work/PyOpenGL-2.0.0.44/setup/build_py.py", line 60, in run
src = os.path.join(os.path.splitext(file)[0]+ '.%04x.py' % int(open('api_version').read()))
IOError: [Errno 2] No such file or directory: 'api_version'
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from _configtest.c:4:
src/config.h:74:20: GL/glu.h: No such file or directory
Traceback (most recent call last):
File "/var/tmp/portage/pyopengl-2.0.0.44/work/PyOpenGL-2.0.0.44/setup/build_py.py", line 60, in run
src = os.path.join(os.path.splitext(file)[0]+ '.%04x.py' % int(open('api_version').read()))
IOError: [Errno 2] No such file or directory: 'api_version'
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from src/interface_util/interface_util.c:1:
src/interface_util/../config.h:74:20: GL/glu.h: No such file or directory
error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1

!!! ERROR: dev-python/pyopengl-2.0.0.44 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
ebuild.sh, line 1248: Called distutils_src_compile
distutils.eclass, line 38: Called die

SWIG Version 1.3.25
Copyright (c) 1995-1998
University of Utah and the Regents of the University of California
Copyright (c) 1998-2005
University of Chicago
Compiled with i686-pc-linux-gnu-g++ [i686-pc-linux-gnu]

i had same problem .. pyopengl failing with message about 'tcltk' not valid use flag for python 2.4.3.-r1. Following steps worked for me
a) vi path/to/$pyopengl-ebuild (u will find the file name in the error message)
b) look for the line about python & tcltk .. change tcltk to tk
c) ebuild /path/to/pyopengl_ebuild_file digest
d) emerge --resume

i had same problem .. pyopengl failing with message about 'tcltk' not valid use flag for python 2.4.3.-r1. Following steps worked for me
a) vi path/to/$pyopengl-ebuild (u will find the file name in the error message)
b) look for the line about python & tcltk .. change tcltk to tk
c) ebuild /path/to/pyopengl_ebuild_file digest
d) emerge --resume

worked for me. u may need to do USE="-tk" emerge python.

YMMV .. apologies if instructions are not verbose enough!

Worked like a charm for me. I "emerge -vp python" and didn't see the tcltk USE flag so I figured there may have been something wrong with the ebuild.

Very funny, on a fresh 2006.1 install, I get the same error but portage was complaining about a tk flag. It was necessary to change tk in tcltk in the ebuild to get it to work._________________[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

i had same problem .. pyopengl failing with message about 'tcltk' not valid use flag for python 2.4.3.-r1. Following steps worked for me
a) vi path/to/$pyopengl-ebuild (u will find the file name in the error message)
b) look for the line about python & tcltk .. change tcltk to tk
c) ebuild /path/to/pyopengl_ebuild_file digest
d) emerge --resume

worked for me. u may need to do USE="-tk" emerge python.

YMMV .. apologies if instructions are not verbose enough!

worked for me as well!! I encountered this error-message when I was emerging gimp. It seems like an ebuild-error (python has no tcltk-use flag! Is it worth for bugzilla??_________________Gentoo 2008.0/desktop | Kernel: 2.6.27-tuxonice | Arch: amd64 | KDE 3.5.9 | WU Wien |
----------
Share your kernel information @ http://klive.cpushare.com/

!!! dev-lang/python-2.4.3-r3 does not actually support the tcltk USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.

Can someone help me???
thanks.

I had the same problem and solved it by altering the pyopengl ebuild as suggested by gtfx123. Emerged fine after that. Maybe there's been a change in USE flags from tk to tcltk that hasn't made it into all ebuilds yet?_________________Laptop: PowerBook G4 Titanium 500 MHz 768MB ppc
Desktop: Athlon 2500+ 1GB Asus A7V600 ~x86
Desktop: Athlon64 3000+ Venice 2GB Asus A8V Deluxe ~amd64

!!! dev-lang/python-2.4.3-r1 does not actually support the tk USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.

Re-read this thread, make the change in the ebuild and run

Code:

ebuild pyopengl-2.0.0.44 digest

and emerge must work.

EDIT:
I filled a bug repport: https://bugs.gentoo.org/show_bug.cgi?id=147809_________________[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

No, re-emerge python, the check is correct. There's no tcltk use flag for
python, it's been changed to tk. (Just run emerge -NuDpv world to check).

So, the right solution is to re-emerge python. Maybe at an emerge -NuDp world is a good thing to do._________________[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

No, re-emerge python, the check is correct. There's no tcltk use flag for
python, it's been changed to tk. (Just run emerge -NuDpv world to check).

So, the right solution is to re-emerge python. Maybe at an emerge -NuDp world is a good thing to do.

Yup! Worked for me. Fresh install of 2006.1 and pyopengl refused to compile. Recompiling python shows it you're not someone to be messed with and pyopengl will then behave. _________________Beauty is in the eye of the beholder. Get it out with Optrex!

!!! dev-lang/python-2.4.3-r1 does not actually support the tk USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.

I know you have found the solution for this error, but i dont know how to do this:

Quote:

i had same problem .. pyopengl failing with message about 'tcltk' not valid use flag for python 2.4.3.-r1. Following steps worked for me
a) vi path/to/$pyopengl-ebuild (u will find the file name in the error message)
b) look for the line about python & tcltk .. change tcltk to tk
c) ebuild /path/to/pyopengl_ebuild_file digest
d) emerge --resume

worked for me. u may need to do USE="-tk" emerge python.

YMMV .. apologies if instructions are not verbose enough!

Should I leave the Gentoo Linux Installer?
Or what steps do i need to follow?

This is my first time installing Gentoo and this error is a little frustrating hehe.

It seam at this break the installation. The live cd install is for users that don't have internet acces. So if you have internet acces, you must download a stage 3 tarball and use it for the installation. Follow the regular handbook for that: http://www.gentoo.org/doc/en/handbook/index.xml

If you don't have internet acces, it is nothing else to do as to wait until this is fixed by the devs.

EDIT: Or maybe at you have an old version of this installer and it has been already fixed. The bug is marked as won't fix, but I just added a comment about your problem.

EDIT2: run

Code:

emerge --sync
emerge -NuDp world

_________________[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

Or you can ask directly on the bug report, but provide as many explanations as possible._________________[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

In the maintime, you have no other thing to do as to wait, or use a stage 3 tarball if you have an internet access. The livecd is really for networkless installation, but if you have a network during the install, the normal install with a steage 3 is much better. You must follow the 2006 handbook, http://www.gentoo.org/doc/en/handbook/index.xml.

An alternative, is to install or use another linux distribution, knoopix as exemple, and follow this guide knoopix installation. The advantage with the knoopix install is at you can use the whole harddisk for gentoo. But if you allready have a linux distribution, and have at least one free partition, it is just to do the same and each time you see the word knoopix in this guide, you replace it by the name of your already installed distribution._________________[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

revdep-rebuild is provided by the gentoolkit package; don't forget to emerge it first:

Code Listing 17: Installing the gentoolkit package

Code:

# emerge gentoolkit

If after that, the problem remain, re-emerge python._________________[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]