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

Bug 706780

Summary: app-crypt/md6sum-1.0-r2 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: jer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
app-crypt:md6sum-1.0-r2:20200127-210604.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-27 21:09:05 UTC
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -c md6_mode.c -o md6_mode.o 
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -c md6_nist.c -o md6_nist.o 
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -c md6sum.c -o md6sum.o
x86_64-pc-linux-gnu-gcc md6_compress.o md6_mode.o md6_nist.o md6sum.o -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -o md6sum
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: md6_mode.o:(.bss+0x8): multiple definition of `compression_hook'; md6_compress.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: md6_nist.o:(.bss+0x0): multiple definition of `compression_hook'; md6_compress.o:(.bss+0x0): first defined here

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

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

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *


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) *




repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 27 Jan 2020 19:49:36 +0000

emerge -qpvO app-crypt/md6sum
[ebuild  N    ] app-crypt/md6sum-1.0-r2
Comment 1 Toralf Förster gentoo-dev 2020-01-27 21:09:08 UTC
Created attachment 605856 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-27 21:09:11 UTC
Created attachment 605858 [details]
app-crypt:md6sum-1.0-r2:20200127-210604.log
Comment 3 Toralf Förster gentoo-dev 2020-01-27 21:09:14 UTC
Created attachment 605860 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-01-27 21:09:17 UTC
Created attachment 605862 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-01-27 21:09:19 UTC
Created attachment 605864 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-27 21:09:22 UTC
Created attachment 605866 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-27 21:09:25 UTC
Created attachment 605868 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-04-22 08:29:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=931194767f5aeea434a4e2bb14f365e00307e6ae

commit 931194767f5aeea434a4e2bb14f365e00307e6ae
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-04-22 08:24:27 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-04-22 08:29:44 +0000

    app-crypt/md6sum: Set CFLAGS+=-fcommon
    
    This code is particularly evil in that it expressly omits a declaration
    of the compression_hook function and apparently fully intended to rely
    on the -fcommon mechanism to toggle debugging functions. See md6.h for
    the rationale.
    
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Closes: https://bugs.gentoo.org/706780
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 app-crypt/md6sum/md6sum-1.0-r2.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)