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

Bug 707234

Summary: app-arch/dump-0.4.46-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: bob.deblier, jstein, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sourceforge.net/p/dump/bugs/171/
See Also: https://bugs.gentoo.org/show_bug.cgi?id=764164
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764, 762907    
Attachments: emerge-info.txt
app-arch:dump-0.4.46-r1:20200129-115310.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-29 18:09:26 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../dump -I../compat/include -I../common -D_USE_BSD_SIGNAL -D_PATH_DUMPDATES=\"/etc/dumpdates\" -D_DUMP_VERSION=\"0.4b46\" -D_PATH_RMT=\"/usr/sbin/rmt\"  -O2 -pipe -march=native -fno-common -c -o traverse.o traverse.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../dump -I../compat/include -I../common -D_USE_BSD_SIGNAL -D_PATH_DUMPDATES=\"/etc/dumpdates\" -D_DUMP_VERSION=\"0.4b46\" -D_PATH_RMT=\"/usr/sbin/rmt\"  -O2 -pipe -march=native -fno-common -c -o unctime.o unctime.c
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o dump itime.o main.o optr.o tape.o traverse.o unctime.o ../common/libcommon.la ../compat/lib/libcompat.la -lext2fs  -lcom_err  
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -o dump itime.o main.o optr.o tape.o traverse.o unctime.o  ../common/.libs/libcommon.a -lz -lbz2 -lssl -lcrypto ../compat/lib/.libs/libcompat.a -lblkid -lext2fs -lcom_err
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: main.o:(.bss+0x13c0): multiple definition of `u_spcl'; itime.o:(.bss+0x20): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: main.o:(.bss+0x38): multiple definition of `ddatev'; itime.o:(.bss+0x18): first defined here

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

  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 11:06:48 +0000

emerge -qpvO app-arch/dump
[ebuild  N    ] app-arch/dump-0.4.46-r1  USE="bzip2 libressl readline ssl zlib -debug -ermt -lzo (-selinux) -sqlite -static -test -uuid"
Comment 1 Toralf Förster gentoo-dev 2020-01-29 18:09:29 UTC
Created attachment 608080 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 18:09:32 UTC
Created attachment 608082 [details]
app-arch:dump-0.4.46-r1:20200129-115310.log
Comment 3 Toralf Förster gentoo-dev 2020-01-29 18:09:35 UTC
Created attachment 608084 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-01-29 18:09:38 UTC
Created attachment 608086 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-01-29 18:09:41 UTC
Created attachment 608088 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-29 18:09:44 UTC
Created attachment 608090 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-29 18:09:47 UTC
Created attachment 608092 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-17 12:56:41 UTC
*** Bug 721296 has been marked as a duplicate of this bug. ***
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-31 05:42:48 UTC
Debian just added -fcommon to flags.
Comment 11 Larry the Git Cow gentoo-dev 2021-01-06 19:21:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e061364b8c461419cbf03aaa7a98b691cbe580b

commit 8e061364b8c461419cbf03aaa7a98b691cbe580b
Author:     Andreas K. Huettel <dilfridge@gentoo.org>
AuthorDate: 2021-01-06 19:18:47 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: 2021-01-06 19:18:47 +0000

    app-arch/dump: Apply gcc-10 workaround
    
    Quoting upstream:
    > Mike Frysinger - 5 days ago
    > the codebase is a mess and not worth my time to untangle, so i just
    > added -fcommon to the configure script's CFLAGS
    
    Closes: https://bugs.gentoo.org/707234
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>

 app-arch/dump/dump-0.4.46-r1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)