Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] QEMU; "Target 'x86_64-softmmu' not recognised"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Dimetra
n00b
n00b


Joined: 11 Mar 2014
Posts: 4

PostPosted: Fri Jul 06, 2018 9:18 pm    Post subject: [SOLVED] QEMU; "Target 'x86_64-softmmu' not recognised& Reply with quote

First time poster, so tell me if I've posted in the wrong area.

I am trying to merge app-emulation/qemu-2.12.0-r3, but the build stops during the configure phase with a message similar to "Target 'x86_64-softmmu' not recognised".

I have the following in /etc/portage/make.conf. I have tried changing these targets, and also removing them altogether, but I still receive a "Target '[whatever]-softmmu' not recognized.
Code:

QEMU_SOFTMMU_TARGETS="x86_64"
QEMU_USER_TARGETS="x86_64"


I've been running QEMU for several years now with no real build issues. However, a few nights ago I made the mistake of allowing portage to pull in upgrades to too many important packages all at once, including portage-2.3.40-r1, gcc-7.3.0-r3, qemu-2.12.0-r3, and several of qemu's dependencies. (I usually make major changes one at a time.) Following the upgrades, qemu fails to build with the message above. I have tried rolling back several of these upgrades and then building QEMU again, to no avail.

I have the following packages installed currently, if this is relevant. They built with no issues:
Code:

sys-apps/portage-2.3.40-r1
sys-devel/gcc-7.3.0-r3
sys-firmware/edk2-ovmf-2017_p20180211
sys-firmware/ipxe-1.0.0_p20180211
sys-firmware/seabios-1.11.0
sys-firmware/sgabios-0.1_pre8-r1


Unfortunately, I do not understand the build process well enough to track this issue down.

Any assistance would be greatly appreciated. TIA

-Steve


Output of `emerge -pqv '=app-emulation/qemu-2.12.0-r3::gentoo'`
Code:

[ebuild  N    ] app-emulation/qemu-2.12.0-r3  USE="aio alsa bzip2 caps curl fdt filecaps jpeg ncurses nls opengl pin-upstream-blobs png pulseaudio sdl seccomp usb vhost-net vnc xattr -accessibility -bluetooth (-capstone) -debug (-glusterfs) -gnutls -gtk -gtk2 -infiniband -iscsi -lzo -nfs -numa -python -rbd -sasl -sdl2 (-selinux) -smartcard -snappy -spice -ssh (-static) -static-user -systemtap -tci {-test} -usbredir -vde -virgl -virtfs -vte -xen -xfs" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6" QEMU_SOFTMMU_TARGETS="x86_64 -aarch64 -alpha -arm -cris -hppa -i386 -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -moxie -nios2 -or1k -ppc -ppc64 -ppcemb -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb" QEMU_USER_TARGETS="x86_64 -aarch64 -aarch64_be -alpha -arm -armeb -cris -hppa -i386 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64abi32 -ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -tilegx -xtensa -xtensaeb"


Output of `emerge --info '=app-emulation/qemu-2.12.0-r3::gentoo'`
Code:

