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

Bug 706758

Summary: media-sound/toolame-02l-r4 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
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    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
media-sound:toolame-02l-r4:20200127-190445.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-27 20:23:39 UTC
encode_new.c:738:7: warning: variable ‘noisy_sbs’ set but not used [-Wunused-but-set-variable]
  738 |   int noisy_sbs;
      |       ^~~~~~~~~
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o toolame common.o encode.o ieeefloat.o toolame.o portableio.o psycho_n1.o psycho_0.o psycho_1.o psycho_2.o psycho_3.o psycho_4.o fft.o subband.o audio_read.o bitstream.o mem.o crc.o tables.o availbits.o ath.o encode_new.o -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: encode.o:(.bss+0x40): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: toolame.o:(.bss+0x60): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20200124-204141

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

  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 *



repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 27 Jan 2020 17:10:40 +0000

emerge -qpvO media-sound/toolame
[ebuild  N    ] media-sound/toolame-02l-r4
Comment 1 Toralf Förster gentoo-dev 2020-01-27 20:23:42 UTC
Created attachment 605770 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-27 20:23:44 UTC
Created attachment 605772 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-27 20:23:47 UTC
Created attachment 605774 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-27 20:23:50 UTC
Created attachment 605776 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-27 20:23:53 UTC
Created attachment 605778 [details]
media-sound:toolame-02l-r4:20200127-190445.log
Comment 6 Toralf Förster gentoo-dev 2020-01-27 20:23:55 UTC
Created attachment 605780 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-08-08 16:55:13 UTC
The bug has been closed via the following commit(s):

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

commit 297d4661482aca2bcba3c279da06a7361b11368f
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-08-08 16:53:30 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-08-08 16:53:30 +0000

    media-sound/toolame: Fix building under -fno-common
    
    Closes: https://bugs.gentoo.org/706758
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: David Seifert <soap@gentoo.org>

 ...-02l-gentoo.diff => toolame-02l-Makefile.patch} | 17 +++++++++--------
 .../toolame/files/toolame-02l-fno-common.patch     | 20 ++++++++++++++++++++
 media-sound/toolame/toolame-02l-r4.ebuild          | 22 +++++++++-------------
 3 files changed, 38 insertions(+), 21 deletions(-)