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

Bug 787710

Summary: games-arcade/sdb-1.0.2-r1 - md2.h: error: reference to byte is ambiguous (maybe gcc-11 related)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
games-arcade:sdb-1.0.2-r1:20210502-144337.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-05-02 14:46:07 UTC
                 from bitmapfont.cpp:26:
md2.h: At global scope:
md2.h:71:3: error: reference to ‘byte’ is ambiguous
   71 |   byte color[3];
      |   ^~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:42,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/math.h:36,

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-20210421-084009

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.3.1
 [2] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.18.0 [icedtea-8]
2)	JamVM JDK 2.0.0 [jamvm]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   jamvm 
  [3]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun May  2 13:50:15 UTC 2021

emerge -qpvO games-arcade/sdb
[ebuild  N    ] games-arcade/sdb-1.0.2-r1
Comment 1 Toralf Förster gentoo-dev 2021-05-02 14:46:08 UTC
Created attachment 705342 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-02 14:46:10 UTC
Created attachment 705345 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-02 14:46:11 UTC
Created attachment 705348 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-02 14:46:12 UTC
Created attachment 705351 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-02 14:46:13 UTC
Created attachment 705354 [details]
games-arcade:sdb-1.0.2-r1:20210502-144337.log
Comment 6 Toralf Förster gentoo-dev 2021-05-02 14:46:15 UTC
Created attachment 705357 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2021-05-03 09:38:52 UTC
The bug has been closed via the following commit(s):

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

commit 55a73a4b84fda8347b3e5afdc83af2b164cef7aa
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-05-03 09:38:43 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-05-03 09:38:49 +0000

    games-arcade/sdb: tweak for gcc-11
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/787710
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 games-arcade/sdb/files/sdb-1.0.2-gcc-11.patch | 45 +++++++++++++++++++++++++++
 games-arcade/sdb/sdb-1.0.2-r1.ebuild          | 21 ++++++++-----
 2 files changed, 58 insertions(+), 8 deletions(-)