Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59515 - torcs-1.2.2 failed
Summary: torcs-1.2.2 failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-05 05:57 UTC by Michele Mordenti
Modified: 2004-12-09 19:13 UTC (History)
2 users (show)

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


Attachments
emerge torcs 2>&1 | tee torcs.log (torcs.log,57.79 KB, text/plain)
2004-08-09 02:11 UTC, Michele Mordenti
Details
X and OpenGL info (system_info,8.57 KB, text/plain)
2004-08-12 08:53 UTC, Michele Mordenti
Details
emerge =torcs-1.2.1 2>&1 | tee torcs-1.2.1.log (torcs-1.2.1.log,74.46 KB, text/plain)
2004-08-12 08:54 UTC, Michele Mordenti
Details
opengl-update xorg-x11; emerge torcs; opengl-update nvidia (torcs-xorg-x11.log,522.43 KB, text/plain)
2004-08-12 09:51 UTC, Michele Mordenti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Mordenti 2004-08-05 05:57:38 UTC
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 Mr. Bones. (RETIRED) gentoo-dev 2004-08-09 01:28:11 UTC
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 Michele Mordenti 2004-08-09 02:11:42 UTC
Created attachment 37084 [details]
emerge torcs 2>&1 | tee torcs.log
Comment 3 Michele Mordenti 2004-08-09 14:40:02 UTC
In the attachment the entire output.

Thanks a lot.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-08-12 02:06:03 UTC
What are you using for X and opengl?  package and version please.
Comment 5 Michele Mordenti 2004-08-12 08:53:27 UTC
Created attachment 37286 [details]
X and OpenGL info
Comment 6 Michele Mordenti 2004-08-12 08:54:17 UTC
Created attachment 37287 [details]
emerge =torcs-1.2.1 2>&1 | tee torcs-1.2.1.log
Comment 7 Michele Mordenti 2004-08-12 08:58:44 UTC
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 Michele Mordenti 2004-08-12 09:51:30 UTC
Created attachment 37292 [details]
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 stephen 2004-08-17 16:14:05 UTC
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 Mr. Bones. (RETIRED) gentoo-dev 2004-08-17 16:34:38 UTC
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 Mr. Bones. (RETIRED) gentoo-dev 2004-09-09 02:09:22 UTC
Works fine for me with nvidia-glx-1.0.5336-r2
Comment 12 Paul Varner (RETIRED) gentoo-dev 2004-09-15 10:56:58 UTC
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 The Janitor 2004-09-23 03:04:53 UTC
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 The Janitor 2004-09-23 03:23:34 UTC
Followup

# opengl-update xfree
# emerge torcs

works for me now
Comment 15 Andrew Bevitt 2004-09-23 17:15:06 UTC
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 Mr. Bones. (RETIRED) gentoo-dev 2004-11-05 22:22:26 UTC
cyfred - any chance to look at this yet?
Comment 17 Mr. Bones. (RETIRED) gentoo-dev 2004-12-09 19:13:18 UTC
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.