/bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DUSBIDS_FILE='"/usr/share/misc/usb.ids"' -Wall -Wextra -std=gnu99 -O2 -pipe -march=native -fno-common -c -o libusbip_la-sysfs_utils.lo `test -f 'sysfs_utils.c' || echo './'`sysfs_utils.c libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DUSBIDS_FILE=\"/usr/share/misc/usb.ids\" -Wall -Wextra -std=gnu99 -O2 -pipe -march=native -fno-common -c sysfs_utils.c -fPIC -DPIC -o .libs/libusbip_la-sysfs_utils.o /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wextra -std=gnu99 -O2 -pipe -march=native -fno-common -version-info 0:1:0 -Wl,-O1 -Wl,--as-needed -o libusbip.la -rpath /usr/lib64 libusbip_la-names.lo libusbip_la-usbip_host_driver.lo libusbip_la-usbip_device_driver.lo libusbip_la-usbip_common.lo libusbip_la-usbip_host_common.lo libusbip_la-vhci_driver.lo libusbip_la-sysfs_utils.lo -lwrap -ludev libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC .libs/libusbip_la-names.o .libs/libusbip_la-usbip_host_driver.o .libs/libusbip_la-usbip_device_driver.o .libs/libusbip_la-usbip_common.o .libs/libusbip_la-usbip_host_common.o .libs/libusbip_la-vhci_driver.o .libs/libusbip_la-sysfs_utils.o -Wl,--as-needed -lwrap -ludev -O2 -march=native -Wl,-O1 -Wl,-soname -Wl,libusbip.so.0 -o .libs/libusbip.so.0.0.1 /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libusbip_la-vhci_driver.o:(.bss+0x0): multiple definition of `udev_context'; .libs/libusbip_la-usbip_host_common.o:(.bss+0x0): first defined here collect2: error: ld returned 1 exit status ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-libressl-20200125-183534 ------------------------------------------------------------------- Please see the tracker bug for details. gcc-config -l: [1] x86_64-pc-linux-gnu-9.2.0 * clang: clang version 9.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/9/bin llvm: 9.0.1 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.40.0 * java-config: The following VMs are available for generation-2: *) AdoptOpenJDK 8.242_p08 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm ghc: The Glorious Glasgow Haskell Compilation System, version 7.10.3 repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Wed, 29 Jan 2020 09:06:25 +0000 emerge -qpvO net-misc/usbip [ebuild N ] net-misc/usbip-4.13 USE="tcpd -build -static-libs -symlink"
Created attachment 608000 [details] emerge-info.txt
Created attachment 608002 [details] emerge-history.txt
Created attachment 608004 [details] environment
Created attachment 608006 [details] etc.portage.tbz2
Created attachment 608008 [details] logs.tbz2
Created attachment 608010 [details] net-misc:usbip-4.13:20200129-091510.log
Created attachment 634342 [details, diff] usbip-9999-fno-common.patch
Hi, provided patch works, but requires removing part of path, since WORKDIR is set to tools/usb/usbip/. Removing that part of path from all entries in the patch applies and compiles fine using ebuild from Gentoo repository (with additional PATCHES variable defined).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=312fbb322f44b3023a33e93f7c5a2eda32636a5c commit 312fbb322f44b3023a33e93f7c5a2eda32636a5c Author: Jakov Smolic <jakov.smolic@sartura.hr> AuthorDate: 2020-11-28 23:08:57 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2020-11-28 23:08:57 +0000 net-misc/usbip: fix build with gcc-10 * Unconditionally disable static-libs * Thanks to Jeroen Roovers for submitting the patch Closes: https://bugs.gentoo.org/707222 Package-Manager: Portage-3.0.9, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org> net-misc/usbip/files/usbip-4.13-fno-common.patch | 44 ++++++++++++++++++++++ .../{usbip-4.13.ebuild => usbip-4.13-r1.ebuild} | 22 +++++------ 2 files changed, 55 insertions(+), 11 deletions(-)