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

Bug 707230

Summary: net-wireless/bluez-tools-0_p20161212 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: laurantino <olivier.laurantin>
Status: RESOLVED FIXED    
Severity: normal CC: cinnamon+disabled, proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/14510
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:bluez-tools-0_p20161212:20200129-102046.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-29 18:08:12 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -pthread    -O2 -pipe -march=native -fno-common -c -o bt-adapter.o bt-adapter.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o bt-adapter lib/agent-helper.o lib/dbus-common.o lib/helpers.o lib/manager.o lib/obex_agent.o lib/properties.o lib/sdp.o lib/bluez/adapter.o lib/bluez/agent_manager.o lib/bluez/alert_agent.o lib/bluez/alert.o lib/bluez/cycling_speed.o lib/bluez/cycling_speed_manager.o lib/bluez/device.o lib/bluez/health_channel.o lib/bluez/health_device.o lib/bluez/health_manager.o lib/bluez/heart_rate.o lib/bluez/heart_rate_manager.o lib/bluez/media.o lib/bluez/media_control.o lib/bluez/media_player.o lib/bluez/network.o lib/bluez/network_server.o lib/bluez/obex/obex_agent_manager.o lib/bluez/obex/obex_client.o lib/bluez/obex/obex_file_transfer.o lib/bluez/obex/obex_message_access.o lib/bluez/obex/obex_message.o lib/bluez/obex/obex_object_push.o lib/bluez/obex/obex_phonebook_access.o lib/bluez/obex/obex_session.o lib/bluez/obex/obex_synchronization.o lib/bluez/obex/obex_transfer.o lib/bluez/profile_manager.o lib/bluez/proximity_monitor.o lib/bluez/proximity_reporter.o lib/bluez/sim_access.o lib/bluez/thermometer.o lib/bluez/thermometer_manager.o bt-adapter.o -lglib-2.0  -lgio-2.0 -lgobject-2.0 -lglib-2.0  
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -pthread    -O2 -pipe -march=native -fno-common -c -o bt-agent.o bt-agent.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o bt-agent lib/agent-helper.o lib/dbus-common.o lib/helpers.o lib/manager.o lib/obex_agent.o lib/properties.o lib/sdp.o lib/bluez/adapter.o lib/bluez/agent_manager.o lib/bluez/alert_agent.o lib/bluez/alert.o lib/bluez/cycling_speed.o lib/bluez/cycling_speed_manager.o lib/bluez/device.o lib/bluez/health_channel.o lib/bluez/health_device.o lib/bluez/health_manager.o lib/bluez/heart_rate.o lib/bluez/heart_rate_manager.o lib/bluez/media.o lib/bluez/media_control.o lib/bluez/media_player.o lib/bluez/network.o lib/bluez/network_server.o lib/bluez/obex/obex_agent_manager.o lib/bluez/obex/obex_client.o lib/bluez/obex/obex_file_transfer.o lib/bluez/obex/obex_message_access.o lib/bluez/obex/obex_message.o lib/bluez/obex/obex_object_push.o lib/bluez/obex/obex_phonebook_access.o lib/bluez/obex/obex_session.o lib/bluez/obex/obex_synchronization.o lib/bluez/obex/obex_transfer.o lib/bluez/profile_manager.o lib/bluez/proximity_monitor.o lib/bluez/proximity_reporter.o lib/bluez/sim_access.o lib/bluez/thermometer.o lib/bluez/thermometer_manager.o bt-agent.o -lglib-2.0  -lgio-2.0 -lgobject-2.0 -lglib-2.0  
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: bt-agent.o:(.bss+0x0): multiple definition of `agent_need_unregister'; lib/agent-helper.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-wireless/bluez-tools
[ebuild  N    ] net-wireless/bluez-tools-0_p20161212
Comment 1 Toralf Förster gentoo-dev 2020-01-29 18:08:15 UTC
Created attachment 608052 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 18:08:18 UTC
Created attachment 608054 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-29 18:08:22 UTC
Created attachment 608056 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-29 18:08:25 UTC
Created attachment 608058 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-29 18:08:28 UTC
Created attachment 608060 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-29 18:08:31 UTC
Created attachment 608062 [details]
net-wireless:bluez-tools-0_p20161212:20200129-102046.log
Comment 7 Toralf Förster gentoo-dev 2020-01-29 18:08:34 UTC
Created attachment 608064 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-04-10 15:40:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cd5da72e8078d231fe6c70b8c500ae1d24019c1

commit 2cd5da72e8078d231fe6c70b8c500ae1d24019c1
Author:     Olivier Laurantin <olivier.laurantin@laposte.net>
AuthorDate: 2020-01-31 07:01:05 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-04-10 15:40:28 +0000

    net-wireless/bluez-tools: Fix compilation with gcc-10
    
    Closes: https://bugs.gentoo.org/707230
    Signed-off-by: Olivier Laurantin <olivier.laurantin@laposte.net>
    Package-Manager: Portage-2.3.85, Repoman-2.3.20
    Closes: https://github.com/gentoo/gentoo/pull/14510
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../bluez-tools/bluez-tools-0_p20161212.ebuild     |  8 +++---
 .../files/bluez-tools-0_p20161212-gcc-10.patch     | 29 ++++++++++++++++++++++
 2 files changed, 34 insertions(+), 3 deletions(-)