First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 59515
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Michele Mordenti <michele.mordenti@tin.it>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
torcs.log emerge torcs 2>&1 | tee torcs.log text/plain Michele Mordenti 2004-08-09 02:11 0000 57.79 KB Details
system_info X and OpenGL info text/plain Michele Mordenti 2004-08-12 08:53 0000 8.57 KB Details
torcs-1.2.1.log emerge =torcs-1.2.1 2>&1 | tee torcs-1.2.1.log text/plain Michele Mordenti 2004-08-12 08:54 0000 74.46 KB Details
torcs-xorg-x11.log opengl-update xorg-x11; emerge torcs; opengl-update nvidia text/plain Michele Mordenti 2004-08-12 09:51 0000 522.43 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 59515 depends on: Show dependency tree
Bug 59515 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-08-05 05:57 0000
emerge torcs
...CUT...
mkdir /var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/modules/track
 Exporting track.so to /var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/modules/track/track.so
make[4]: Leaving directory `/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src/modules/track'
make[4]: Entering directory `/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src/modules/graphic'
make[5]: Entering directory `/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src/modules/graphic/ssggraph'
gcc -E  -M -D__DEPEND__ -I/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include  -D_SVID_SOURCE -D_BSD_SOURCE -DSHM   grmain.cpp grboard.cpp grsound.cpp ssggraph.cpp grcam.cpp grcar.cpp grscreen.cpp grscene.cpp grutil.cpp grshadow.cpp grsmoke.cpp grskidmarks.cpp grloadac.cpp grmultitexstate.cpp grvtxtable.cpp grtrackmap.cpp grcarlight.cpp > .depend
In file included from grmain.cpp:32:
grmain.h:27:19: #if with no expression
In file included from grtrackmap.h:58,
                 from grboard.h:24,
                 from grboard.cpp:27:
grmain.h:27:19: #if with no expression
In file included from ssggraph.cpp:27:
grmain.h:27:19: #if with no expression
In file included from grtrackmap.h:58,
                 from grboard.h:24,
                 from grscreen.h:31,
                 from grcam.cpp:34:
grmain.h:27:19: #if with no expression
In file included from grcar.cpp:37:
grmain.h:27:19: #if with no expression
In file included from grscreen.cpp:30:
grmain.h:27:19: #if with no expression
In file included from grscene.cpp:38:
grmain.h:27:19: #if with no expression
In file included from grsmoke.cpp:36:
grmain.h:27:19: #if with no expression
In file included from grskidmarks.cpp:36:
grmain.h:27:19: #if with no expression
In file included from grloadac.cpp:30:
grmain.h:27:19: #if with no expression
In file included from grmultitexstate.cpp:25:
grmain.h:27:19: #if with no expression
In file included from grvtxtable.cpp:21:
grmain.h:27:19: #if with no expression
In file included from grtrackmap.h:58,
                 from grtrackmap.cpp:27:
grmain.h:27:19: #if with no expression
In file included from grcarlight.cpp:37:
grmain.h:27:19: #if with no expression
make[5]: *** [.depend] Error 1
make[5]: Leaving directory `/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src/modules/graphic/ssggraph'
make[4]: *** [subdirs] Error 1
make[4]: Leaving directory `/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src/modules/graphic'
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src/modules'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2'
make: *** [restart] Error 2

!!! ERROR: games-sports/torcs-1.2.2 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
 


emerge info 
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0, 
2.6.7-mord-r1) 
================================================================= 
System uname: 2.6.7-mord-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync3.it.gentoo.org/gentoo-portage" 
USE="X aalib acpi alsa apm arts avi berkdb cdr crypt cups divx4linux dvd 
encode esd foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 guile imlib jabber 
java joystick jpeg kde libg++ libwww linguas_it mad maildir mikmod mmx motif 
mozilla mpeg ncurses nls oggvorbis ooo-kde opengl oss pam pdflib perl png 
python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd 
tetex tiff truetype wmf x86 xml2 xmms xv xvid zlib"

------- Comment #1 From Mr. Bones. 2004-08-09 01:28:11 0000 -------
Can you attach the entire output (both stdout and stderr) of the attempted
merge as text/plain please?  It's not clear to me what's happening from just
the output you've included so far.  Reopen with the attachment.  Thanks.

------- Comment #2 From Michele Mordenti 2004-08-09 02:11:42 0000 -------
Created an attachment (id=37084) [edit]
emerge torcs 2>&1 | tee torcs.log

------- Comment #3 From Michele Mordenti 2004-08-09 14:40:02 0000 -------
In the attachment the entire output.

Thanks a lot.

------- Comment #4 From Mr. Bones. 2004-08-12 02:06:03 0000 -------
What are you using for X and opengl?  package and version please.

------- Comment #5 From Michele Mordenti 2004-08-12 08:53:27 0000 -------
Created an attachment (id=37286) [edit]
X and OpenGL info

------- Comment #6 From Michele Mordenti 2004-08-12 08:54:17 0000 -------
Created an attachment (id=37287) [edit]
emerge =torcs-1.2.1 2>&1 | tee torcs-1.2.1.log

------- Comment #7 From Michele Mordenti 2004-08-12 08:58:44 0000 -------
I use XORG 6.7.0-r1 (x86) with nVIDIA 1.0.6111 driver (~x86).
In the attachment more details.

I tried to compile it with my other desktop (AMD Athlon with GeForce2MX400) but it failed too.
The machine have same X and nvidia driver version, but CFLAGS=-march=athlon -O3 -pipe -fomit-frame-pointer".
I also tried the http://bugs.gentoo.org/show_bug.cgi?id=57071 patch but it doesn't work for my problem :-(

I remember that Torcs 1.2.1 runs smothly whith my old gentoo installation,
maybe xfree-4.3.0-rX and nVIDIA 1.0-5336, but now I have the same problem, see the torcs-1.2.1.log attachment.

So it really seams a X,nVIDIA problem.

Ciao.

------- Comment #8 From Michele Mordenti 2004-08-12 09:51:30 0000 -------
Created an attachment (id=37292) [edit]
opengl-update xorg-x11; emerge torcs; opengl-update nvidia

Meanwhile I emerged "celestia" and the .ebuild suggested me a workaround:
[quote]
	einfo	"Please note:"
	einfo	"if you experience problems building celestia with nvidia
drivers,"
	einfo	"you can try:"
	einfo	"opengl-update ${X11_IMPLEM}"
	einfo	"emerge celestia"
	einfo	"opengl-update nvidia"
[/quote]

Celestia hasn't problems, but torcs has!
So the sequence:
# opengl-update xorg-x11
# emerge torcs
# opengl-update nvidia
works fine!

Thanks for interest!

------- Comment #9 From stephen 2004-08-17 16:14:05 0000 -------
It's probably more of a code issue than it is a portage issue.  I think this is
because of a #if in the source code that should have been a #ifdef.

The work-around for me was to do this:
opengl-update xorg-x11
emerge torcs
opengl-update nvidia

Your particular situation might be different, but it's worth a try.

If anyone else is NOT getting the errors that this person did, try doing an
opengl-update to nvidia and then emergring.

------- Comment #10 From Mr. Bones. 2004-08-17 16:34:38 0000 -------
builds fine for me with nvidia-glx-1.0.4496-r2.  I'm adding xfree to CC so they
can take a look.

------- Comment #11 From Mr. Bones. 2004-09-09 02:09:22 0000 -------
Works fine for me with nvidia-glx-1.0.5336-r2

------- Comment #12 From Paul Varner 2004-09-15 10:56:58 0000 -------
I get the errors using xorg-x11-6.7.0-r2 and nvidia-glx-1.0.6111

Using the opengl-update workaround allowed it to compile.

------- Comment #13 From The Janitor 2004-09-23 03:04:53 0000 -------
for Mr. Bones from IRC.

XFree and nvidia 6111 on kernel 2.6.9-rc2, very recent installation from 2004-2, only about a dozen ebuilds added.

g++ -I/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/export/include  -O3 -march=pentium4 -funroll-loops -pipe -Wall -Wstrict-prototypes -O3 -mieee-fp -Wall -Wstrict-prototypes -O3 -mieee-fp  -D_SVID_SOURCE -D_BSD_SOURCE -DSHM  -c grmultitexstate.cpp
grmultitexstate.cpp: In member function `virtual void 
   grMultiTexState::apply(int)':
