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

Bug 706680

Summary: media-sound/bluez-alsa-2.1.0 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED FIXED    
Severity: normal CC: arkadiusz.bokowy
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
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
media-sound:bluez-alsa-2.1.0:20200127-063010.log
temp.tbz2
Fix linkage - patch made for v2.1.0

Description Toralf Förster gentoo-dev 2020-01-27 17:31:07 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-sound/bluez-alsa-2.1.0/work/bluez-alsa-2.1.0/src -I..    -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -O2 -pipe -march=native -fno-common -c -o main.o /var/tmp/portage/media-sound/bluez-alsa-2.1.0/work/bluez-alsa-2.1.0/src/main.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-sound/bluez-alsa-2.1.0/work/bluez-alsa-2.1.0/src -I..    -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -O2 -pipe -march=native -fno-common -c -o upower.o /var/tmp/portage/media-sound/bluez-alsa-2.1.0/work/bluez-alsa-2.1.0/src/upower.c
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o bluealsa shared/ffb.o shared/log.o shared/rt.o a2dp.o at.o ba-adapter.o ba-device.o ba-transport.o bluealsa.o bluealsa-dbus.o bluealsa-iface.o bluez.o bluez-a2dp.o bluez-iface.o hci.o rfcomm.o sco.o utils.o main.o   upower.o -lfdk-aac -lbluetooth -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lsbc  -lpthread -lm 
libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -pipe -march=native -fno-common -Wl,-O1 -o bluealsa shared/ffb.o shared/log.o shared/rt.o a2dp.o at.o ba-adapter.o ba-device.o ba-transport.o bluealsa.o bluealsa-dbus.o bluealsa-iface.o bluez.o bluez-a2dp.o bluez-iface.o hci.o rfcomm.o sco.o utils.o main.o upower.o  -Wl,--as-needed -lfdk-aac -lbluetooth -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lsbc -lpthread -lm -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: bluealsa-iface.o:(.data.rel.ro.local+0x4c0): multiple definition of `bluealsa_iface_rfcomm'; bluealsa-dbus.o:(.rodata+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: bluealsa-iface.o:(.data.rel.ro.local+0x500): multiple definition of `bluealsa_iface_pcm'; bluealsa-dbus.o:(.rodata+0x40): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-libressl-20200125-150902

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

  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 (uninstalled)
  [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:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 27 Jan 2020 05:26:15 +0000

emerge -qpvO media-sound/bluez-alsa
[ebuild  N    ] media-sound/bluez-alsa-2.1.0  USE="aac upower -debug -hcitop -ldac -ofono -static-libs -test" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2020-01-27 17:31:10 UTC
Created attachment 605308 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-27 17:31:13 UTC
Created attachment 605310 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-27 17:31:16 UTC
Created attachment 605312 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-27 17:31:19 UTC
Created attachment 605314 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-27 17:31:21 UTC
Created attachment 605316 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-27 17:31:24 UTC
Created attachment 605318 [details]
media-sound:bluez-alsa-2.1.0:20200127-063010.log
Comment 7 Toralf Förster gentoo-dev 2020-01-27 17:31:27 UTC
Created attachment 605320 [details]
temp.tbz2
Comment 8 Arkadiusz Bokowy 2020-02-09 21:37:28 UTC
Created attachment 613132 [details, diff]
Fix linkage - patch made for v2.1.0

I think, this bug should be fixed by https://github.com/Arkq/bluez-alsa/commit/30a23dd7ce9b00c702fa48545f6b03038f9e17c6 (available in current bluez-alsa master).
Comment 9 Andrew Udvare 2020-05-20 10:45:18 UTC
Ran into this issue. The patch works for me.
Comment 10 Larry the Git Cow gentoo-dev 2020-05-20 11:41:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6752a6eacf490069b294be8fa97e59ef3b7d8577

commit 6752a6eacf490069b294be8fa97e59ef3b7d8577
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-05-20 11:40:30 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-05-20 11:41:41 +0000

    media-sound/bluez-alsa: Fixed build with gcc10
    
    Thanks-to: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com>
    Closes: https://bugs.gentoo.org/706680
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 media-sound/bluez-alsa/bluez-alsa-2.1.0.ebuild     |   4 +
 .../bluez-alsa/files/bluez-alsa-2.1.0-gcc10.patch  | 145 +++++++++++++++++++++
 2 files changed, 149 insertions(+)