Portage 2.3.40 (python 3.5.5-final-0, hardened/linux/amd64, gcc-7.3.0, glibc-2.26-r7, 4.9.95-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.95-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_X_980_@_3.33GHz-with-gentoo-2.4.1
KiB Mem:     6119664 total,   3497396 free
KiB Swap:    5182200 total,   5180956 free
Timestamp of repository gentoo: Wed, 04 Jul 2018 00:45:01 +0000
Head commit of repository gentoo: a95fb2c43f530843ab8db95718278e2539f77f62
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://dimetra.net/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --port=44873

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--port=44873"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl additions alsa amd64 asf berkdb bzip2 caps cdinstall cdr clamav cli crypt cups cxx dri dvd dvdnav dvdr dvdread encode fbcon ffmpeg gdbm gif gpm hardened iconv imlib ipv6 jpeg libtirpc lm_sensors mbrola mikmod modules mp3 mpeg multilib ncurses new-login nls nocd nptl ogg openal opengl openmp pam pcre pie png pulseaudio pvr quicktime radio readline seccomp sndfile spell ssl ssp symlink tcpd threads tiff tls truetype unicode urandom usb vcd verbose videos vorbis xattr xine xinerama xpm xtpax xv xvid xvmc zlib" ABI_X86="64" 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" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

app-emulation/qemu-2.12.0-r3::gentoo would be built with the following:
USE="aio alsa bzip2 caps curl fdt filecaps jpeg ncurses nls opengl pin-upstream-blobs png pulseaudio sdl seccomp usb vhost-net vnc xattr -accessibility -bluetooth (-capstone) -debug (-glusterfs) -gnutls -gtk -gtk2 -infiniband -iscsi -lzo -nfs -numa -python -rbd -sasl -sdl2 (-selinux) -smartcard -snappy -spice -ssh (-static) -static-user -systemtap -tci -test -usbredir -vde -virgl -virtfs -vte -xen -xfs" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6" QEMU_SOFTMMU_TARGETS="x86_64 -aarch64 -alpha -arm -cris -hppa -i386 -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -moxie -nios2 -or1k -ppc -ppc64 -ppcemb -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb" QEMU_USER_TARGETS="x86_64 -aarch64 -aarch64_be -alpha -arm -armeb -cris -hppa -i386 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64abi32 -ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -tilegx -xtensa -xtensaeb"

>>> Attempting to run pkg_info() for 'app-emulation/qemu-2.12.0-r3'
Using:

  sys-firmware/edk2-ovmf-2017_p20180211
    USE=binary
  sys-firmware/ipxe-1.0.0_p20180211
  sys-firmware/seabios-1.11.0
    USE=binary
  sys-firmware/sgabios-0.1_pre8-r1


Output of "/var/tmp/portage/app-emulation/qemu-2.12.0-r3/temp/build.log"
Code:

 * Package:    app-emulation/qemu-2.12.0-r3
 * Repository: gentoo
 * Maintainer: tamiko@gentoo.org virtualization@gentoo.org
 * USE:        abi_x86_64 aio alsa amd64 bzip2 caps curl elibc_glibc fdt filecaps jpeg kernel_linux ncurses nls opengl pin-upstream-blobs png pulseaudio python_targets_python2_7 python_targets_python3_5 qemu_softmmu_targets_x86_64 qemu_user_targets_x86_64 sdl seccomp usb userland_GNU vhost-net vnc xattr
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking qemu-2.12.0.tar.bz2 to /var/tmp/portage/app-emulation/qemu-2.12.0-r3/work
>>> Unpacking qemu-2.12.0-patches-r5.tar.xz to /var/tmp/portage/app-emulation/qemu-2.12.0-r3/work
>>> Source unpacked in /var/tmp/portage/app-emulation/qemu-2.12.0-r3/work
>>> Preparing source in /var/tmp/portage/app-emulation/qemu-2.12.0-r3/work/qemu-2.12.0 ...
 * Applying qemu-2.5.0-cflags.patch ...                                                                                                                                                                                               [ ok ]
 * Applying qemu-2.5.0-sysmacros.patch ...                                                                                                                                                                                            [ ok ]
 * Applying qemu-2.11.1-capstone_include_path.patch ...                                                                                                                                                                               [ ok ]
 * Applying patches from /var/tmp/portage/app-emulation/qemu-2.12.0-r3/work/patches ...
 *   0001-qapi-Open-files-with-encoding-utf-8.patch ...                                                                                                                                                                               [ ok ]
 *   0002-Revert-commit-d4e5ec877ca.patch ...                                                                                                                                                                                         [ ok ]
 *   0003-vga-catch-depth-0.patch ...                                                                                                                                                                                                 [ ok ]
 *   0004-tcg-instruction-overflow.patch ...                                                                                                                                                                                          [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/qemu-2.12.0-r3/work/qemu-2.12.0 ...
../configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 --docdir=/usr/share/doc/qemu-2.12.0-r3/html --disable-bsd-user --disable-guest-agent --disable-strip --disable-werror --disable-gcrypt --python=/usr/bin/python3.5 --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --host-cc=x86_64-pc-linux-gnu-gcc --disable-debug-info --disable-debug-tcg --enable-docs --disable-tcg-interpreter --enable-attr --disable-brlapi --enable-linux-aio --enable-bzip2 --disable-bluez --disable-capstone --enable-cap-ng --enable-curl --enable-fdt --disable-glusterfs --disable-gnutls --disable-nettle --disable-gtk --disable-rdma --disable-libiscsi --enable-vnc-jpeg --enable-kvm --disable-lzo --enable-curses --disable-libnfs --disable-numa --enable-opengl --enable-vnc-png --disable-rbd --disable-vnc-sasl --enable-sdl --enable-seccomp --disable-smartcard --disable-snappy --disable-spice --disable-libssh2 --enable-libusb --disable-usb-redir --disable-vde --enable-vhost-net --disable-virglrenderer --disable-virtfs --enable-vnc --disable-vte --disable-xen --disable-xen-pci-passthrough --disable-xfsctl --enable-libxml2 --audio-drv-list=pa,sdl,alsa,oss --with-sdlabi=1.2 --disable-linux-user --enable-system --disable-tools --target-list=x86_64-softmmu --enable-pie
Install prefix    /usr
BIOS directory    /usr/share/qemu
firmware path     /usr/share/qemu-firmware
binary directory  /usr/bin
library directory /usr/lib64
module directory  /usr/lib64/qemu
libexec directory /usr/libexec
include directory /usr/include
config directory  /etc
local state directory   /usr/var
Manual directory  /usr/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /var/tmp/portage/app-emulation/qemu-2.12.0-r3/work/qemu-2.12.0
GIT binary        git
GIT submodules
C compiler        x86_64-pc-linux-gnu-gcc
Host C compiler   x86_64-pc-linux-gnu-gcc
C++ compiler      x86_64-pc-linux-gnu-g++
Objective-C compiler x86_64-pc-linux-gnu-gcc
ARFLAGS           rv
CFLAGS            -march=native -O2 -pipe -fomit-frame-pointer
QEMU_CFLAGS       -I/usr/include/pixman-1  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv  -Wexpansion-to-defined -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong  -I/usr/include/libpng16 -I/usr/include/libdrm
LDFLAGS           -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -Wl,-O1 -Wl,--as-needed
make              make
install           install
python            /usr/bin/python3.5 -B
smbd              /usr/sbin/smbd
module support    no
host CPU          x86_64
host big endian   no
target list       x86_64-softmmu
gprof enabled     no
sparse enabled    no
strip binaries    no
profiler          no
static build      no
SDL support       yes (1.2.15)
GTK support       no
GTK GL support    no
VTE support       no
TLS priority      NORMAL
GNUTLS support    no
GNUTLS rnd        no
libgcrypt         no
libgcrypt kdf     no
nettle            no
nettle kdf        no
libtasn1          yes
curses support    yes
virgl support     no
curl support      yes
mingw32 support   no
Audio drivers     pa sdl alsa oss
Block whitelist (rw)
Block whitelist (ro)
VirtFS support    no
Multipath support no
VNC support       yes
VNC SASL support  no
VNC JPEG support  yes
VNC PNG support   yes
xen support       no
brlapi support    no
bluez  support    no
Documentation     yes
PIE               yes
vde support       no
netmap support    no
Linux AIO support yes
ATTR/XATTR support yes
Install blobs     yes
KVM support       yes
HAX support       no
HVF support       no
WHPX support      no
TCG support       yes
TCG debug enabled no
TCG interpreter   no
malloc trim support yes
RDMA support      no
fdt support       yes
membarrier        no
preadv support    yes
fdatasync         yes
madvise           yes
posix_madvise     yes
posix_memalign    yes
libcap-ng support yes
vhost-net support yes
vhost-crypto support yes
vhost-scsi support yes
vhost-vsock support yes
vhost-user support yes
Trace backends    log
spice support     no
rbd support       no
xfsctl support    no
smartcard support no
libusb            yes
usb net redir     no
OpenGL support    yes
OpenGL dmabufs    yes
libiscsi support  no
libnfs support    no
build guest agent no
QGA VSS support   no
QGA w32 disk info no
QGA MSI support   no
seccomp support   yes
coroutine backend ucontext
coroutine pool    yes
debug stack usage no
crypto afalg      no
GlusterFS support no
gcov              gcov
gcov enabled      no
TPM support       yes
libssh2 support   no
TPM passthrough   yes
TPM emulator      yes
QOM debugging     yes
Live block migration yes
lzo support       no
snappy support    no
bzip2 support     yes
NUMA host support no
libxml2           yes
tcmalloc support  no
jemalloc support  no
avx2 optimization yes
replication support yes
VxHS block device no
capstone          no

WARNING: Use of SDL 1.2 is deprecated and will be removed in
WARNING: future releases. Please switch to using SDL 2.0

ERROR: Target 'x86_64-softmmu' not recognised

 * ERROR: app-emulation/qemu-2.12.0-r3::gentoo failed (configure phase):
 *   configure failed
 *
 * Call stack:
 *     ebuild.sh, line  124:  Called src_configure
 *   environment, line 5801:  Called qemu_src_configure 'softmmu'
 *   environment, line 5544:  Called die
 * The specific snippet of code:
 *       ../configure "${conf_opts[@]}" || die "configure failed";
 *
 * If you need support, post the output of `emerge --info '=app-emulation/qemu-2.12.0-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-2.12.0-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/qemu-2.12.0-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/qemu-2.12.0-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/qemu-2.12.0-r3/work/qemu-2.12.0/softmmu-build'
 * S: '/var/tmp/portage/app-emulation/qemu-2.12.0-r3/work/qemu-2.12.0'

_________________
Dogs have owners... Cats have staff.


Last edited by Dimetra on Sun Jul 08, 2018 1:48 am; edited 1 time in total
Back to top
View user's profile Send private message
Dimetra
n00b
n00b


Joined: 11 Mar 2014
Posts: 4

PostPosted: Sat Jul 07, 2018 11:23 pm    Post subject: Reply with quote

A bit more information. I find that I cannot build QEMU from the source located at https://www.qemu.org/download/#source (as opposed to simply using "emerge qemu"). I receive the same error of "Target '[whatever]-softmmu' not recognized." I'm not sure what this means.
_________________
Dogs have owners... Cats have staff.
Back to top
View user's profile Send private message
Dimetra
n00b
n00b


Joined: 11 Mar 2014
Posts: 4

PostPosted: Sun Jul 08, 2018 1:48 am    Post subject: Reply with quote

Issue is resolved.

An errant ">" in a command line overwrote my /usr/bin/cut file. Resolved by re-merging coreutils.

# echo bleeblah > /usr/bin/cut
instead of
# echo bleeblah | /usr/bin/cut
_________________
Dogs have owners... Cats have staff.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum