When trying to emerge -e world after switchgin to gcc-4.2.0, zsnes failed to
compile. Here the more complete output, I did directly start where the warnings
started because I did not see the real "error" and it is not this much more:
tools/fileutil.cpp:0: warning: -fprefetch-loop-arrays not supported for this
target (try -march switches)
tools/fileutil.cpp:1: warning: -fprefetch-loop-arrays not supported for this
target (try -march switches)
tools/strutil.cpp:0: warning: -fprefetch-loop-arrays not supported for this
target (try -march switches)
tools/strutil.cpp:1: warning: -fprefetch-loop-arrays not supported for this
target (try -march switches)
i686-pc-linux-gnu-g++ -march=nocona -O2 -pipe -g -I. -D__UNIXSDL__
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=i386 -O3
-fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -D__RELEASE__
-fno-rtti -o tools/depbuild tools/depbuild.cpp tools/fileutil.o tools/strutil.o
tools/depbuild.cpp:1: warning: -fprefetch-loop-arrays not supported for this
target (try -march switches)
/var/tmp/portage/games-emulation/zsnes-1.51-r1/temp/ccCLCDvf.o: In function
`__exchange_and_add':
/usr/lib/gcc/i686-pc-linux-gnu/4.2.0/include/g++-v4/ext/atomicity.h:51:
undefined reference to `__sync_fetch_and_add_4'
/usr/lib/gcc/i686-pc-linux-gnu/4.2.0/include/g++-v4/ext/atomicity.h:51:
undefined reference to `__sync_fetch_and_add_4'
/usr/lib/gcc/i686-pc-linux-gnu/4.2.0/include/g++-v4/ext/atomicity.h:51:
undefined reference to `__sync_fetch_and_add_4'
/usr/lib/gcc/i686-pc-linux-gnu/4.2.0/include/g++-v4/ext/atomicity.h:51:
undefined reference to `__sync_fetch_and_add_4'
/usr/lib/gcc/i686-pc-linux-gnu/4.2.0/include/g++-v4/ext/atomicity.h:51:
undefined reference to `__sync_fetch_and_add_4'
/var/tmp/portage/games-emulation/zsnes-1.51-r1/temp/ccCLCDvf.o:/usr/lib/gcc/i686-pc-linux-gnu/4.2.0/include/g++-v4/bits/basic_string.h:288:
more undefined references to `__sync_fetch_and_add_4' follow
collect2: ld returned 1 exit status
make: *** [tools/depbuild] Error 1
*
* ERROR: games-emulation/zsnes-1.51-r1 failed.
* Call stack:
* ebuild.sh, line 1647: Called dyn_compile
* ebuild.sh, line 988: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* zsnes-1.51-r1.ebuild, line 68: Called die
*
* 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-emulation/zsnes-1.51-r1/temp/build.log'.
*
And here are the infos from emerge --info:
emerge --info
Portage 2.1.3_rc8 (default-linux/x86/2007.0, gcc-4.2.0, glibc-2.6-r0, 2.6.22
i686)
=================================================================
System uname: 2.6.22 i686 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Sat, 21 Jul 2007 09:00:10 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r7
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -g"
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/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild
/etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer nostrip sfperms unmerge-orphans"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
http://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.join.uni-muenster.de/pub/linux/distributions/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ "
LANG="de_DE@euro"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j3"
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
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/portage-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa apm arts bash-completion bitmap-fonts bzip2 cdinstall
cdr cli cracklib crypt css cups dbus divx divx4linux dri dvd dvdr dvdread
encode ffmpeg firefox fortran ftp gdbm gif gpm hal iconv icq imagemagick ipv6
isdnlog java javascript jpeg kde kdeenablefinal libg++ lm_sensors mad matroska
midi mmx mp3 mpeg mudflap ncurses nls no-seamonkey nocd nptl nptlonly nsplugin
ogg opengl openmp pcre pdf perl png pppd python qt3 qt4 quicktime readline
recode reflection reiserfs samba scanner sdl session spell spl sse sse2 ssl
ssse3 svg theora truetype truetype-fonts type1-fonts unicode usb v4l vcd videos
vorbis win32codecs wmp wxwindows x264 x86 xcomposite xfs xine xinerama xml xorg
xv xvid zlib" ALSA_CARDS="emu10k1" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de"
USERLAND="GNU" VIDEO_CARDS="radeon r300 vesa"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS