I get the following error when trying to compile media-libs/glide-v3-3.10-r4: /bin/sh ../../libtool --mode=compile gcc -DX11 -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -ffast-math -DBIG_OPT -Wall -I../../../cinit -I../../../h3/glide3/src -I../../../h3/incsrc -I../../../h3/minihwc -I. -I../../../swlibs/fxmemmap -I../../../swlibs/fxmisc -I../../../swlibs/newpci/pcilib -I../../../swlibs/texus2/lib -O6 -m486 -c ../../../h3/minihwc/linhwc.c gcc -DX11 -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -ffast-math -DBIG_OPT -Wall -I../../../cinit -I../../../h3/glide3/src -I../../../h3/incsrc -I../../../h3/minihwc -I. -I../../../swlibs/fxmemmap -I../../../swlibs/fxmisc -I../../../swlibs/newpci/pcilib -I../../../swlibs/texus2/lib -O6 -m486 -Wp,-MD,.deps/linhwc.pp -c ../../../h3/minihwc/linhwc.c -fPIC -DPIC -o .libs/linhwc.o ../../../h3/minihwc/linhwc.c: In function `loadEnvFile': ../../../h3/minihwc/linhwc.c:172: warning: assignment makes pointer from integer without a cast ../../../h3/minihwc/linhwc.c:173: warning: assignment makes integer from pointer without a cast ../../../h3/minihwc/linhwc.c: In function `hwcInitRegisters': ../../../h3/minihwc/linhwc.c:268: warning: left-hand operand of comma expression has no effect ../../../h3/minihwc/linhwc.c:268: warning: left-hand operand of comma expression has no effect ../../../h3/minihwc/linhwc.c:268: warning: left-hand operand of comma expression has no effect ../../../h3/minihwc/linhwc.c:285: warning: left-hand operand of comma expression has no effect ------------------cut-------------------------------------- Very many warnings: "warning: left-hand operand of comma expression has no effect" ------------------cut-------------------------------------- ../../../h3/minihwc/linhwc.c:788: warning: left-hand operand of comma expression has no effect ../../../h3/minihwc/linhwc.c:788: warning: left-hand operand of comma expression has no effect ../../../h3/minihwc/linhwc.c:788: warning: left-hand operand of comma expression has no effect ../../../h3/minihwc/linhwc.c: In function `grDRIImportFifo': ../../../h3/minihwc/linhwc.c:834: warning: implicit declaration of function `_grImportFifo' ../../../h3/minihwc/linhwc.c: In function `grDRIInvalidateAll': ../../../h3/minihwc/linhwc.c:838: warning: implicit declaration of function `_grInvalidateAll' ../../../h3/minihwc/linhwc.c: In function `grDRIResetSAREA': ../../../h3/minihwc/linhwc.c:843: warning: implicit declaration of function `_grExportFifo' ../../../h3/minihwc/linhwc.c: In function `hwcInitRegisters': ../../../h3/minihwc/linhwc.c:268: warning: statement with no effect ../../../h3/minihwc/linhwc.c:285: warning: statement with no effect ../../../h3/minihwc/linhwc.c:287: warning: statement with no effect ../../../h3/minihwc/linhwc.c: In function `hwcAllocBuffers': ../../../h3/minihwc/linhwc.c:304: warning: statement with no effect ../../../h3/minihwc/linhwc.c:361: warning: statement with no effect ../../../h3/minihwc/linhwc.c:362: warning: statement with no effect ../../../h3/minihwc/linhwc.c:363: warning: statement with no effect ../../../h3/minihwc/linhwc.c:364: warning: statement with no effect ../../../h3/minihwc/linhwc.c:365: warning: statement with no effect ../../../h3/minihwc/linhwc.c:366: warning: statement with no effect ../../../h3/minihwc/linhwc.c:367: warning: statement with no effect ../../../h3/minihwc/linhwc.c:368: warning: statement with no effect ../../../h3/minihwc/linhwc.c:369: warning: statement with no effect ../../../h3/minihwc/linhwc.c:371: warning: statement with no effect ../../../h3/minihwc/linhwc.c:372: warning: statement with no effect ../../../h3/minihwc/linhwc.c:373: warning: statement with no effect ../../../h3/minihwc/linhwc.c:374: warning: statement with no effect ../../../h3/minihwc/linhwc.c:375: warning: statement with no effect ../../../h3/minihwc/linhwc.c:376: warning: statement with no effect ../../../h3/minihwc/linhwc.c:377: warning: statement with no effect ../../../h3/minihwc/linhwc.c:378: warning: statement with no effect ../../../h3/minihwc/linhwc.c:379: warning: statement with no effect ../../../h3/minihwc/linhwc.c:380: warning: statement with no effect ../../../h3/minihwc/linhwc.c:381: warning: statement with no effect ../../../h3/minihwc/linhwc.c:382: warning: statement with no effect ../../../h3/minihwc/linhwc.c:383: warning: statement with no effect ../../../h3/minihwc/linhwc.c:384: warning: statement with no effect ../../../h3/minihwc/linhwc.c:385: warning: statement with no effect ../../../h3/minihwc/linhwc.c:386: warning: statement with no effect ../../../h3/minihwc/linhwc.c:387: warning: statement with no effect ../../../h3/minihwc/linhwc.c:388: warning: statement with no effect ../../../h3/minihwc/linhwc.c:389: warning: statement with no effect ../../../h3/minihwc/linhwc.c:391: warning: statement with no effect ../../../h3/minihwc/linhwc.c:392: warning: statement with no effect ../../../h3/minihwc/linhwc.c:393: warning: statement with no effect ../../../h3/minihwc/linhwc.c: In function `hwcInitFifo': ../../../h3/minihwc/linhwc.c:418: warning: statement with no effect ../../../h3/minihwc/linhwc.c: In function `hwcInitVideo': ../../../h3/minihwc/linhwc.c:446: warning: statement with no effect ../../../h3/minihwc/linhwc.c:467: warning: statement with no effect ../../../h3/minihwc/linhwc.c:472: warning: statement with no effect ../../../h3/minihwc/linhwc.c:475: warning: statement with no effect ../../../h3/minihwc/linhwc.c:480: warning: statement with no effect ../../../h3/minihwc/linhwc.c:482: warning: statement with no effect ../../../h3/minihwc/linhwc.c: In function `hwcGammaTable': ../../../h3/minihwc/linhwc.c:700: warning: statement with no effect ../../../h3/minihwc/linhwc.c:702: warning: statement with no effect ../../../h3/minihwc/linhwc.c:707: warning: statement with no effect ../../../h3/minihwc/linhwc.c:712: warning: statement with no effect ../../../h3/minihwc/linhwc.c:714: warning: statement with no effect ../../../h3/minihwc/linhwc.c:719: warning: statement with no effect ../../../h3/minihwc/linhwc.c: In function `hwcGammaRGB': ../../../h3/minihwc/linhwc.c:738: warning: statement with no effect ../../../h3/minihwc/linhwc.c: In function `hwcSetGrxClock': ../../../h3/minihwc/linhwc.c:784: warning: statement with no effect ../../../h3/minihwc/linhwc.c:786: warning: statement with no effect ../../../h3/minihwc/linhwc.c:787: warning: statement with no effect ../../../h3/minihwc/linhwc.c:788: warning: statement with no effect ../../../h3/minihwc/linhwc.c: At top level: ../../../h3/minihwc/linhwc.c:134: warning: 'pow2Round' defined but not used ../../../h3/minihwc/linhwc.c:177: warning: 'deleteEnvData' defined but not used ../../../h3/minihwc/linhwc.c:583: warning: 'calculateLfbStride' defined but not used ../../../h3/minihwc/linhwc.c:611: warning: 'hwcBufferLfbAddr' defined but not used distcc[29401] ERROR: compile ../../../h3/minihwc/linhwc.c on 192.168.0.2 failed make[2]: *** [linhwc.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/h3/minihwc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/h3' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/glide-v3-3.10-r4 failed. !!! Function src_compile, Line 71, Exitcode 2 !!! build.3dfx failed I use linux26-headers-2.6.7-r4. Reproducible: Always Steps to Reproduce: 1.emerge glide-v3-3.10-r4 2. 3. Actual Results: After I performed the steps above, i got the compile error described above. Expected Results: The software should have compiled (I think). Portage 2.0.50-r9 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r1, 2.6.8-rc4) ================================================================= System uname: 2.6.8-rc4 i686 Celeron (Mendocino) Gentoo Base System version 1.5.2 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config/var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx S3TC X aac aalib acpi acpi4linux alsa apm arts audiofile avi berkdb bootsplash cdparanoia cdr cdromcodecs crypt cups dga divx4linux dvd dvdread encode faac faad fbcon fbdev ffmpeg flac foomaticdb freetype gd gdbm gif gphoto2 gpm gstreamer gtk imagemagick imlib imlib2 java jpeg kadu-modules kadu-voice kde libg++ libwww mad maildir md5sum mmx mng motif mpeg mpeg4 mplayer ncurses nls nptl oggvorbis ooo-kde openal opengl operanom2 oss pam pdflib perl png pnp python qt quicktime readline rtc sdl slang spell ssl stencil-buffer svg svga tcpd tiff transcode truetype usb voodoo3 x86 xine xml2 xmms xrandr xv xvid yv12 zlib"
Works for me. Try to turn off distcc and reemerge one more time.
I did try disabling distcc before reporting the problem and it didn't help. I checked it again: 1) first, I changed my make.conf file to get the below output of emerge info: (...) FEATURES="autoaddcvs ccache sandbox" (...) 2) The emerge process stops with the very same problem.
I had to downgrade from the 2.6 kernel with linux26-headers and nptl to 2.4 and linux-headers. On the new setup, glide-v3 compiled fine. So I'm not sure what the problem was (maybe the linux26-headers?) but, anyway, I won't be able to try out a possible fix. I guess the status of the bug should be changed but I do not want to mess with that so I'll leave it to the Gentoo developers. Thanks
See resolution.
I would like to know a fix other than simply switching back to linuxthreads & linux-headers.. i want to fix the package lol not the whole system !!!
K -- Bryan, would you like to look into this? Otherwise, let's get it reported upstream.
Glide has a bad history with 2.6 headers (there's already a patch in portage to fix ioctl() on 2.6). I'll see if I can find anything from their CVS or list.
Glorp.
I got a way to get it compile correctly ... I was having the same problem as listed above and I switched back to gcc 3.3 and it compiled correctly: oXide root # gcc-config -l [1] i686-pc-linux-gnu-3.3.4 [2] i686-pc-linux-gnu-3.4.3 * [3] i686-pc-linux-gnu-3.4.3-hardened [4] i686-pc-linux-gnu-3.4.3-hardenednopie [5] i686-pc-linux-gnu-3.4.3-hardenednossp oXide root # gcc-config 1 * Switching to i686-pc-linux-gnu-3.3.4 compiler... [ ok ] * If you intend to use the gcc from the new profile in an already * running shell, please remember to do: * # source /etc/profile oXide root # env-update && source /etc/profile >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... AFTER THIS, emerge glide-v3 (it should complete successfully) and then do: oXide root # gcc-config 2 oXide root # env-update && source /etc/profile Hope this helps
*** Bug 114400 has been marked as a duplicate of this bug. ***
Since my bug ( 114400 ) was marked as a duplicate of this bug, I thought I can find a solution here, but there is nothing that points to my error. Using GCC 3.3.6 : ../../../../h3/glide3/src/xdraw2.inc.S: Assembler messages: ../../../../h3/glide3/src/xdraw2.inc.S:815: Error: Macro with this name was already defined ../../../../h3/glide3/src/xdraw2.inc.S:815: Error: Macro with this name was already defined ../../../../h3/glide3/src/xdraw2.inc.S:815: Error: Macro with this name was already defined make[3]: *** [xdraw2.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/h3/glide3/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/h3/glide3' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/h3' make: *** [all-recursive] Error 1 Any Help would be nice
Is this still an issue? I just added a new patch tonight to fix another bug, and there's already a 2.6 header fix in there. It works for me.
This bug is awaiting user response...