Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64858 - qemu-0.6 fails to compile with gcc 3.4
Summary: qemu-0.6 fails to compile with gcc 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
: 57453 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-21 07:47 UTC by Olaf Leidinger
Modified: 2004-09-25 04:31 UTC (History)
1 user (show)

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


Attachments
proposed patch (qemu-0.6.0-gcc-3.4.patch,715 bytes, patch)
2004-09-21 07:49 UTC, Olaf Leidinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olaf Leidinger 2004-09-21 07:47:53 UTC
When emerging qemu  using gcc-3.4 and the following commandline

USE=qemu-fast  emerge /usr/portage/app-emulation/qemu/qemu-0.6.0.ebuild 

I get:

gcc -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -mpreferred-stack-boundary=2 -falign-functions=0 -fno-reorder-blocks -fno-optimize-sibling-calls -I. -I/var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0/target-i386 -I/var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0 -D_GNU_SOURCE -I/var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0/slirp -c -o op.o /var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0/target-i386/op.c
/var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0/target-i386/ops_template_mem.h: In function `op_rolb_kernel_T0_T1_cc':
/var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0/softmmu_header.h:179: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0/i386'
make: *** [all] Error 1

!!! ERROR: app-emulation/qemu-0.6.0 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! make failed


I created a patch which solves the problem with gcc-3.4



Reproducible: Always
Steps to Reproduce:




emerge info gives:


Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r4)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -ftracer -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -ftracer -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.gigaload.org/gentoo.org/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/"
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="3dnow X aalib alsa apm avi berkdb bitmap-fonts cairo cdr crypt cups dga
directfb encode esd fbcon foomaticdb gdbm gif gnome gpm gtk gtk2 hal imlib java
jpeg kde libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl
oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse
ssl svg tcpd truetype wxwindows x86 xinerama xml2 xprint xv xvid zlib"
Comment 1 Olaf Leidinger 2004-09-21 07:49:20 UTC
Created attachment 40091 [details, diff]
proposed patch
Comment 2 Hanno Böck gentoo-dev 2004-09-25 04:18:56 UTC
*** Bug 57453 has been marked as a duplicate of this bug. ***
Comment 3 Hanno Böck gentoo-dev 2004-09-25 04:31:25 UTC
done