grmultitexstate.cpp:30: error: `glActiveTexture' undeclared (first use this 
   function)
grmultitexstate.cpp:30: error: (Each undeclared identifier is reported only 
   once for each function it appears in.)
make[5]: *** [grmultitexstate.o] Error 1
make[5]: Leaving directory `/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src/modules/graphic/ssggraph'
make[4]: *** [subdirs] Error 1

------- Comment #14 From The Janitor 2004-09-23 03:23:34 0000 -------
Followup

# opengl-update xfree
# emerge torcs

works for me now

------- Comment #15 From Andrew Bevitt 2004-09-23 17:15:06 0000 -------
OK i see what is happening... 

nvidia with the 61** releases provided basic OpenGL 1.1 support, the also provided a rudimentary glext.h header file that you had to include manually from the code if you wanted other GL stuff.

In this particular case the glActiveTexture is defined by OpenGL 1.3, but that is only supplied by GL/glext.h if you have GL_GLEXT_PROTOTYPES defined. But that is not the case by default (to mimic xorg-x11).

Why xorg-x11 works is because their gl.h header file contains all the NON-PROTOTYPED functions ... i haven't had time yet to actually turn the installed nvidia combination into this format 

------- Comment #16 From Mr. Bones. 2004-11-05 22:22:26 0000 -------
cyfred - any chance to look at this yet?

------- Comment #17 From Mr. Bones. 2004-12-09 19:13:18 0000 -------
I think this has been fixed with the latest nvidia-glx ebuilds.  remerge
nvidia-glx, run opengl-update and if you still have a problem, go ahead and
reopen.  Thanks.

First Last Prev Next    No search results available      Search page      Enter new bug