Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454364 - app-emulation/qemu-1.2.2-r2 QEMU_SOFTMMU_TARGETS=xtensa - .../work/qemu-kvm-1.2.0/target-xtensa/translate.c:2682:20: error: 'TCGContext' has no member named 'gen_opc_ptr'
Summary: app-emulation/qemu-1.2.2-r2 QEMU_SOFTMMU_TARGETS=xtensa - .../work/qemu-kvm-1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-28 01:31 UTC by Elizabeth Myers
Modified: 2013-02-11 15:58 UTC (History)
4 users (show)

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


Attachments
Build log (build.log,260.72 KB, text/plain)
2013-01-30 21:38 UTC, Nuno
Details
Emerge Info for last build log (emerge-info.txt,9.20 KB, text/plain)
2013-01-30 21:40 UTC, Nuno
Details
Build log (build.log,49.09 KB, text/plain)
2013-01-31 20:41 UTC, Elizabeth Myers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elizabeth Myers 2013-01-28 01:31:04 UTC
app-emulation/qemu-1.2.2-r2 (at least) will not build with the xtensa softmmu target due to a compilation error:

/var/tmp/portage/app-emulation/qemu-1.2.2-r2/work/qemu-kvm-1.2.0/target-xtensa/translate.c: In function 'gen_intermediate_code_internal':
/var/tmp/portage/app-emulation/qemu-1.2.2-r2/work/qemu-kvm-1.2.0/target-xtensa/translate.c:2682:20: error: 'TCGContext' has no member named 'gen_opc_ptr'
/var/tmp/portage/app-emulation/qemu-1.2.2-r2/work/qemu-kvm-1.2.0/target-xtensa/translate.c:2682:42: error: 'TCGContext' has no member named 'gen_opc_buf'
/var/tmp/portage/app-emulation/qemu-1.2.2-r2/work/qemu-kvm-1.2.0/target-xtensa/translate.c:2683:23: error: 'TCGContext' has no member named 'gen_opc_instr_start'
/var/tmp/portage/app-emulation/qemu-1.2.2-r2/work/qemu-kvm-1.2.0/target-xtensa/translate.c:2684:42: error: 'TCGContext' has no member named 'gen_opc_instr_start'
make[1]: *** [target-xtensa/translate.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-emulation/qemu-1.2.2-r2/work/qemu-kvm-1.2.0/xtensa-softmmu'
make: *** [subdir-xtensa-softmmu] Error 2

Reproducible: Always

Steps to Reproduce:
build app-emulation/qemu-1.2.2-r2 with xtensa in QEMU_SOFTMMU_TARGETS
Actual Results:  
Build fails

Expected Results:  
Build should succeed and kittens should emerge forth from the computer, obviously.

ein ~ # emerge --info
Portage 2.1.11.50 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.7.4-gentoo x86_64)
=================================================================
System uname: Linux-3.7.4-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5520_@_2.27GHz-with-gentoo-2.2
KiB Mem:     9215492 total,   5895580 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 27 Jan 2013 19:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.cs.uni.edu/ ftp://ftp.wallawalla.edu/pub/mirrors/ftp.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync11.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cscope cups cxx dbus declarative device-mapper dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk ico iconv ipv6 jpeg jpeg2k kde kipi lcms ldap libedit libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds python qt3support qt4 readline sdl semantic-desktop session spell sqlite sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="alpha arm cris i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel or32 ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 unicore32" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze microblazeel mips mipsel or32 ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-29 14:06:16 UTC
Please attach the complete build log.
Comment 2 Nuno 2013-01-30 21:38:49 UTC
Created attachment 337344 [details]
Build log

Build log of a failed build.
Comment 3 Nuno 2013-01-30 21:40:05 UTC
Created attachment 337346 [details]
Emerge Info for last build log
Comment 4 Elizabeth Myers 2013-01-31 20:41:03 UTC
Created attachment 337500 [details]
Build log

Build failure
Comment 5 Elizabeth Myers 2013-01-31 20:42:46 UTC
(In reply to comment #4)
> Created attachment 337500 [details]
> Build log
> 
> Build failure

I turned off MAKEOPTS=-jN for this so the output would not be interleaved, and narrowed down QEMU_SOFTMMU_TARGETS to xtensa and xtensaeb.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-02-05 09:57:50 UTC
Problem was introduced by this patch:
0293-target-xtensa-fix-search_pc-for-the-last-TB-opcode.patch
+        j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf;
+        memset(tcg_ctx.gen_opc_instr_start + lj + 1, 0,

It requires https://github.com/qemu/qemu/commit/8232a46a165c20fdc8f6bb2d06c71be55afce051 from master, however that patch does not apply cleanly to the 1.2 branch.
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2013-02-10 19:28:20 UTC
I've got this fixed in my Gentoo patch queue. I'll push it out in the next bump later today.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2013-02-10 21:29:20 UTC
qemu-1.2.2-r3 is in the tree. Let me know if it solves your issues.
Comment 9 Nuno 2013-02-11 15:58:38 UTC
qemu-1.2.2-r3 works for me.