Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171275 - [4.1/bad code] games-emulation/xmess-0.106 - corrupted graphics w/ -funit-at-a-time
Summary: [4.1/bad code] games-emulation/xmess-0.106 - corrupted graphics w/ -funit-at-...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2007-03-17 20:06 UTC by Michael Emmi
Modified: 2013-07-21 07:46 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Emmi 2007-03-17 20:06:50 UTC
The gcc flag -funit-at-a-time, which is enabled with -O1, causes strange behavior with xmess.  Parts of the graphics for some games (notable Super Mario World for snes) get corrupted.  For example, strange boxes can show up out of nowhere, and you can stand on a platform that's rendered as a pit, yet fall though the ground.  I tracked down the problem by compiling xmess on my own, and I only get the correct results without using -funit-at-a-time in gcc.  This page makes some comment about the flag being harmful too: http://advancemame.sourceforge.net/doc-build.html.  I think -fno-unit-at-a-time should be added to the flags from the ebuild.  This may also be a problem in xmame, but I haven't used it enough to notice.

Reproducible: Always

Steps to Reproduce:
1. Install xmess from gentoo
2. Play Super Mario World, or maybe some other games
3. Watch the introduction for a minute or so.

Actual Results:  
I saw strange boxes and corrupted graphics when I played Super Mario World.

Expected Results:  
Should have properly emulated the SNES.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-17 21:13:24 UTC
emerge --info and games-emulation/xmess version please.
Comment 2 Michael Emmi 2007-03-22 01:42:33 UTC
Portage 2.1.2-r9 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 15 Mar 2007 21:00:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -pipe -O3 -fno-unit-at-a-time"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_US.utf8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa amd64 asf audiofile bash-completion beagle berkdb bidi bitmap-fonts cdda cddb cdparanoia cdr cjk cli cracklib crypt cups dbus directfb divx divx4linux dmi dri dts dv dvb dvd dvdr dvdread dvi encode fame fbcon ffmpeg flac fortran fpx ggi gif gmedia gnome gpm graphviz gstreamer gtk gtk2 hal iconv imagemagick imlib ipod ipv6 isdnlog jack java jbig jikes joystick jpeg lcms libcaca libg++ libnotify live lzo mad md5sum midi mikmod mjpeg mouse mozbranding mozsvg mp3 mpeg mplayer mythtv nas ncurses network nls no-seamonkey nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl pam pcre pdf perl png ppds pppd python quicktime rar readline reflection rtc sdl session spell spl ssl startup-notification stream subtitles svg t1lib tcpd tetex tga theora threads thunderbird tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vcd vlm vorbis wmf wmp wxwindows xanim xml xorg xpm xv xvid xvmc yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================
games-emulation/xmess-0.106 was built with the following:
CFLAGS="-O3 -Wno-unused -falign-functions=2 -falign-jumps=2 -falign-loops=2 -fomit-frame-pointer -fstrength-reduce -fstrict-aliasing -march=athlon64 -pipe"
CXXFLAGS="-O3 -Wno-unused -falign-functions=2 -falign-jumps=2 -falign-loops=2 -fomit-frame-pointer -fstrength-reduce -fstrict-aliasing -march=athlon64 -pipe"

Comment 3 Pacho Ramos gentoo-dev 2013-07-21 07:46:37 UTC
dropped