Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26968 - Duke3D fails to compile with gcc 4.3
Summary: Duke3D fails to compile with gcc 4.3
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: 2003-08-19 22:50 UTC by butters
Modified: 2009-02-06 09:02 UTC (History)
1 user (show)

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


Attachments
Build log yields into ACCESS VIOLATION (build.log,40.17 KB, text/plain)
2009-02-06 06:34 UTC, konsti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description butters 2003-08-19 22:50:51 UTC
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)
Comment 1 SpanKY gentoo-dev 2003-08-20 05:19:24 UTC
remove some of your optimizations and try again 
Comment 2 Luke-Jr 2003-08-24 22:21:41 UTC
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.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2003-08-25 16:10:02 UTC
Fixed in CVS.

I was able to reproduce this so I filtered -O3 down to -O2 which worked fine
for me.
Comment 4 Vincent Riquer 2009-01-23 22:26:36 UTC
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.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2009-01-23 22:35:50 UTC
-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.
Comment 6 Tupone Alfredo gentoo-dev 2009-02-04 17:05:39 UTC
-O2 (I'm with gcc-4.3.2) raise again this bug :(
Comment 7 konsti 2009-02-06 06:33:43 UTC
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'
Comment 8 konsti 2009-02-06 06:34:26 UTC
Created attachment 181117 [details]
Build log yields into ACCESS VIOLATION
Comment 9 Tupone Alfredo gentoo-dev 2009-02-06 09:02:04 UTC
Fixed in portage. Thanks

Related to comment #7. I don't get it. If still present open a new bug