Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 157950

Summary: app-emulation/qemu-user-0.8.0 detects wrong host CPU
Product: Gentoo Linux Reporter: Benjamin Koren <benkoren>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: benkoren
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Benjamin Koren 2006-12-12 11:48:17 UTC
Here is the output of "emerge -av qemu-user". Notice what it detects as the host CPU.

[SNIP]

>>> Emerging (2 of 4) app-emulation/qemu-user-0.8.0 to /
 * qemu-0.8.0.tar.gz size ;-) ...                                                                                                                                [ ok ]
 * qemu-0.8.0.tar.gz RMD160 ;-) ...                                                                                                                              [ ok ]
 * qemu-0.8.0.tar.gz SHA256 ;-) ...                                                                                                                              [ ok ]
 * qemu-0.8.0.tar.gz MD5 ;-) ...                                                                                                                                 [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                             [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                            [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                           [ ok ]
 * checking qemu-0.8.0.tar.gz ;-) ...                                                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking qemu-0.8.0.tar.gz to /var/tmp/portage/qemu-user-0.8.0/work
 * Applying qemu-ppc-dirty-hack.patch ...                                                                                                                        [ ok ]
 * Applying qemu-0.8.0-stwbrx.patch ...                                                                                                                          [ ok ]
 * Applying qemu-0.8.0-gcc4-hacks.patch ...                                                                                                                      [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/qemu-user-0.8.0/work/qemu-0.8.0 ...
Install prefix    /usr
BIOS directory    /usr/share/qemu
binary directory  /usr/bin
Manual directory  /usr/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /var/tmp/portage/qemu-user-0.8.0/work/qemu-0.8.0
C compiler        gcc
Host C compiler   gcc
make              make
host CPU          i386
host big endian   no
target list       arm-user armeb-user i386-user ppc-user sparc-user mips-user
gprof enabled     no
static build      no
SDL support       yes
SDL static link   yes
mingw32 support   no
Adlib support     no
CoreAudio support no
ALSA support      no
DSound support    no
FMOD support      no
kqemu support     no

[SNIP]

gcc -g -Wl,-shared -o qemu-i386 elfload.o main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o vm86.o libqemu.a gdbstub.o   -lm
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in libqemu.a(helper2.o)
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make[1]: Leaving directory `/var/tmp/portage/qemu-user-0.8.0/work/qemu-0.8.0/i386-user'
make: *** [all] Error 1

!!! ERROR: app-emulation/qemu-user-0.8.0 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  qemu-user-0.8.0.ebuild, line 73:   Called die

[SNIP]

Here is the ouput of my "emerge --info". Notice the i686 arch.

Portage 2.1.1-r2 (default-linux/x86/no-nptl, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened i686)
=================================================================
System uname: 2.6.18-hardened i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.12.6
Last Sync: Tue, 12 Dec 2006 17:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
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-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
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/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j7"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://134.68.220.73/gentoo-portage"
USE="x86 X alsa apache2 apm arts audiofile berkdb bitmap-fonts bzip2 cdr cli cracklib crypt cups dlloader dri dts dvd eds elibc_glibc emboss encode ethereal exif foomaticdb fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml iconv idn imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kde kernel_linux libg++ libwww mad maildir mikmod motif mp3 mpeg mysql ncurses nls ogg opengl oss pam pcre perl png pppd python qt qt3 qt4 quicktime readline reflection samba sasl sdl session slang sockets spell spl ssl tcpd truetype truetype-fonts type1-fonts userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis xml xml2 xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-12 11:53:41 UTC
Use 0.8.2

*** This bug has been marked as a duplicate of 132467 ***