Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127693 - stepmania fails to compile with gcc-4.1
Summary: stepmania fails to compile with gcc-4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Warp Zero (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-03-26 16:26 UTC by zyprexa
Modified: 2006-04-26 15:47 UTC (History)
1 user (show)

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


Attachments
gcc41 fix (stepmania-gcc41.diff,2.05 KB, patch)
2006-04-23 11:38 UTC, Hanno Zysik (geki)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zyprexa 2006-03-26 16:26:01 UTC
steps to reproduce :

1. emerge stepmania
2.
3.

it fails on : 
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.  -I/usr/include/SDL -D_REENTRANT   -finline-limit=300   -march=athlon-xp -O3 -pipe -fomit-frame-pointer -MT ScreenAttract.o -MD -MP -MF ".deps/ScreenAttract.Tpo" \
  -c -o ScreenAttract.o `test -f 'ScreenAttract.cpp' || echo './'`ScreenAttract.cpp; \
then mv -f ".deps/ScreenAttract.Tpo" ".deps/ScreenAttract.Po"; \
else rm -f ".deps/ScreenAttract.Tpo"; exit 1; \
fi
GameState.h:88: error: extra qualification 'GameState::' on member 'GetRandomCharacter'
GameState.h:89: error: extra qualification 'GameState::' on member 'GetDefaultCharacter'
GameState.h:88: error: extra qualification 'GameState::' on member 'GetRandomCharacter'
GameState.h:89: error: extra qualification 'GameState::' on member 'GetDefaultCharacter'
make[2]: *** [ScreenAttract.o] Error 1


my emerge --info :
Portage 2.1_pre7-r1 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-ck1 i686)
=================================================================
System uname: 2.6.16-ck1 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mir1.ovh.net/gentoo-distfiles/ ftp://mir1.ovh.net/gentoo-distfiles/ ftp://194.117.143.69/mirrors/gentoo"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm avi bash-completion bitmap-fonts cli crypt ctype cups dba dga dri eds emboss encode expat fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gpm gstreamer gtk gtk2 imlib ithreads jpeg libg++ libwww mad memlimit mmx mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png posix python quicktime readline sdl session simplexml soap sockets spell spl sse ssl tcpd tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis xml xsl xv zlib elibc_glibc input_devices_mouse input_devices_keyboard input_devices_evdev kernel_linux linguas_fr linguas_fr_FR userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS
Comment 1 Matteo Azzali (RETIRED) gentoo-dev 2006-04-12 04:49:54 UTC
That error would be easy to resolve, but after removing the extra qualification it
wont compile anyway:

StdString.h:1090: error: no matching function for call to 'replace(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, const char*&)'
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.  -I/usr/include/SDL -D_REENTRANT   -finline-limit=300   -O2 -march=athlon-xp -pipe -fomit-frame-pointer -MT ScreenExit.o -MD -MP -MF ".deps/ScreenExit.Tpo" \
  -c -o ScreenExit.o `test -f 'ScreenExit.cpp' || echo './'`ScreenExit.cpp; \
then mv -f ".deps/ScreenExit.Tpo" ".deps/ScreenExit.Po"; \
else rm -f ".deps/ScreenExit.Tpo"; exit 1; \
fi
make[2]: *** [ScreenEvaluation.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/stepmania-3.9_rc3/work/StepMania-3.9-rc3-src/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/stepmania-3.9_rc3/work/StepMania-3.9-rc3-src/src'
make: *** [all-recursive] Error 1
Comment 2 Hanno Zysik (geki) 2006-04-23 11:38:55 UTC
Created attachment 85286 [details, diff]
gcc41 fix

rather code cleanup
Comment 3 Tupone Alfredo gentoo-dev 2006-04-26 15:47:46 UTC
Fixed in portage, thanks for report and patch