Created attachment 379724 [details] output of `emerge --info '=app-emulation/qemu-2.0.0::gentoo' QEMU Build failure. usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ludev ../os-posix.o: In function `os_setup_post': os-posix.c:(.text+0x611): warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ../os-posix.o: In function `os_parse_cmd_args': os-posix.c:(.text+0x389): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ../net/slirp.o: In function `slirp_smb': slirp.c:(.text+0x694): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libglib-2.0.a(libglib_2_0_la-gutils.o): In function `g_get_user_database_entry': gutils.c:(.text+0xac): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking gutils.c:(.text+0xe3): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ../libqemuutil.a(qemu-sockets.o): In function `inet_listen_opts': qemu-sockets.c:(.text+0x524): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ../net/net.o: In function `parse_host_port': net.c:(.text+0x536): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking collect2: error: ld returned 1 exit status make[1]: *** [qemu-system-x86_64] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/qemu-2.0.0/work/qemu-2.0.0/softmmu-build/x86_64-softmmu' make: *** [subdir-x86_64-softmmu] Error 2 * ERROR: app-emulation/qemu-2.0.0::gentoo failed (compile phase): * emake failed
Created attachment 379726 [details] output of `emerge -pqv '=app-emulation/qemu-2.0.0::gentoo'
Created attachment 379728 [details] build.log
Created attachment 379730 [details] environment
I'm attempting to setup an arm chroot with statically linked qemu, but I am running into the same problem. I have enabled USE="static-libs" in /etc/portage/make.conf, updated my system with emerge -uDN world, and then tried to re-emerge qemu with the following use flags: app-emulation/qemu-2.0.0 USE="aio caps fdt filecaps jpeg ncurses png seccomp static* static-softmmu* static-user* tci threads usb uuid vhost-net vnc xattr -accessibility -alsa* -bluetooth* -curl* -debug (-glusterfs) -gtk* -iscsi -opengl* -pulseaudio -python -rbd -sasl -sdl* (-selinux) -smartcard -spice -ssh -systemtap {-test} -tls -usbredir -vde -virtfs -xen -xfs" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="aarch64 alpha arm cris i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel moxie or32 ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 unicore32 x86_64 xtensa xtensaeb" QEMU_USER_TARGETS="aarch64 alpha arm armeb cris i386 m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el or32 ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32 x86_64"
not a bug in qemu as it does not use udev. it does use libusb though, and libusb can optionally utilize udev. libusb, when built with USE=static-libs, needs to RDEPEND on udev[static-libs].
with permission from Cardoe this has been fixed in 1.0.19-r1 and 1.0.20