Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124066 - qemu-user-0.8.0 fails on ppc
Summary: qemu-user-0.8.0 fails on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-25 07:39 UTC by Sven Klemm
Modified: 2006-04-23 07:56 UTC (History)
1 user (show)

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


Attachments
modified header file cpu-all.h (qemu-user-ppc-cpuall_h.patch,657 bytes, patch)
2006-04-21 16:08 UTC, dimitrij wagner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Klemm 2006-02-25 07:39:01 UTC
This is the error i get:

/var/tmp/portage/qemu-user-0.8.0/work/qemu-0.8.0/linux-user/elfload.c: In function `load_elf_binary':
/var/tmp/portage/qemu-user-0.8.0/work/qemu-0.8.0/cpu-all.h:253: error: inconsistent operand constraints in an `asm'
/var/tmp/portage/qemu-user-0.8.0/work/qemu-0.8.0/cpu-all.h:253: error: inconsistent operand constraints in an `asm'
make[1]: *** [elfload.o] Error 1

This is the emerge --info output:
Portage 2.0.54 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r3, 2.6.15-gentoo-r1-pinealgland ppc)
=================================================================
System uname: 2.6.15-gentoo-r1-pinealgland ppc 7455, altivec supported
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -mcpu=7400 -mtune=G4 -pipe -maltivec -mabi=altivec -mpowerpc-gfxopt -fomit-frame-pointer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=7400 -mtune=G4 -pipe -maltivec -mabi=altivec -mpowerpc-gfxopt -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="ppc X a52 aac alsa altivec audiofile bash-completion berkdb bitmap-fonts bluetooth bzip2 cdparanoia cdr crypt cups curl dri dvd dvdread eds emboss encode esd ethereal exif expat fam fbcon ffmpeg flac fortran gd gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml iconv idn ieee1394 imagemagick imlib ipv6 jabber jpeg jpeg2k lcms libwww mad matroska mikmod mmap mng motif mp3 mpeg ncurses nls nptl ogg oggvorbis opengl pam pcre pdflib perl png postgres python readline ruby samba sdl sox speex spell sqlite ssl svg symlink tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis wifi xine xml2 xmms xpm xsl xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Luca Barbato gentoo-dev 2006-02-25 12:57:38 UTC
seems that is working with gcc-4.x but not gcc-3.4.x

I'll try to solve the issue later
Comment 2 Daniele Viganò 2006-03-24 04:16:27 UTC
Removing arm-user and armeb-user from TARGET_LIST in ebuild make qemu 0.8.0 compile under PPC with GCC 3.4.5.
Comment 3 dimitrij wagner 2006-04-21 16:08:49 UTC
Created attachment 85153 [details, diff]
modified header file cpu-all.h

the problem on ppc boxes is caused by a compiler switch ( __powerpc__ ) which enables the compilation of a code fragment ( inline assembly ).
the constraints list of that asm-statement is not correctly defined.
this patch corrects that constraints-list
Comment 4 Luca Barbato gentoo-dev 2006-04-23 07:56:25 UTC
Committed, thanks