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

Bug 710796

Summary: media-video/pipewire-0.2.7 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: asturm, gentoo, plevine457
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-video:pipewire-0.2.7:20200224-222702.log
temp.tbz2
pipewire-0.2.7-fno-common.patch

Description Toralf Förster gentoo-dev 2020-02-25 18:27:16 UTC
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[17/157] x86_64-pc-linux-gnu-gcc  -o spa/plugins/bluez5/libspa-bluez5.so 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/plugin.c.o' 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/a2dp-sink.c.o' 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/bluez5-monitor.c.o' -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libspa-bluez5.so -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -Wl,-O1 -Wl,--as-needed /usr/lib64/libdbus-1.so /usr/lib64/libsbc.so -Wl,--end-group
FAILED: spa/plugins/bluez5/libspa-bluez5.so 
x86_64-pc-linux-gnu-gcc  -o spa/plugins/bluez5/libspa-bluez5.so 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/plugin.c.o' 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/a2dp-sink.c.o' 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/bluez5-monitor.c.o' -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libspa-bluez5.so -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -Wl,-O1 -Wl,--as-needed /usr/lib64/libdbus-1.so /usr/lib64/libsbc.so -Wl,--end-group
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: spa/plugins/bluez5/5861950@@spa-bluez5@sha/bluez5-monitor.c.o:(.rodata+0x57a): multiple definition of `bluez_a2dp_sbc'; spa/plugins/bluez5/5861950@@spa-bluez5@sha/a2dp-sink.c.o:(.rodata+0x1a12): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: spa/plugins/bluez5/5861950@@spa-bluez5@sha/bluez5-monitor.c.o:(.bss+0x0): multiple definition of `spa_a2dp_sink_factory'; spa/plugins/bluez5/5861950@@spa-bluez5@sha/a2dp-sink.c.o:(.data.rel.local+0x0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-libressl_abi32+64-20200220-171851

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

  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.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.0 *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 3.15.0 [icedtea-8]
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 24 Feb 2020 21:37:10 +0000

emerge -qpvO media-video/pipewire
[ebuild  N    ] media-video/pipewire-0.2.7  USE="X bluetooth sdl -doc -ffmpeg -gstreamer -libav -systemd -vaapi"
Comment 1 Toralf Förster gentoo-dev 2020-02-25 18:27:19 UTC
Created attachment 615692 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-25 18:27:22 UTC
Created attachment 615694 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-25 18:27:25 UTC
Created attachment 615696 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-25 18:27:27 UTC
Created attachment 615698 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-25 18:27:30 UTC
Created attachment 615700 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-25 18:27:33 UTC
Created attachment 615702 [details]
media-video:pipewire-0.2.7:20200224-222702.log
Comment 7 Toralf Förster gentoo-dev 2020-02-25 18:27:37 UTC
Created attachment 615704 [details]
temp.tbz2
Comment 9 Larry the Git Cow gentoo-dev 2020-06-28 15:36:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=870706df4a5750b79dcae976373d8fe5f6ac749d

commit 870706df4a5750b79dcae976373d8fe5f6ac749d
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-06-28 14:54:28 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-06-28 15:34:03 +0000

    media-video/pipewire: Fix build with -fno-common
    
    Thanks-to: Peter Levine <plevine457@gmail.com>
    Closes: https://bugs.gentoo.org/710796
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../pipewire/files/pipewire-0.2.7-fno-common.patch | 47 ++++++++++++++++++++++
 media-video/pipewire/pipewire-0.2.7.ebuild         |  2 +
 2 files changed, 49 insertions(+)