Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650712 - app-emulation/qemu-2.11.0 - ld: cannot find -lxkbcommon
Summary: app-emulation/qemu-2.11.0 - ld: cannot find -lxkbcommon
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-17 12:56 UTC by yves.caniou
Modified: 2018-05-31 06:03 UTC (History)
2 users (show)

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


Attachments
Build for app-emulation/qemu-2.11.1-r2 (build.log,877.56 KB, text/plain)
2018-04-05 06:23 UTC, yves.caniou
Details
build_part1.log (build_part1.log,781.91 KB, text/plain)
2018-05-31 06:01 UTC, yves.caniou
Details
Second part of the build log file (build_part2.log,781.91 KB, text/plain)
2018-05-31 06:03 UTC, yves.caniou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yves.caniou 2018-03-17 12:56:28 UTC
Hi,

$ eix qemu
[U] app-emulation/qemu
     Available versions:  2.11.0 ~2.11.1 **2.11.1-r50 **9999 {accessibility +aio alsa bluetooth bzip2 +caps +curl debug +fdt +filecaps glusterfs gnutls gtk gtk2 infiniband iscsi +jpeg lzo ncurses nfs nls numa opengl +pin-upstream-blobs +png pulseaudio python rbd sasl sdl sdl2 +seccomp selinux smartcard snappy spice ssh static static-user systemtap tci test usb usbredir vde +vhost-net virgl virtfs +vnc vte xattr xen xfs KERNEL="FreeBSD linux" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="aarch64 alpha arm cris hppa i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel moxie nios2 or1k ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 tricore unicore32 x86_64 xtensa xtensaeb" QEMU_USER_TARGETS="aarch64 aarch64_be alpha arm armeb cris hppa i386 m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el nios2 or1k ppc ppc64 ppc64abi32 ppc64le s390x sh4 sh4eb sparc sparc32plus sparc64 tilegx x86_64"}
     Installed versions:  2.10.1-r1(11:50:56 06/01/2018)(bzip2 fdt pin-upstream-blobs static static-user xattr -accessibility -aio -alsa -bluetooth -caps -curl -debug -filecaps -glusterfs -gnutls -gtk -gtk2 -infiniband -iscsi -jpeg -lzo -ncurses -nfs -nls -numa -opengl -png -pulseaudio -python -rbd -sasl -sdl -sdl2 -seccomp -selinux -smartcard -snappy -spice -ssh -systemtap -tci -test -usb -usbredir -vde -vhost-net -virgl -virtfs -vnc -vte -xen -xfs KERNEL="linux -FreeBSD" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="arm x86_64 -aarch64 -alpha -cris -i386 -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -moxie -nios2 -or1k -ppc -ppc64 -ppcemb -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb" QEMU_USER_TARGETS="arm -aarch64 -alpha -armeb -cris -hppa -i386 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64abi32 -ppc64le -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -tilegx -x86_64")
     Homepage:            http://www.qemu.org http://www.linux-kvm.org
     Description:         QEMU + Kernel-based Virtual Machine userland tools


