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

Bug 787845

Summary: games-roguelike/scourge-0.21.1-r1 - glshape.cpp: error: reference to data 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-roguelike:scourge-0.21.1-r1:20210503-024633.log
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-05-03 07:20:38 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I.  -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2  -DDATA_DIR=\"/usr/share/scourge\"  -pipe -march=native -fno-diagnostics-color  -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o glshape.o glshape.cpp
glshape.cpp: In static member function ‘static void GLShape::createDarkTexture(WallTheme*)’:
glshape.cpp:517:25: error: reference to ‘data’ is ambiguous
  517 |                         data[i * LIGHTMAP_SIZE * 3 + j * 3 + 0] =
      |                         ^~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/vector:69,
                 from ../common/constants.h:84,

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-20210414-031624

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.1
 [3] 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
  [2]   rust-1.51.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.18.0 [icedtea-8]
2)	IcedTea JDK 3.16.0 [icedtea-bin-8]
3)	JamVM JDK 2.0.0 [jamvm]
4)	OpenJDK 8.292_p10 [openjdk-8]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8 
  [3]   jamvm 
  [4]   openjdk-8 
  [5]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.3
  [2]   php7.4 *
  [3]   php8.0

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon May  3 00:50:21 UTC 2021

emerge -qpvO games-roguelike/scourge
[ebuild  N    ] games-roguelike/scourge-0.21.1-r1
Comment 1 Toralf Förster gentoo-dev 2021-05-03 07:20:39 UTC
Created attachment 705546 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-03 07:20:41 UTC
Created attachment 705549 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-03 07:20:43 UTC
Created attachment 705552 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-03 07:20:44 UTC
Created attachment 705555 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-03 07:20:46 UTC
Created attachment 705558 [details]
games-roguelike:scourge-0.21.1-r1:20210503-024633.log
Comment 6 Toralf Förster gentoo-dev 2021-05-03 07:20:47 UTC
Created attachment 705561 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-05-03 07:20:48 UTC
Created attachment 705564 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2021-05-03 09:06:30 UTC
The bug has been closed via the following commit(s):

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

commit 9dd2d8a9aefa61716da5cf16780d0a67c70449fa
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-05-03 09:00:41 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-05-03 09:06:27 +0000

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

 .../scourge/files/scourge-0.21.1-gcc-11.patch      | 62 ++++++++++++++++++++++
 games-roguelike/scourge/scourge-0.21.1-r1.ebuild   |  1 +
 2 files changed, 63 insertions(+)