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

Bug 706864

Summary: dev-util/lttng-tools-2.11.0 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Yixun Lan <dlan>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH, PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/lttng/lttng-ust/commit/21a934df4c683e73e0a66a9afca33573fcf9d789
See Also: https://github.com/gentoo/gentoo/pull/18461
https://bugs.gentoo.org/show_bug.cgi?id=763564
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
dev-util:lttng-tools-2.11.0:20200128-042715.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-28 18:26:12 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H   -I../../../include -I../../../include -I../../../src -include config.h  -DINSTALL_BIN_PATH=\""/usr/bin"\"   -Wall -fno-strict-aliasing -pthread  -O2 -pipe -march=native -fno-common -c -o lttng-utils.o `test -f 'utils.c' || echo './'`utils.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H   -I../../../include -I../../../include -I../../../src -include config.h  -DINSTALL_BIN_PATH=\""/usr/bin"\"   -Wall -fno-strict-aliasing -pthread  -O2 -pipe -march=native -fno-common -c -o lttng-lttng.o `test -f 'lttng.c' || echo './'`lttng.c
/bin/sh ../../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -fno-strict-aliasing -pthread  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o lttng lttng-conf.o commands/lttng-start.o commands/lttng-list.o commands/lttng-create.o commands/lttng-destroy.o commands/lttng-stop.o commands/lttng-enable_events.o commands/lttng-disable_events.o commands/lttng-enable_channels.o commands/lttng-disable_channels.o commands/lttng-add_context.o commands/lttng-set_session.o commands/lttng-version.o commands/lttng-view.o commands/lttng-snapshot.o commands/lttng-save.o commands/lttng-load.o commands/lttng-track-untrack.o commands/lttng-status.o commands/lttng-metadata.o commands/lttng-regenerate.o commands/lttng-help.o commands/lttng-rotate.o commands/lttng-enable_rotation.o commands/lttng-disable_rotation.o lttng-utils.o lttng-lttng.o ../../../src/lib/lttng-ctl/liblttng-ctl.la ../../../src/common/libcommon.la ../../../src/common/config/libconfig.la ../../../src/common/string-utils/libstring-utils.la -lpopt  -lurcu-cds -lrt 
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -fno-strict-aliasing -pthread -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -o .libs/lttng lttng-conf.o commands/lttng-start.o commands/lttng-list.o commands/lttng-create.o commands/lttng-destroy.o commands/lttng-stop.o commands/lttng-enable_events.o commands/lttng-disable_events.o commands/lttng-enable_channels.o commands/lttng-disable_channels.o commands/lttng-add_context.o commands/lttng-set_session.o commands/lttng-version.o commands/lttng-view.o commands/lttng-snapshot.o commands/lttng-save.o commands/lttng-load.o commands/lttng-track-untrack.o commands/lttng-status.o commands/lttng-metadata.o commands/lttng-regenerate.o commands/lttng-help.o commands/lttng-rotate.o commands/lttng-enable_rotation.o commands/lttng-disable_rotation.o lttng-utils.o lttng-lttng.o  ../../../src/lib/lttng-ctl/.libs/liblttng-ctl.so -L=/usr/lib64 ../../../src/common/.libs/libcommon.a //usr/lib64/liburcu.so -luuid ../../../src/common/config/.libs/libconfig.a -lxml2 ../../../src/common/string-utils/.libs/libstring-utils.a -lpopt //usr/lib64/liburcu-cds.so //usr/lib64/liburcu-common.so -lrt -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: commands/lttng-list.o:(.rodata+0x128): multiple definition of `mi_lttng_rotation_location_relay_protocol_str_tcp'; commands/lttng-start.o:(.rodata+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: commands/lttng-list.o:(.rodata+0x130): multiple definition of `mi_lttng_rotation_state_str_error'; commands/lttng-start.o:(.rodata+0x18): first defined here

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

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

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

  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 (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 <==
Tue, 28 Jan 2020 03:26:40 +0000

emerge -qpvO dev-util/lttng-tools
[ebuild  N    ] dev-util/lttng-tools-2.11.0  USE="ust"
Comment 1 Toralf Förster gentoo-dev 2020-01-28 18:26:15 UTC
Created attachment 606204 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-28 18:26:18 UTC
Created attachment 606206 [details]
dev-util:lttng-tools-2.11.0:20200128-042715.log
Comment 3 Toralf Förster gentoo-dev 2020-01-28 18:26:21 UTC
Created attachment 606208 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-01-28 18:26:23 UTC
Created attachment 606210 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-01-28 18:26:26 UTC
Created attachment 606212 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-28 18:26:29 UTC
Created attachment 606214 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-28 18:26:32 UTC
Created attachment 606216 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-12-29 13:38:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1af99288044f0d9e79befb4f5e6d1bde0db7df61

commit 1af99288044f0d9e79befb4f5e6d1bde0db7df61
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-12-29 13:37:48 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-12-29 13:37:48 +0000

    dev-util/lttng-tools: bump to 2.12.0
    
    Closes: https://bugs.gentoo.org/706864
    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>

 dev-util/lttng-tools/Manifest                  |  1 +
 dev-util/lttng-tools/lttng-tools-2.12.0.ebuild | 36 ++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)