The complete emerge is as follows. I am no coder, so I am clueless what this means. Calculating dependencies ...done! >>> emerge (1 of 1) app-games/duke3d-20030817 to / >>> md5 src_uri ;-) duke3d-20030817.tbz2 >>> Unpacking source... >>> Unpacking duke3d-20030817.tbz2 to /var/tmp/portage/duke3d-20030817/work * Applying 20030817-buildengine-makefile-cflags.patch... [ ok ] * Applying 20030817-duke3d-makefile-opts.patch... [ ok ] >>> Source unpacked. gcc -c -o build.o build.c -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUSE_PHYSICSFS -DUDP_NETWORKING=1 -DUSE_I386_ASM -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer gcc -c -o bstub.o bstub.c -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUSE_PHYSICSFS -DUDP_NETWORKING=1 -DUSE_I386_ASM -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer build.c: In function `changechar': build.c:650: warning: comparison is always true due to limited range of data type build.c:655: warning: comparison is always false due to limited range of data type gcc -c -o engine.o engine.c -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUSE_PHYSICSFS -DUDP_NETWORKING=1 -DUSE_I386_ASM -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer engine.c: In function `loadboard': engine.c:2940: warning: comparison is always false due to limited range of data type {standard input}: Assembler messages: {standard input}:5167: Error: symbol `nsqrover24' is already defined {standard input}:5169: Error: symbol `nsqrunder24' is already defined {standard input}:7075: Error: symbol `nsqrover24' is already defined {standard input}:7077: Error: symbol `nsqrunder24' is already defined {standard input}:12996: Error: symbol `setgotpic_skipit' is already defined {standard input}:13233: Error: symbol `nsqrover24' is already defined {standard input}:13235: Error: symbol `nsqrunder24' is already defined {standard input}:13342: Error: symbol `nsqrover24' is already defined {standard input}:13344: Error: symbol `nsqrunder24' is already defined {standard input}:13732: Error: symbol `nsqrover24' is already defined {standard input}:13734: Error: symbol `nsqrunder24' is already defined {standard input}:13835: Error: symbol `nsqrover24' is already defined {standard input}:13837: Error: symbol `nsqrunder24' is already defined {standard input}:13950: Error: symbol `nsqrover24' is already defined {standard input}:13952: Error: symbol `nsqrunder24' is already defined {standard input}:14349: Error: symbol `setgotpic_skipit' is already defined {standard input}:14798: Error: symbol `nsqrover24' is already defined {standard input}:14800: Error: symbol `nsqrunder24' is already defined {standard input}:15986: Error: symbol `nsqrover24' is already defined {standard input}:15988: Error: symbol `nsqrunder24' is already defined {standard input}:16074: Error: symbol `nsqrover24' is already defined {standard input}:16076: Error: symbol `nsqrunder24' is already defined {standard input}:19250: Error: symbol `setgotpic_skipit' is already defined build.c: In function `editinput': build.c:5619: warning: comparison is always true due to limited range of data type build.c:5638: warning: comparison is always true due to limited range of data type build.c:5657: warning: comparison is always true due to limited range of data type build.c:5731: warning: comparison is always true due to limited range of data type build.c:5836: warning: comparison is always true due to limited range of data type {standard input}:21505: Error: symbol `setgotpic_skipit' is already defined {standard input}:22393: Error: symbol `setgotpic_skipit' is already defined {standard input}:23964: Error: symbol `setgotpic_skipit' is already defined {standard input}:25298: Error: symbol `setgotpic_skipit' is already defined gcc -c -o cache1d.o cache1d.c -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUSE_PHYSICSFS -DUDP_NETWORKING=1 -DUSE_I386_ASM -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer gcc -c -o sdl_driver.o sdl_driver.c -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUSE_PHYSICSFS -DUDP_NETWORKING=1 -DUSE_I386_ASM -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer {standard input}:28072: Error: symbol `setgotpic_skipit' is already defined {standard input}:29551: Error: symbol `nsqrover24' is already defined {standard input}:29553: Error: symbol `nsqrunder24' is already defined {standard input}:29753: Error: symbol `setgotpic_skipit' is already defined {standard input}:31250: Error: symbol `nsqrover24' is already defined {standard input}:31252: Error: symbol `nsqrunder24' is already defined {standard input}:31421: Error: symbol `setgotpic_skipit' is already defined {standard input}:32258: Error: symbol `setgotpic_skipit' is already defined gcc -c -o unix_compat.o unix_compat.c -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUSE_PHYSICSFS -DUDP_NETWORKING=1 -DUSE_I386_ASM -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer nasm -f elf -o a_nasm.o a_nasm.asm gcc -c -o pragmas.o pragmas.c -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUSE_PHYSICSFS -DUDP_NETWORKING=1 -DUSE_I386_ASM -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer gcc -c -o a_gnu.o a_gnu.c -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUSE_PHYSICSFS -DUDP_NETWORKING=1 -DUSE_I386_ASM -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer gcc -c -o buildgl.o buildgl.c -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUSE_PHYSICSFS -DUDP_NETWORKING=1 -DUSE_I386_ASM -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer gcc -c -o game.o game.c -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUSE_PHYSICSFS -DUDP_NETWORKING=1 -DUSE_I386_ASM -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer game.c: In function `keyhandler': game.c:500: warning: comparison is always false due to limited range of data type game.c: In function `movelava': game.c:642: warning: comparison is always true due to limited range of data type {standard input}:33674: Error: symbol `setgotpic_skipit' is already defined {standard input}:33721: Error: symbol `nsqrover24' is already defined {standard input}:33723: Error: symbol `nsqrunder24' is already defined {standard input}:33874: Error: symbol `nsqrover24' is already defined {standard input}:33876: Error: symbol `nsqrunder24' is already defined {standard input}:34934: Error: symbol `nsqrover24' is already defined {standard input}:34936: Error: symbol `nsqrunder24' is already defined make: *** [engine.o] Error 1 make: *** Waiting for unfinished jobs.... game.c: In function `main': game.c:5887: warning: comparison is always false due to limited range of data type game.c: In function `getinput': game.c:6198: warning: comparison is always false due to limited range of data type game.c:6217: warning: comparison is always true due to limited range of data type game.c:6217: warning: comparison is always true due to limited range of data type !!! ERROR: app-games/duke3d-20030817 failed. !!! Function src_compile, Line 62, Exitcode 2 !!! (no error message)
remove some of your optimizations and try again
This fails with default optimizations used in AthlonXP stages. I believe a flag stripper should be added to this ebuild to remove the flags causing the problems.
Fixed in CVS. I was able to reproduce this so I filtered -O3 down to -O2 which worked fine for me.
Please also filter out -Os, which doesn't work either, though it is a commonly used option on Via C3-2 and other processors with little cache.
-Os will automatically get filtered out unless you're using unstable keywords. Then it's assumed you know what you're doing and you get to keep both pieces if things break.
-O2 (I'm with gcc-4.3.2) raise again this bug :(
I have gcc-4.3.3 and with my normam CFLAGS I get the expected error, which is described in this bug. With env CFLAGS="" emerge -v duke3d I get: >>> Source compiled. >>> Test phase [not enabled]: games-fps/duke3d-20040817-r2 >>> Install duke3d-20040817-r2 into /usr/src/tmp/portage/games-fps/duke3d-20040817-r2/image/ category games-fps >>> Completed installing duke3d-20040817-r2 into /usr/src/tmp/portage/games-fps/duke3d-20040817-r2/image/ --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE "/var/log/sandbox/sandbox-2909.log" VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: fchownat S: deny P: /proc/3062/fd/5/DUKE3D.CFG A: /proc/3062/fd/5/DUKE3D.CFG R: /etc/games/duke3d.cfg C: chown root:games -R /usr/src/tmp/portage/games-fps/duke3d-20040817-r2/image///usr/share/games -------------------------------------------------------------------------------- >>> Failed to emerge games-fps/duke3d-20040817-r2, Log file: >>> '/usr/src/tmp/portage/games-fps/duke3d-20040817-r2/temp/build.log'
Created attachment 181117 [details] Build log yields into ACCESS VIOLATION
Fixed in portage. Thanks Related to comment #7. I don't get it. If still present open a new bug