Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670300 - app-emulation/libvirt-4.9.0: build failure: error: ld returned 1 exit status: relink 'libvirt_driver_qemu.la' with the above command before installing it
Summary: app-emulation/libvirt-4.9.0: build failure: error: ld returned 1 exit status:...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-04 20:57 UTC by Thomas Deutschmann (RETIRED)
Modified: 2018-12-26 15:56 UTC (History)
2 users (show)

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


Attachments
build.log (build.log.gz,79.56 KB, text/plain)
2018-11-04 20:57 UTC, Thomas Deutschmann (RETIRED)
Details
build.log (build.log.gz,79.70 KB, application/gzip)
2018-11-04 23:36 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2018-11-04 20:57:26 UTC
Created attachment 554074 [details]
build.log

/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_command.o): in function `qemuBuildDeviceAddressStr':
qemu_command.c:(.text+0xfa8): undefined reference to `virPCIDeviceAddressAsString'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain_address.o): in function `qemuDomainCollectPCIAddress':
qemu_domain_address.c:(.text+0x317): undefined reference to `virDeviceInfoPCIAddressIsPresent'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x395): undefined reference to `virPCIDeviceAddressAsString'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain_address.o): in function `qemuDomainDeviceCalculatePCIConnectFlags.isra.7':
qemu_domain_address.c:(.text+0xbab): undefined reference to `virDeviceInfoPCIAddressIsPresent'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain_address.o): in function `qemuDomainValidateDevicePCISlotsChipsets':
qemu_domain_address.c:(.text+0xdff): undefined reference to `virDeviceInfoPCIAddressIsPresent'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0xf05): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0xf83): undefined reference to `virPCIDeviceAddressAsString'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x11cd): undefined reference to `virDeviceInfoPCIAddressIsPresent'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x12da): undefined reference to `virDeviceInfoPCIAddressIsPresent'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x1465): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x164d): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x16cb): undefined reference to `virPCIDeviceAddressAsString'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain_address.o): in function `qemuDomainAssignDevicePCISlots':
qemu_domain_address.c:(.text+0x188d): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x1908): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x1974): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x19d3): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x1a56): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x1b22): undefined reference to `virDeviceInfoPCIAddressIsPresent'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x1b54): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x1bc8): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x1c6e): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x1ced): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x1d53): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain_address.o):qemu_domain_address.c:(.text+0x1ddf): more undefined references to `virDeviceInfoPCIAddressIsWanted' follow
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain_address.o): in function `qemuDomainAssignDevicePCISlots':
qemu_domain_address.c:(.text+0x1eb4): undefined reference to `virDeviceInfoPCIAddressIsPresent'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x2007): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x203b): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x207c): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_domain_address.c:(.text+0x20b5): undefined reference to `virDeviceInfoPCIAddressIsWanted'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_domain_address.o): in function `qemuDomainReleaseDeviceAddress':
qemu_domain_address.c:(.text+0x394e): undefined reference to `virDeviceInfoPCIAddressIsPresent'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_conf.o): in function `virQEMUDriverConfigNew':
qemu_conf.c:(.text+0xbfd): undefined reference to `virDoesUserExist'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: qemu_conf.c:(.text+0xc1b): undefined reference to `virDoesGroupExist'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_process.o): in function `qemuProcessSetupPid.isra.16':
qemu_process.c:(.text+0x38a0): undefined reference to `virCgroupAddThread'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_process.o): in function `qemuProcessStartManagedPRDaemon':
qemu_process.c:(.text+0x5929): undefined reference to `virCgroupAddMachineProcess'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_process.o): in function `qemuProcessKill':
qemu_process.c:(.text+0x821c): undefined reference to `virProcessKillPainfullyDelay'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libvirt_driver_qemu_impl.a(libvirt_driver_qemu_impl_la-qemu_tpm.o): in function `qemuExtTPMSetupCgroup':
qemu_tpm.c:(.text+0x12e3): undefined reference to `virCgroupAddProcess'
collect2: error: ld returned 1 exit status
Comment 1 Matthias Maier gentoo-dev 2018-11-04 22:32:53 UTC
I cannot reproduce with version 4.8.0.

I will simply drop 4.8.0 from the tree in a minute. Please test version 4.9.0 once it is pushed to the repository.
Comment 2 Larry the Git Cow gentoo-dev 2018-11-04 22:39:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b7bc0675eaa5484fc35f9b2e197291e46dc3fa8

commit 7b7bc0675eaa5484fc35f9b2e197291e46dc3fa8
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2018-11-04 22:29:52 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2018-11-04 22:39:26 +0000

    app-emulation/libvirt: drop version 4.8.0
    
    Bug: https://bugs.gentoo.org/670300
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-emulation/libvirt/Manifest             |   1 -
 app-emulation/libvirt/libvirt-4.8.0.ebuild | 382 -----------------------------
 2 files changed, 383 deletions(-)
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2018-11-04 23:36:53 UTC
Created attachment 554106 [details]
build.log

Portage 2.3.51 (python 3.6.6-final-0, default/linux/amd64/17.1, gcc-8.2.0, glibc-2.27-r6, 4.18.16-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.18.16-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:     8124444 total,   4180900 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of repository gentoo: Sun, 04 Nov 2018 22:46:46 +0000
Head commit of repository gentoo: 0228e2103c7364c5f457d793e9bc78d138c1f9b8

sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
ccache version 3.5 [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/ccache:          3.5-r1::gentoo
dev-util/cmake:           3.12.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.39.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r1::gentoo
sys-devel/gcc:            7.3.0-r6::gentoo, 8.2.0-r4::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ANT_HOME="/usr/share/ant"
APACHE2_MPMS="worker"
ARCH="amd64"
BROOT=""
CBUILD="x86_64-pc-linux-gnu"
CCACHE_DIR="/var/cache/ccache"
CFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Wno-error=missing-prototypes -Wno-error=enum-compare -Wno-error=unused-function -Wno-error=deprecated-declarations -frecord-gcc-switches"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
COLLISION_IGNORE="/lib/modules/*"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
CURL_SSL="gnutls"
CXXFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Wno-error=missing-prototypes -Wno-error=enum-compare -Wno-error=unused-function -Wno-error=deprecated-declarations -frecord-gcc-switches"
DCO_SIGNED_OFF_BY="Thomas Deutschmann <whissi@gentoo.org>"
DEFAULT_ABI="amd64"
EDITOR="/bin/nano"
ELIBC="glibc"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Wno-error=missing-prototypes -Wno-error=enum-compare -Wno-error=unused-function -Wno-error=deprecated-declarations -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Wno-error=missing-prototypes -Wno-error=enum-compare -Wno-error=unused-function -Wno-error=deprecated-declarations -frecord-gcc-switches"
GCC_SPECS=""
GRUB_PLATFORMS=""
HOME="/root"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.31.1/info:/usr/share/info"
INPUT_DEVICES="libinput keyboard mouse"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-chain prefix-guest"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
L10N="en en-US de de-DE pt-BR"
LANG="en_US.UTF-8"
LC_MESSAGES="C"
LC_NUMERIC="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LIBDIR_amd64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib"
LINGUAS="en de"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="--jobs 6"
MANPAGER="manpager"
MULTILIB_ABIS="amd64 x86"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
OPENCL_PROFILE="mesa"
OPENGL_PROFILE="xorg-x11"
ORACLE_HOME="/usr/lib64/oracle/client"
PAGER="/usr/bin/less"
PATH="/usr/lib/llvm/7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
PHP_TARGETS="php5-6 php7-2"
POSTGRES_TARGETS="postgres9_5 postgres10"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_6"
PYTHON_TARGETS="python2_7 python3_6 python3_7"
QT_GRAPHICSSYSTEM="raster"
ROOT="/"
ROOTPATH="/usr/lib/llvm/7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
RUBY_TARGETS="ruby23"
SHELL="/bin/bash"
SHLVL="2"
SSH_TTY="/dev/pts/0"
SYMLINK_LIB="no"
SYSROOT="/"
TERM="screen"
TMUX="/tmp//tmux-0/default,5468,0"
TMUX_PANE="%0"
TNS_ADMIN="/etc/oracle/"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
USER="root"
USERLAND="GNU"
VIDEO_CARDS="vmware"

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

app-emulation/libvirt-4.6.0-r1::gentoo was built with the following:
USE="caps dbus libvirtd macvtap nls qemu udev vepa -apparmor -audit -firewalld -fuse -glusterfs -iscsi -libssh -lvm -lxc -nfs -numa (-openvz) -parted -pcap -phyp -policykit -rbd -sasl (-selinux) -uml -virt-network -virtualbox -wireshark-plugins -xen -zeroconf -zfs" ABI_X86="(64)"
Comment 4 Manfred Knick 2018-12-12 10:44:32 UTC
(In reply to Thomas Deutschmann from comment #3)

> ...
> app-emulation/libvirt-4.6.0-r1::gentoo was built with the following:
> ........................^.............

Hi, Thomas, 
cannot reproduce with app-emulation/libvirt-4.9.0   <--   WORKSFORME.

# uname -a
Linux sid 4.19.8-gentoo #1 SMP Sat Dec 8 20:03:49 CET 2018 
x86_64 Intel(R) Xeon(R) CPU E3-1276 v3 @ 3.60GHz GenuineIntel GNU/Linux

Any additional info ? just ask - kind regards
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2018-12-16 23:58:50 UTC
Well, I can't reproduce anymore, too. So I am closing my own report as invalid for now.