Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76395 - media-libs/sdl-mixer-1.2.6 fails to compile with any -O level
Summary: media-libs/sdl-mixer-1.2.6 fails to compile with any -O level
Status: RESOLVED DUPLICATE of bug 77300
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-02 04:40 UTC by Mark Rosenstand
Modified: 2005-07-17 13:06 UTC (History)
2 users (show)

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 Mark Rosenstand 2005-01-02 04:40:45 UTC
This breaks almost all open source 3D games.

Reproducible: Always
Steps to Reproduce:
1. emerge sdl-mixer
Actual Results:  
effect_position.c: In function `_Eff_position_u16msb':
effect_position.c:878: error: extended registers have no high halves
{standard input}: Assembler messages:
{standard input}:2190: Error: bad register name `%'
{standard input}:2213: Error: suffix or operands invalid for `xchg'
{standard input}:2228: Error: suffix or operands invalid for `xchg'
make[1]: *** [effect_position.lo] Error 1

Expected Results:  
>>> media-libs/sdl-mixer-1.2.6 merged.

Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 31 2004, 04:27:43)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.gentoo.no http://gentoo.osuosl.org"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acpi alsa apache2 apm avi berkdb bitmap-fonts cdr crypt
dvd dvdr f77 flac fortran gdbm gif gpm gtk gtk2 imlib ipv6 jp2 jpeg lzw lzw-tiff
multilib ncurses nls oggvorbis opengl oss pam perl png python readline samba ssl
tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml xml2
xmms xpm xrandr xv zlib"
Comment 1 Andrew Williams 2005-01-07 06:42:09 UTC
Something similar here:

/bin/sh ./libtool --mode=compile x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_mixer\" -DVERSION=\"1.2.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1  -I. -I.     -O2 -march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args -fomit-frame-pointer -fweb -fpeel-loops -ftracer -funswitch-loops -I/usr/include/SDL -D_REENTRANT -DUSE_RWOPS -DCMD_MUSIC -DWAV_MUSIC -DLIBMIKMOD_MUSIC -pthread -D_REENTRANT -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity -DOGG_MUSIC -DMP3_MUSIC -I/usr/include/smpeg -I/usr/include/SDL -D_REENTRANT -c -o effects_internal.lo effects_internal.c
effect_position.c: In function `_Eff_position_u16msb_c4':
effect_position.c:928: error: extended registers have no high halves
effect_position.c:928: error: extended registers have no high halves
effect_position.c:928: error: extended registers have no high halves
effect_position.c:928: error: extended registers have no high halves
effect_position.c:928: error: extended registers have no high halves
effect_position.c:928: error: extended registers have no high halves
effect_position.c:928: error: extended registers have no high halves
effect_position.c:928: error: extended registers have no high halves
{standard input}: Assembler messages:
{standard input}:2204: Error: suffix or operands invalid for `xchg'
{standard input}:2219: Error: suffix or operands invalid for `xchg'
{standard input}:2267: Error: suffix or operands invalid for `xchg'
{standard input}:2322: Error: bad register name `%'
{standard input}:2323: Error: bad register name `%'
{standard input}:2347: Error: bad register name `%'
{standard input}:2357: Error: bad register name `%'
{standard input}:2366: Error: bad register name `%'
{standard input}:2372: Error: bad register name `%'
{standard input}:2392: Error: bad register name `%'
{standard input}:2397: Error: bad register name `%'
make[1]: *** [effect_position.lo] Error 1

This is also on an amd64 machine.
Comment 2 SpanKY gentoo-dev 2005-01-09 17:33:14 UTC

*** This bug has been marked as a duplicate of 77300 ***