app-emulation/qemu-0.6.1-r1 exhibits strage functionality with sparc binaries. After compiling a simple "hello world" as a static bin and running it through qemu, I found some strange things. Mainly one 'printf("hello\n");' resulted in four occurances of "hello". Reproducible: Always Steps to Reproduce: 1. qemu-sparc ./test 2. 3. Actual Results: $ qemu-sparc ./test Unsupported ioctl: cmd=0x5401 hello hello hello hello Expected Results: hello Gentoo Base System version 1.4.16 Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r14 x86_64) ================================================================= System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3400+ Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 03:24:22)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-pipe -O3 -march=k8" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-pipe -O3 -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/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="amd64 X acpi alsa berkdb bitmap-fonts cdr crypt curl dvd encode esd f77 fam flac font-server fortran gif gpm gtk gtk2 imlib ipv6 java jp2 jpeg lzw lzw-tiff motif mozilla mp3 multilib ncurses network nls oggvorbis opengl oss pam perl png python readline samba sdl softmmu speex spell sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales xml xml2 xmms xpm xrandr xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
which runtime are you using?
looks like those issues are gcc-3.4 related, the cvs qemu has fixes for many of them but the i386 emulation looks broken
is still an issue on the .7.0 version?
The problem still persists with 0.7 and a hello_world program compiled statically on some Solaris Blade workstations running SunOS 5.9.
Could you please report upstream? I don't have the hardware nor the knowledge to track the issue properly (reopen if the issue is gentoo related)