Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 706598

Summary: net-wireless/ubertooth-2018.12.1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Rick Farina (Zero_Chaos) <zerochaos>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/greatscottgadgets/ubertooth/issues/408
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-wireless:ubertooth-2018.12.1:20200126-233537.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-27 02:50:13 UTC
cd /var/tmp/portage/net-wireless/ubertooth-2018.12.1/work/ubertooth-2018.12.1_build/libubertooth/src && /usr/bin/x86_64-pc-linux-gnu-gcc -DRELEASE=\"2018-12-R1\" -DVERSION=\"1.1\" -Dubertooth_EXPORTS -I/usr/include/libusb-1.0   -DNDEBUG -O2 -pipe -march=native -fno-common -fPIC   -o CMakeFiles/ubertooth.dir/ubertooth_fifo.c.o -c /var/tmp/portage/net-wireless/ubertooth-2018.12.1/work/ubertooth-2018-12-R1/host/libubertooth/src/ubertooth_fifo.c
[ 15%] Linking C shared library libubertooth.so
cd /var/tmp/portage/net-wireless/ubertooth-2018.12.1/work/ubertooth-2018.12.1_build/libubertooth/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/ubertooth.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc -fPIC -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,libubertooth.so.1 -o libubertooth.so.1.1 CMakeFiles/ubertooth.dir/ubertooth.c.o CMakeFiles/ubertooth.dir/ubertooth_callback.c.o CMakeFiles/ubertooth.dir/ubertooth_control.c.o CMakeFiles/ubertooth.dir/ubertooth_fifo.c.o  -lusb-1.0 -lbtbb 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/ubertooth.dir/ubertooth_callback.c.o:(.bss+0x0): multiple definition of `packet_counter_max'; CMakeFiles/ubertooth.dir/ubertooth.c.o:(.bss+0x10): 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_no-multilib-20200124-204141

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *


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 *



repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 26 Jan 2020 22:26:14 +0000

emerge -qpvO net-wireless/ubertooth
[ebuild  N    ] net-wireless/ubertooth-2018.12.1  USE="bluez ubertooth1-firmware udev -static-libs"
Comment 1 Toralf Förster gentoo-dev 2020-01-27 02:50:15 UTC
Created attachment 605054 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-27 02:50:18 UTC
Created attachment 605056 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-27 02:50:21 UTC
Created attachment 605058 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-27 02:50:23 UTC
Created attachment 605060 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-27 02:50:26 UTC
Created attachment 605062 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-27 02:50:29 UTC
Created attachment 605064 [details]
net-wireless:ubertooth-2018.12.1:20200126-233537.log
Comment 7 Toralf Förster gentoo-dev 2020-01-27 02:50:31 UTC
Created attachment 605066 [details]
temp.tbz2
Comment 8 Jonas Stein gentoo-dev 2020-06-06 17:52:52 UTC
Project moved to https://github.com/greatscottgadgets/ubertooth/
Comment 9 Rick Farina (Zero_Chaos) gentoo-dev 2020-06-12 17:58:58 UTC
fixed both upstream and in 2018.12.1 without revbump (build error not runtime)

Thanks to Jonas Stein