$> eix libxkbcommon
[I] x11-libs/libxkbcommon
     Available versions:  0.6.0 0.7.1 ~0.7.2 ~0.8.0 {X doc static-libs test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0.7.1(06:41:30 07/12/2017)(X -doc -static-libs -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            https://xkbcommon.org/
     Description:         X.Org xkbcommon library

Uprading qemu to 2.11.0 gives : (last line of compilation)
x86_64-pc-linux-gnu-g++ -I/usr/include/pixman-1  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -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  -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/var/tmp/portage/app-emulation/qemu-2.11.0/work/qemu-2.11.0/tests  -O2 -pipe -Wl,--warn-common -m64 -static -Wl,-O1 -Wl,--as-needed -o qemu-keymap qemu-keymap.o ui/input-keymap.o  libqemuutil.a   -lm -lgthread-2.0 -pthread -lglib-2.0 -pthread -lpcre -pthread  -lz -lrt -lz  -lutil -lxkbcommon
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lxkbcommon
collect2: error: ld returned 1 exit status

Cheers.

.Y
Comment 1 yves.caniou 2018-03-20 07:49:20 UTC
Tried with app-emulation/qemu-2.11.1-r1, same error:
x86_64-pc-linux-gnu-g++ -I/usr/include/pixman-1  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -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  -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/var/tmp/portage/app-emulation/qemu-2.11.1-r1/work/qemu-2.11.1/tests  -O2 -pipe -Wl,--warn-common -m64 -static -Wl,-O1 -Wl,--as-needed -o qemu-keymap qemu-keymap.o ui/input-keymap.o  libqemuutil.a   -lm -lgthread-2.0 -pthread -lglib-2.0 -pthread -lpcre -pthread  -lz -lrt -lz  -lutil -lxkbcommon
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lxkbcommon
collect2: error: ld returned 1 exit status
Comment 2 Matthias Maier gentoo-dev 2018-04-04 15:39:42 UTC
I cannot reproduce. Can you please attach an $ emerge --info app-emulation/qemu and a complete build.log? After that, please reopen!
Comment 3 yves.caniou 2018-04-05 06:23:32 UTC
Created attachment 526586 [details]
Build for app-emulation/qemu-2.11.1-r2

Log reduced to be <1000KB
Comment 4 yves.caniou 2018-04-05 06:25:40 UTC
# emerge --info app-emulation/qemu
[niced emerge]
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r11, 4.4.126 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.126-x86_64-Intel-R-_Pentium-R-_CPU_G840_@_2.80GHz-with-gentoo-2.4.1
KiB Mem:     8060944 total,    100648 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 05 Apr 2018 05:30:01 +0000
Head commit of repository gentoo: 2b5e0c95f6393acdf25683dea6ef7c797721cde3
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
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.4.5-r1::gentoo, 3.5.4-r1::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.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::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.25-r11::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no

MyLocalOverlay
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -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/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.lecl.net/pub/gentoo/ http://ftp.kaist.ac.kr/pub/gentoo/ ftp://ftp.kaist.ac.kr/gentoo/ http://mirror.datapipe.net/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr en"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 anthy bash-completion berkdb branding bzip2 cairo cdda cdr celt cjk cli clucene cpudetection crypt cups cxx dbus declarative dga dri dts dvd dvdr elogind emboss encode exif fam fbcon ffmpeg flac fortran gdbm gif glamor gpm gtk h224 h281 h323 hal ibus iconv icu immqt-bc introspection ipv6 jpeg kde kipi kwallet lcms ldap libnotify m17n-lib mad mmx mng modules mp3 mp4 mpeg mpi multilib ncurses nls nptl nsplugin ogg oggvorbis opengl openmp pam pango pcre pdf phonon plasma png policykit ppds python qml qt3support qt5 quicktime readline scim sdl seccomp semantic-desktop sip sipim spell srtp sse sse2 ssl ssse3 startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb vorbis wav widgets wxwidgets x264 xattr xcb xcomposite xft xinerama xml xml2 xmms xv xvid 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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="libinput keyboard mouse" KERNEL="linux" L10N="fr en" 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" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="x86_64 arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

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

>>> Attempting to run pkg_info() for 'app-emulation/qemu-2.10.1-r1'
Using:
  
  sys-firmware/edk2-ovmf-2017_pre20170505-r1
    USE=binary
  sys-firmware/ipxe-1.0.0_p20160620
  sys-firmware/seabios-1.10.2
    USE=binary
  sys-firmware/sgabios-0.1_pre8
Comment 5 yves.caniou 2018-05-31 06:01:51 UTC
Created attachment 534214 [details]
build_part1.log
Comment 6 yves.caniou 2018-05-31 06:03:01 UTC
Created attachment 534216 [details]
Second part of the build log file