Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232069 - games-strategy/galaxyhack-1.74 fails to compile (with GCC 4.3.1)
Summary: games-strategy/galaxyhack-1.74 fails to compile (with GCC 4.3.1)
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: gcc-4.3
  Show dependency tree
 
Reported: 2008-07-17 13:07 UTC by Sönke N. Greimann
Modified: 2008-08-31 05:18 UTC (History)
0 users

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


Attachments
Patch for compilation with gcc-4.3 (galaxyhack-1.74-gcc-4.3.patch,309 bytes, patch)
2008-07-17 17:25 UTC, Bert Karwatzki
Details | Diff
ebuild for patch above (galaxyhack-1.74-r1.ebuild,1.74 KB, text/plain)
2008-07-17 17:26 UTC, Bert Karwatzki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke N. Greimann 2008-07-17 13:07:38 UTC
Emerging galaxyhack results in failure:



Reproducible: Always

Steps to Reproduce:
1. verify that GCC-4.3.1 is installed
2. unmask games-strategy/galaxyhack-1.74
3. emerge galaxyhack

Actual Results:  
Package fails with error (see below)

>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/games-strategy/galaxyhack-1.74/work/galaxyhack/src ...
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c AIInterpreter.cpp -o AIInterpreter.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c AutoFireUnit.cpp -o AutoFireUnit.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c BCCompiler.cpp -o BCCompiler.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c DerivedGroups.cpp -o DerivedGroups.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c DragWindow.cpp -o DragWindow.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c ForceSelect.cpp -o ForceSelect.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c ForceSelectWin.cpp -o ForceSelectWin.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c GenWindow.cpp -o GenWindow.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c GenWindow_Base.cpp -o GenWindow_Base.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c GFX.cpp -o GFX.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c Globals.cpp -o Globals.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c Group.cpp -o Group.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c Group_Base.cpp -o Group_Base.o
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=native -pipe -fomit-frame-pointer -c JSDL.cpp -o JSDL.o
JSDL.cpp:25: error: 'std::memcpy' has not been declared
make: *** [JSDL.o] Error 1
make: *** Waiting for unfinished jobs....
 *
 * ERROR: games-strategy/galaxyhack-1.74 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2284:  Called games_src_compile
 *             environment, line 1300:  Called die
 * The specific snippet of code:
 *           emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-strategy/galaxyhack-1.74/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-strategy/galaxyhack-1.74/temp/environment'.

Expected Results:  
Package emerges.

emerge --info:

Portage 2.2_rc1 (default-linux/x86/2007.0/desktop, gcc-4.3.1, glibc-2.7-r2, 2.6.25-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r6-i686-AMD_Athlon-tm-_XP_3000+-with-glibc2.0
Timestamp of tree: Wed, 16 Jul 2008 19:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo ftp://ftp.gentoo.mesh-solutions.com/gentoo ftp://pandemonium.tiscali.de/pub/gentoo ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dmi dri dvd dvdr dvdread emboss encode esd evo fam ffmpeg firefox flac fortran gdbm gif gnome gnutls gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kerberos mad midi mikmod mmap mmx mmxext moznopango mp3 mpeg mudflap ncurses nforce2 nfs nls nptl nptlonly nsplugin nvidia odbc offensive ogg opengl openmp oss pam pcre pdf perl pidgin png pppd python qt3support qt4 quicktime readline real reflection reiserfs rtc samba sdl session spell spl sse ssl svg tcpd thunderbird tiff truetype unicode usb v4l v4l2 vorbis win32codecs x86 xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0 intel8x0m mpu401 usb-audio virmidi" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="joystick keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa v4l vga"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Bert Karwatzki 2008-07-17 17:25:40 UTC
Created attachment 160650 [details, diff]
Patch for compilation with gcc-4.3
Comment 2 Bert Karwatzki 2008-07-17 17:26:27 UTC
Created attachment 160651 [details]
ebuild for patch above

This should solve the Problem.
Comment 3 Sönke N. Greimann 2008-07-17 18:03:07 UTC
(In reply to comment #2)
> 
> This should solve the Problem.
> 
Indeed it does. Merge no longer barfs on JSDL.o and continues through.

Thanks for the record response time!

The game itself now segfaults, though... :( But I guess this should go in another bug, as this one only deals with compilation woes.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2008-07-17 18:14:08 UTC
we mark it fixed on this end once it's in portage.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2008-08-31 05:18:10 UTC
patch is in portage.