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

Bug 707808

Summary: sys-block/libzbc-5.5.1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764, 730480    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-block:libzbc-5.5.1:20200201-204959.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-01 21:52:14 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -O2 -Wall -Wextra -Wno-unused-parameter -I./include -I./include -O2 -pipe -march=native -fno-common -pthread -c lib/zbc_fake.c  -fPIC -DPIC -o lib/.libs/libzbc_la-zbc_fake.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -O2 -Wall -Wextra -Wno-unused-parameter -I./include -I./include -O2 -pipe -march=native -fno-common -pthread -c lib/zbc_fake.c -o lib/libzbc_la-zbc_fake.o >/dev/null 2>&1
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -pthread -Wl,--version-script,./exports -release '5.5.1' -Wl,-O1 -Wl,--as-needed -o libzbc.la -rpath /usr/lib64 lib/libzbc_la-zbc.lo lib/libzbc_la-zbc_block.lo lib/libzbc_la-zbc_sg.lo lib/libzbc_la-zbc_scsi.lo lib/libzbc_la-zbc_ata.lo lib/libzbc_la-zbc_fake.lo   
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  lib/.libs/libzbc_la-zbc.o lib/.libs/libzbc_la-zbc_block.o lib/.libs/libzbc_la-zbc_sg.o lib/.libs/libzbc_la-zbc_scsi.o lib/.libs/libzbc_la-zbc_ata.o lib/.libs/libzbc_la-zbc_fake.o   -Wl,--as-needed  -O2 -march=native -pthread -Wl,--version-script -Wl,./exports -Wl,-O1   -pthread -Wl,-soname -Wl,libzbc-5.5.1.so -o .libs/libzbc-5.5.1.so
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: lib/.libs/libzbc_la-zbc_block.o:(.bss+0x0): multiple definition of `zbc_log_level'; lib/.libs/libzbc_la-zbc.o:(.data+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: lib/.libs/libzbc_la-zbc_block.o:(.bss+0x20): multiple definition of `zbc_fake_drv'; lib/.libs/libzbc_la-zbc.o:(.bss+0x0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-libressl-20200126-092715

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

  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:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 01 Feb 2020 18:27:56 +0000

emerge -qpvO sys-block/libzbc
[ebuild  N    ] sys-block/libzbc-5.5.1  USE="gtk"
Comment 1 Toralf Förster gentoo-dev 2020-02-01 21:52:17 UTC
Created attachment 610642 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-01 21:52:20 UTC
Created attachment 610644 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-01 21:52:23 UTC
Created attachment 610646 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-01 21:52:25 UTC
Created attachment 610648 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-01 21:52:28 UTC
Created attachment 610650 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-01 21:52:31 UTC
Created attachment 610652 [details]
sys-block:libzbc-5.5.1:20200201-204959.log
Comment 7 Toralf Förster gentoo-dev 2020-02-01 21:52:34 UTC
Created attachment 610654 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-21 11:51:55 UTC
*** Bug 721134 has been marked as a duplicate of this bug. ***
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2020-07-03 20:40:55 UTC
Fixed upstream as https://github.com/hgst/libzbc/commit/1f3a63432bb5a4ca47a5839181c8f13512848b6c

Consider bumping to newer release available upstream.
Comment 10 Larry the Git Cow gentoo-dev 2020-07-09 22:12:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=321985403ccdeb8273aae67a86db2c8444baccef

commit 321985403ccdeb8273aae67a86db2c8444baccef
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-07-09 22:12:43 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-07-09 22:12:43 +0000

    sys-block/libzbc: tweak for gcc-10
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/707808
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-block/libzbc/files/libzbc-5.5.1-gcc-10.patch | 64 ++++++++++++++++++++++++
 sys-block/libzbc/libzbc-5.5.1.ebuild             |  1 +
 2 files changed, 65 insertions(+)