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

Bug 707614

Summary: media-sound/scmpc-0.4.1 : 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   
See Also: https://github.com/cmende/scmpc/pull/12
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
media-sound:scmpc-0.4.1:20200131-032502.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-31 17:38:06 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -D_XOPEN_SOURCE=500 -I.    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -O2 -pipe -march=native -fno-common -c -o scmpc-preferences.o `test -f 'src/preferences.c' || echo './'`src/preferences.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -D_XOPEN_SOURCE=500 -I.    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -O2 -pipe -march=native -fno-common -c -o scmpc-queue.o `test -f 'src/queue.c' || echo './'`src/queue.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -D_XOPEN_SOURCE=500 -I.    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -O2 -pipe -march=native -fno-common -c -o scmpc-scmpc.o `test -f 'src/scmpc.c' || echo './'`src/scmpc.c
x86_64-pc-linux-gnu-gcc -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o scmpc scmpc-audioscrobbler.o scmpc-mpd.o scmpc-misc.o scmpc-preferences.o scmpc-queue.o scmpc-scmpc.o -lglib-2.0  -lconfuse  -lcurl  -lmpdclient  
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: scmpc-mpd.o:(.bss+0xc0): multiple definition of `mpd'; scmpc-audioscrobbler.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: scmpc-mpd.o:(.bss+0x60): multiple definition of `prefs'; scmpc-audioscrobbler.o:(.bss+0x80): first defined here

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

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

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

  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)
  [5]   pypy3 (fallback)

Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK JRE 8.242_p08 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Fri, 31 Jan 2020 01:26:20 +0000

emerge -qpvO media-sound/scmpc
[ebuild  N    ] media-sound/scmpc-0.4.1
Comment 1 Toralf Förster gentoo-dev 2020-01-31 17:38:10 UTC
Created attachment 609676 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-31 17:38:12 UTC
Created attachment 609678 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-31 17:38:15 UTC
Created attachment 609680 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-31 17:38:18 UTC
Created attachment 609682 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-31 17:38:21 UTC
Created attachment 609684 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-31 17:38:24 UTC
Created attachment 609686 [details]
media-sound:scmpc-0.4.1:20200131-032502.log
Comment 7 Toralf Förster gentoo-dev 2020-01-31 17:38:27 UTC
Created attachment 609688 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-08-19 10:10:48 UTC
The bug has been closed via the following commit(s):

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

commit c9f42ac8feb314f3f2f6ec7cfd8c535ff33fe735
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-08-19 09:55:35 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-08-19 10:10:46 +0000

    media-sound/scmpc: Fix building with CFLAGS=-fno-common
    
    Package-Manager: Portage-3.0.3, Repoman-3.0.0
    Closes: https://bugs.gentoo.org/707614
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 .../scmpc/files/scmpc-0.4.1-fno-common.patch       | 103 +++++++++++++++++++++
 media-sound/scmpc/scmpc-0.4.1.ebuild               |   5 +-
 2 files changed, 107 insertions(+), 1 deletion(-)