I get these errors when emerging snes9x: /usr/bin/nasm -f elf -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -i. -ii386 -o i386/fxemu2b.o i386/fxemu2b.asm /usr/bin/nasm -f elf -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -i. -ii386 -o i386/fxemu2.o i386/fxemu2.asm /usr/bin/nasm -f elf -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -i. -ii386 -o i386/fxemu2c.o i386/fxemu2c.asm /usr/bin/nasm -f elf -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -i. -ii386 -o i386/fxtable.o i386/fxtable.asm /usr/bin/nasm -f elf -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -i. -ii386 -o i386/sfxproc.o i386/sfxproc.asm /usr/bin/nasm -f elf -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -i . -i i386 i386/ZSNES.ASM -o i386/ZSNES.O /usr/bin/nasm -f elf -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -i . -i i386 i386/C4.ASM -o i386/C4.O /usr/bin/nasm -f elf -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -i. -ii386 -o i386/zsnesc4.o i386/zsnesc4.asm g++ -fno-rtti -INONE -c -mcpu=pentiumpro -O1 -fomit-frame-pointer -fno-exceptions -Wall -W -pedantic -Wno-unused-parameter -pipe -DMITSHM -Ii386 -I. -Iunzip -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -DZSNES_C4 -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DUSE_GLIDE -I/usr/include/glide -DMMX -DSDD1_DECOMP -DNO_INLINE_SET_GET -DZLIB -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H '-DACCEPT_SIZE_T=socklen_t' c4.cpp -o c4.o g++ -fno-rtti -INONE -c -mcpu=pentiumpro -O1 -fomit-frame-pointer -fno-exceptions -Wall -W -pedantic -Wno-unused-parameter -pipe -DMITSHM -Ii386 -I. -Iunzip -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -DZSNES_C4 -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DUSE_GLIDE -I/usr/include/glide -DMMX -DSDD1_DECOMP -DNO_INLINE_SET_GET -DZLIB -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H '-DACCEPT_SIZE_T=socklen_t' cpu.cpp -o cpu.o g++ -fno-rtti -INONE -c -mcpu=pentiumpro -O1 -fomit-frame-pointer -fno-exceptions -Wall -W -pedantic -Wno-unused-parameter -pipe -DMITSHM -Ii386 -I. -Iunzip -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -DZSNES_C4 -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DUSE_GLIDE -I/usr/include/glide -DMMX -DSDD1_DECOMP -DNO_INLINE_SET_GET -DZLIB -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H '-DACCEPT_SIZE_T=socklen_t' sa1.cpp -o sa1.o g++ -fno-rtti -INONE -c -mcpu=pentiumpro -O1 -fomit-frame-pointer -fno-exceptions -Wall -W -pedantic -Wno-unused-parameter -pipe -DMITSHM -Ii386 -I. -Iunzip -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -DZSNES_C4 -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DUSE_GLIDE -I/usr/include/glide -DMMX -DSDD1_DECOMP -DNO_INLINE_SET_GET -DZLIB -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H '-DACCEPT_SIZE_T=socklen_t' debug.cpp -o debug.o g++ -fno-rtti -INONE -c -mcpu=pentiumpro -O1 -fomit-frame-pointer -fno-exceptions -Wall -W -pedantic -Wno-unused-parameter -pipe -DMITSHM -Ii386 -I. -Iunzip -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -DZSNES_C4 -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DUSE_GLIDE -I/usr/include/glide -DMMX -DSDD1_DECOMP -DNO_INLINE_SET_GET -DZLIB -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H '-DACCEPT_SIZE_T=socklen_t' sdd1.cpp -o sdd1.o g++ -fno-rtti -INONE -c -mcpu=pentiumpro -O1 -fomit-frame-pointer -fno-exceptions -Wall -W -pedantic -Wno-unused-parameter -pipe -DMITSHM -Ii386 -I. -Iunzip -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -DZSNES_C4 -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DUSE_GLIDE -I/usr/include/glide -DMMX -DSDD1_DECOMP -DNO_INLINE_SET_GET -DZLIB -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H '-DACCEPT_SIZE_T=socklen_t' tile.cpp -o tile.o g++ -fno-rtti -INONE -c -mcpu=pentiumpro -O1 -fomit-frame-pointer -fno-exceptions -Wall -W -pedantic -Wno-unused-parameter -pipe -DMITSHM -Ii386 -I. -Iunzip -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -DZSNES_C4 -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DUSE_GLIDE -I/usr/include/glide -DMMX -DSDD1_DECOMP -DNO_INLINE_SET_GET -DZLIB -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H '-DACCEPT_SIZE_T=socklen_t' srtc.cpp -o srtc.o In file included from tile.cpp:84: 3d.h:113:19: glide.h: No such file or directory In file included from tile.cpp:84: 3d.h:118: error: parse error before `[' token 3d.h:119: error: 'GrTexInfo' is used as a type, but is not defined as a type. touch use_glide rm -f no_glide touch no_opengl rm -f use_opengl g++ -fno-rtti -INONE -c -mcpu=pentiumpro -O1 -fomit-frame-pointer -fno-exceptions -Wall -W -pedantic -Wno-unused-parameter -pipe -DMITSHM -Ii386 -I. -Iunzip -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -DZSNES_C4 -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DUSE_GLIDE -I/usr/include/glide -DMMX -DSDD1_DECOMP -DNO_INLINE_SET_GET -DZLIB -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H '-DACCEPT_SIZE_T=socklen_t' memmap.cpp -o memmap.o make: *** [tile.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: games-emulation/snes9x-1.42 failed. !!! Function src_compile, Line 58, Exitcode 2 !!! making gsnes9x Reproducible: Always Steps to Reproduce: Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r3, 2.4.23) ================================================================= System uname: 2.4.23 i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.4.3.10 Autoconf: sys-devel/autoconf-2.57-r1 Automake: sys-devel/automake-1.7.5-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=k6" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=k6" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/src" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx 3dnow X alsa arts avi berkdb bonobo cdr crypt cups encode esd evo foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg lcms libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses oggvorbis opengl oss pam pda pdflib perl png python qt readline scanner sdl slang spell ssl svga tcltk tetex tiff truetype voodoo3 x86 xinerama xml2 xmms zlib"
where is glide.h on your system ?
locate glide.h /usr/include/glide3/glide.h
Should be in /usr/X11R6/include/glide3 try emerge -C glide-v3 ; emerge glide-v3
Did that work for you?
emerge -Cv glide-v3; emerge -v glide-v3 . . . . config.status: creating h5/incsrc/makefile.autoconf config.status: creating h5/minihwc/makefile.autoconf config.status: creating swlibs/makefile.autoconf config.status: creating swlibs/fxmisc/makefile.autoconf config.status: creating swlibs/newpci/makefile.autoconf config.status: creating swlibs/newpci/pcilib/makefile.autoconf config.status: creating swlibs/texus/makefile.autoconf config.status: creating swlibs/texus/lib/makefile.autoconf config.status: creating swlibs/texus2/makefile.autoconf config.status: creating swlibs/texus2/lib/makefile.autoconf config.status: creating swlibs/texus2/cmd/makefile.autoconf config.status: creating swlibs/include/config.h config.status: executing default-1 commands /usr/sbin/ebuild.sh: line 62: ./build.3dfx: Permission denied !!! ERROR: media-libs/glide-v3-3.10-r3 failed. !!! Function src_compile, Line 62, Exitcode 126 !!! (no error message) Looks like this is reported in bug 42708. Note that unlike that bug I DO have a voodoo3 card.
What version (talking CVS version here) of the glide-v3 ebuild do you have? I think I fixed this issue on Mar 7 by adding a chmod +x to the ebuild, but maybe I missed something.
As listed on bug 42708 I did a resync and was able to rebuild glide-v3. However I still get the same error when building snes9x. Looking deeper glide.h is nowhere to be found on my system. The glide-v3 emerge failed but the script didn't catch it. There are a ton of warning messages, more than my terminal has saved so I can only show the tail end of it: ../../../../h3/glide3/src/gglide.c:2285: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2286: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2286: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2286: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2286: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2287: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2287: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2287: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2287: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2289: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2289: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2289: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2289: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2290: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2290: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2290: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2290: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2291: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2291: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2291: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2291: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2293: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2295: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2297: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2297: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2297: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2297: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2298: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2298: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2298: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2298: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2300: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2350:57: pasting "_grRenderBuffer" and "(" does not give a valid preprocessing token ../../../../h3/glide3/src/gglide.c: In function `_grRenderBuffer': ../../../../h3/glide3/src/gglide.c:2354: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2354: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2361: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2361: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2361: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2362: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2362: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2362: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2362: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2362: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2362: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2362: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2362: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2362: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2363: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2363: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2363: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2363: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2363: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2363: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2363: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2363: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2363: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2365: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2365: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2365: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2354: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2361: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2362: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2362: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2362: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2362: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2363: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2363: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2363: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2363: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:2365: warning: statement with no effect ../../../../h3/glide3/src/gglide.c: In function `grCheckForRoom': ../../../../h3/glide3/src/gglide.c:2383: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2383: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2383: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2383: warning: statement with no effect ../../../../h3/glide3/src/gglide.c: In function `_grRebuildDataList': ../../../../h3/glide3/src/gglide.c:2782: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2782: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2782: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:3191: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:3191: warning: left-hand operand of comma expression has no effect ../../../../h3/glide3/src/gglide.c:2782: warning: statement with no effect ../../../../h3/glide3/src/gglide.c:3191: warning: statement with no effect ../../../../h3/glide3/src/gglide.c: At top level: ../../../../h3/glide3/src/gglide.c:712: warning: `_grBufferClear2D' defined but not used make[3]: *** [gglide.lo] Error 1 make[3]: Leaving directory `/usr/src/portage/glide-v3-3.10-r3/work/glide3x/build/h3/glide3/src' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/usr/src/portage/glide-v3-3.10-r3/work/glide3x/build/h3/glide3' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/src/portage/glide-v3-3.10-r3/work/glide3x/build/h3' make: *** [install-recursive] Error 1 Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda7 29162076 8176656 19504068 30% /usr Time Elapsed: 0 Years, 0 Days, 0 Hours, 0 Minutes, 49 Seconds Disk usage: 0.36 Mb man: prepallstrip: strip: >>> Completed installing into /usr/src/portage/glide-v3-3.10-r3/image/ >>> Merging media-libs/glide-v3-3.10-r3 to / --- /usr/ --- /usr/include/ >>> /usr/include/glide3/ >>> /usr/include/glide3/3dfx.h >>> /usr/include/glide3/linutil.h >>> /usr/include/glide3/texus.h >>> /usr/include/glide3/sst1vid.h --- /usr/X11R6/ --- /usr/X11R6/lib/ >>> /usr/X11R6/lib/libglide3.so -> /usr/lib/libglide3.so.3.10.0 >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> media-libs/glide-v3-3.10-r3 merged. >>> Recording media-libs/glide-v3 in "world" favorites file... >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date.
could you `emerge glide-v3 >& log` and post the resulting log file here ?
Created attachment 27267 [details] requested emerge of glide-v3
Bryan go nuts.
Maybe the priority of this bug should be raised. A lot of Voodoo users in the forums seem to be having lots of trouble getting direct rendering working and I think it all boils down to this; the Glide libraries not being installed. I downloaded the binary library from glide.sourceforge.net and installed it manually like the ebuild should have. After running ldconfig direct rendering was enabled (glxinfo). Running glxgears I'm getting 409 FPS instead of 60 on this K6-2 400.
We're all volunteers and we give what we're able to of our free time to do this. Some of us occasionally get busy, and we can nearly always use some extra help. If you would like to help out on the glide bugs, please feel free to post fixes and we'll commit them for you.
Quoted from INSTALL > SwiftButNotQuickButMoreConventionalStart Instructions > ===================================================== > % aclocal && automake && autoconf > % mkdir build > % cd build > % ../configure [ whatever options you want ] > % make -f makefile.autoconf all 2>&1 | tee make.hst Shouldn't we use those in the ebuild instead of './build.3dfx all || die "build.3dfx failed"' build.3dfx return garbage: Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda7 29162076 8176656 19504068 30% /usr Time Elapsed: 0 Years, 0 Days, 0 Hours, 0 Minutes, 49 Seconds Disk usage: 0.36 Mb That makes the ebuild blows through. Please correct me if am wrong.
Nope, the || die... never gets executed because the build.3dfx script will always run successfully. A make error won't have the script return failure.
uhm..either I misread yours or you misread mine. To clarify: currently glide-v3 use: './build.3dfx all || die "build.3dfx failed"' I think we should use: 'make -f makefile.autoconf all || die "make failed"'
Whoops, sorry. Yeah, that's what I've been working towards for a while with an updated glide version.
This should be fixed in glide-v3-3.10-r4, which now uses make instead of the build.3dfx script. The GCC 3.3-related errors should also be fixed.