Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871087 - media-libs/id3lib-3.8.3-r8 - fatal error: too many errors emitted, stopping now [-ferror-limit=]
Summary: media-libs/id3lib-3.8.3-r8 - fatal error: too many errors emitted, stopping n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 730326 882795 893642 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-17 20:37 UTC by Toralf Förster
Modified: 2023-02-13 22:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.57 KB, text/plain)
2022-09-17 20:37 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,2.29 KB, application/x-bzip)
2022-09-17 20:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,152.38 KB, text/plain)
2022-09-17 20:37 UTC, Toralf Förster
Details
environment (environment,102.59 KB, text/plain)
2022-09-17 20:37 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.41 KB, application/x-bzip)
2022-09-17 20:37 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,11.75 KB, application/x-bzip)
2022-09-17 20:37 UTC, Toralf Förster
Details
media-libs:id3lib-3.8.3-r8:20220917-203620.log (media-libs:id3lib-3.8.3-r8:20220917-203620.log,53.07 KB, text/plain)
2022-09-17 20:37 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,35.14 KB, application/x-bzip)
2022-09-17 20:37 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-17 20:37:33 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include/g++-v12/istream:168:7: note: 
      previous definition is here
      operator>>(bool& __n)
      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
field_binary.cpp:195:21: error: return type of out-of-line definition of
      'ID3_FieldImpl::ParseBinary' differs from that in the declaration

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20220916-040004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3.90

  HEAD of ::gentoo
commit eea4346d3a62953117475d04aa1e943b96144507
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 19:46:48 2022 +0000

    2022-09-17 19:46:47 UTC

emerge -qpvO media-libs/id3lib
[ebuild  N    ] media-libs/id3lib-3.8.3-r8  USE="-doc -static-libs"
Comment 1 Toralf Förster gentoo-dev 2022-09-17 20:37:34 UTC
Created attachment 809746 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 20:37:35 UTC
Created attachment 809749 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-17 20:37:36 UTC
Created attachment 809752 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-17 20:37:38 UTC
Created attachment 809755 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-17 20:37:39 UTC
Created attachment 809758 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-17 20:37:40 UTC
Created attachment 809761 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-17 20:37:41 UTC
Created attachment 809764 [details]
media-libs:id3lib-3.8.3-r8:20220917-203620.log
Comment 8 Toralf Förster gentoo-dev 2022-09-17 20:37:42 UTC
Created attachment 809767 [details]
temp.tar.bz2
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-30 19:36:43 UTC
Using reserved names?
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-08 19:52:41 UTC
*** Bug 893642 has been marked as a duplicate of this bug. ***
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-08 19:52:55 UTC
*** Bug 882795 has been marked as a duplicate of this bug. ***
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-08 19:53:24 UTC
*** Bug 730326 has been marked as a duplicate of this bug. ***
Comment 13 Jannik Glückert 2023-02-13 22:21:59 UTC
Turns out it's broken autoconf scripts. Surprise!

There's a CXX_HAS_NO_BOOL, the corresponding check is
`main() { bool b1=true; bool b2=false; }`
which fails because of the missing type specifier for main.
The build system then does a `#define bool int` which causes these errors.

While we're on the topic of quality autoconf checks, there's also a CXX_HAS_BUGGY_FOR_LOOPS, checked via
`
#include <iostream.h>
int
main (void)
{

   for (int i=0;i<10;i++) { }
   for (int i=0;i<10;i++) { }

  ;
  return 0;
}
`
Which fails because iostream.h would have to be iostream. This one has been broken on gcc forever aswell but is "harmless" because it just leads to `#define for if(1) for`
Comment 14 Larry the Git Cow gentoo-dev 2023-02-13 22:45:06 UTC
The bug has been closed via the following commit(s):

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

commit eccbaa58e0c21cc6df13f6028244158f144145a0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-13 22:43:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-13 22:44:50 +0000

    media-libs/id3lib: fix build with Clang, EAPI 8
    
    Thanks to Jannik2099 for spotting the problem in configure.
    
    Closes: https://bugs.gentoo.org/871087
    Signed-off-by: Sam James <sam@gentoo.org>

 .../id3lib/files/id3lib-3.8.3-configure-clang.patch | 21 +++++++++++++++++++++
 ...3lib-3.8.3-r9.ebuild => id3lib-3.8.3-r10.ebuild} | 17 +++++++++--------
 2 files changed, 30 insertions(+), 8 deletions(-)