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

Bug 530724

Summary: app-emulation/qemu-2.1.2-r1 - src_configure(): ERROR: User requested feature linux AIO // configure was not able to find it.
Product: Gentoo Linux Reporter: dE <de.techno>
Component: Current packagesAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED DUPLICATE    
Severity: normal CC: qemu+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description dE 2014-11-26 04:36:37 UTC
>>> Emerging (1 of 1) app-emulation/qemu-2.1.2-r1::gentoo
 * qemu-2.1.2.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking qemu-2.1.2.tar.bz2 to /tmp/portage/app-emulation/qemu-2.1.2-r1/work
>>> Source unpacked in /tmp/portage/app-emulation/qemu-2.1.2-r1/work
>>> Preparing source in /tmp/portage/app-emulation/qemu-2.1.2-r1/work/qemu-2.1.2 ...
 * Applying qemu-1.7.0-cflags.patch ...                                                                            [ ok ]
 * Applying qemu-2.1.1-readlink-self.patch ...                                                                     [ ok ]
 * Applying qemu-2.1.2-vnc-sanitize-bits.patch ...                                                                 [ ok ]
>>> Source prepared.
>>> Configuring source in /tmp/portage/app-emulation/qemu-2.1.2-r1/work/qemu-2.1.2 ...
 * Building the following softmmu targets: ,x86_64-softmmu
 * Building the following user targets: ,arm-linux-user
 * ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 --docdir=/usr/share/doc/qemu-2.1.2-r1/html --disable-bsd-user --disable-guest-agent --disable-strip --disable-werror --python=/usr/bin/python2.7 --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 --disable-attr --disable-brlapi --enable-linux-aio --disable-bluez --enable-cap-ng --disable-curl --disable-fdt --disable-glusterfs --enable-gtk --disable-rdma --disable-libiscsi --disable-vnc-jpeg --enable-kvm --enable-lzo --enable-curses --disable-libnfs --disable-numa --enable-glx --disable-vnc-png --disable-rbd --disable-vnc-sasl --enable-sdl --enable-seccomp --disable-smartcard-nss --disable-snappy --disable-spice --disable-libssh2 --disable-quorum --disable-vnc-tls --disable-vnc-ws --enable-libusb --enable-usb-redir --enable-uuid --enable-vde --enable-vhost-net --disable-virtfs --enable-vnc --disable-xen --disable-xen-pci-passthrough --enable-xfsctl --disable-linux-user --enable-system --target-list=,x86_64-softmmu --with-system-pixman --audio-drv-list=sdl,alsa,oss --with-gtkabi=3.0

ERROR: User requested feature linux AIO
       configure was not able to find it.
       Install libaio devel

Reproducible: Always




Portage 2.2.12_p14 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.19-r1, 3.17.1-gentoo x86_64)
=================================================================
System uname: Linux-3.17.1-gentoo-x86_64-Intel-R-_Core-TM-_i3-2120_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     8117296 total,   2076872 free
KiB Swap:   18874364 total,  18874364 free
Timestamp of tree: Mon, 17 Nov 2014 03:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo x11 sunrise wish mistafunk bitcoin my-tree
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -flto -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -flto -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=n --complete-graph --binpkg-respect-use=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy ccache config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/sunrise /var/lib/layman/wish /var/lib/layman/mistafunk /var/lib/layman/bitcoin /home/de/dev-tree"
USE="X a52 a53 aac aalib acc acpi adns alsa amd64 amr atm audiofile branding bzip2 cdda cdr cli consolekit cracklib css custom-cflags custom-optimization dbus dbx declarative dga dirac dri dts dv dvd dvdr emboss encode enscript exif ffmpeg firefox flac fortran gdu gif glamor gles glut gmp gsm gstreamer gzip iconv imlib ipc jit jpeg jpeg2k kde ladspa lame lcms libedit libnotify libsamplerate libwww lzma lzo mad matroska matrox mikmod mime minimal mmap mmx mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack networkmanager nntp nocd nptl nptlonly nsplugin offensive ogg openal opencl openexr opengl openmp optimization orc osc pam pango pdf phonon plasma png policykit posix ppds pppd qt3support qt4 quicktime raw readline schroedinger sharedmem shorten smp sndfile sockets socks5 speex spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3 startup-notification strong-optimization svg symlink sysfs taglib tcpd theora threads tiff toolame truetype twolame udev udisks unicode unixd upower usb vaapi vcd vhosts vorbis wavpack win32codecs wmf wxwidgets x264 xcb xcomposite xine xinerama xml xorg xpm 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="unixd authn_core authz_core auth_basic auth_digest authn_file authz_user cgi socache_shmcb" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965 i915" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 dE 2014-11-27 06:45:17 UTC
I tried the test that configure was doing.

gcc -laio aio.c 
/lib64/libaio.so.1: undefined reference to `io_getevents'
collect2: error: ld returned 1 exit status

source  --

#include <libaio.h>
#include <sys/eventfd.h>
#include <stddef.h>
int main(void) { io_setup(0, NULL); io_set_eventfd(NULL, 0); eventfd(0, 0); return 0; }
Comment 2 Matthias Maier gentoo-dev 2014-12-14 23:20:13 UTC
I cannot reproduce.

(In reply to dE from comment #1)

> I tried the test that configure was doing.
> 
> gcc -laio aio.c 
> /lib64/libaio.so.1: undefined reference to `io_getevents'
> collect2: error: ld returned 1 exit status
> 
> source  --
> 
> #include <libaio.h>
> #include <sys/eventfd.h>
> #include <stddef.h>
> int main(void) { io_setup(0, NULL); io_set_eventfd(NULL, 0); eventfd(0, 0);
> return 0; }

This is a good hint as above snippet of code links fine on my machine.


A quick search reveals bug #459716.


So, please remove -flto from your CFLAGS for dev-libs/libaio (either in general in make.conf, or with the package.env/env facility). For future problems of this kind, I'd suggest to keep a close eye on -flto as this is known to cause some issues.

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