When trying to emerge qemu-1.1.2 with static use flag i needed to turn off all possible feature and set the rest of the dependencies to use static-libs which would be cool if it was enough. bluez and possibly other things cannot be disabled through use flags and fail to be found. Reproducible: Always Steps to Reproduce: 1. USE=static emerge -v qemu 2. adjust package.use while its possible 3. fail anyway Actual Results: These are the packages that would be merged, in order: Calculating dependencies .. . ... done! [ebuild R ] app-emulation/qemu-1.1.2 USE="aio bluetooth caps ncurses opengl python static* threads uuid vhost-net vnc -alsa* -brltty -curl* -debug -doc -fdt -jpeg* -mixemu -png* -pulseaudio* -rbd -sasl -sdl* -smartcard -spice -systemtap -tci -tls -usbredir -vde -virtfs -xattr -xen -xfs" QEMU_SOFTMMU_TARGETS="x86_64 -alpha -arm -cris -i386 -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -s390x -sh4 -sh4eb -sparc -sparc64 -xtensa -xtensaeb" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -microblazeel -mips -mipsel -ppc -ppc64 -ppc64abi32 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -unicore32 -x86_64" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB >>> Verifying ebuild manifests >>> Running pre-merge checks for app-emulation/qemu-1.1.2 * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/3.6.2-gentoo/build * Found sources for kernel version: * 3.6.2-gentoo * Checking for suitable kernel configuration options... * You must enable KVM in your kernel to continue * You will need the Universal TUN/TAP driver compiled into your kernel or loaded as a module to use the virtual network device if using -net tap. * You will also need support for 802.1d Ethernet Bridging for some network configurations. * If you have an AMD CPU, you must enable KVM_AMD in your kernel configuration. * If you have an Intel CPU, you must enable KVM_INTEL in your kernel configuration. * Please check to make sure these options are set correctly. * Failure to do so may cause unexpected problems. * USE=static is very much a moving target because of the packages * we depend on will have their static libs ripped out or wrapped * with USE=static-libs or USE=static due to continued dicsussion * on the mailing list about USE=static's place in Gentoo. As a * result what worked today may not work tomorrow. >>> Emerging (1 of 1) app-emulation/qemu-1.1.2 * qemu-kvm-1.1.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking qemu-kvm-1.1.2.tar.gz to /var/tmp/portage/app-emulation/qemu-1.1.2/work >>> Source unpacked in /var/tmp/portage/app-emulation/qemu-1.1.2/work >>> Preparing source in /var/tmp/portage/app-emulation/qemu-1.1.2/work/qemu-kvm-1.1.2 ... * Converting shebang in '/var/tmp/portage/app-emulation/qemu-1.1.2/work/qemu-kvm-1.1.2/scripts/kvm/kvm_stat' >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-emulation/qemu-1.1.2/work/qemu-kvm-1.1.2 ... * Building the following softmmu targets: x86_64-softmmu * Building the following user targets: arm-linux-user ERROR ERROR: User requested feature bluez ERROR: configure was not able to find it ERROR * ERROR: app-emulation/qemu-1.1.2 failed (configure phase): * configure failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 5867: Called die * The specific snippet of code: * ./configure --prefix=/usr --sysconfdir=/etc --disable-bsd-user --disable-guest-agent --disable-libiscsi --disable-strip --disable-werror --python=python2 $(use_enable aio linux-aio) $(use_enable bluetooth bluez) $(use_enable brltty brlapi) $(use_enable caps cap-ng) $(use_enable curl) $(use_enable debug debug-info) $(use_enable debug debug-mon) $(use_enable debug debug-tcg) $(use_enable doc docs) $(use_enable fdt) $(use_enable jpeg vnc-jpeg) $(use_enable kernel_linux kvm) $(use_enable kernel_linux kvm-device-assignment) $(use_enable kernel_linux nptl) $(use_enable ncurses curses) $(use_enable opengl) $(use_enable png vnc-png) $(use_enable rbd) $(use_enable sasl vnc-sasl) $(use_enable sdl) $(use_enable smartcard smartcard) $(use_enable smartcard smartcard-nss) $(use_enable spice) $(use_enable tci tcg-interpreter) $(use_enable threads vnc-thread) $(use_enable tls vnc-tls) $(use_enable usbredir usb-redir) $(use_enable uuid) $(use_enable vde) $(use_enable vhost-net) $(use_enable virtfs) $(use_enable vnc) $(use_enable xattr attr) $(use_enable xen) $(use_enable xfs xfsctl) --audio-drv-list=${audio_opts} --target-list="${softmmu_targets} ${user_targets}" --cc="$(tc-getCC)" --host-cc="$(tc-getBUILD_CC)" ${conf_opts} || die "configure failed"; * * If you need support, post the output of `emerge --info '=app-emulation/qemu-1.1.2'`, * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-1.1.2'`. * The complete build log is located at '/var/tmp/portage/app-emulation/qemu-1.1.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/qemu-1.1.2/temp/environment'. * Working directory: '/var/tmp/portage/app-emulation/qemu-1.1.2/work/qemu-kvm-1.1.2' * S: '/var/tmp/portage/app-emulation/qemu-1.1.2/work/qemu-kvm-1.1.2' >>> Failed to emerge app-emulation/qemu-1.1.2, Log file: >>> '/var/tmp/portage/app-emulation/qemu-1.1.2/temp/build.log' Expected Results: emerged static qemu I have user_target ARM, and softmmu x86_64
* USE=static is very much a moving target because of the packages * we depend on will have their static libs ripped out or wrapped * with USE=static-libs or USE=static due to continued dicsussion * on the mailing list about USE=static's place in Gentoo. As a * result what worked today may not work tomorrow. Is in the output you pasted. We don't really support USE=static with ANY USE flags enabled so its always "good luck" and best effort.