Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 786528 - games-util/grfcodec-6.0.6 - src/data.cpp: error: reference to data is ambiguous (maybe gcc-11 related)
Summary: games-util/grfcodec-6.0.6 - src/data.cpp: error: reference to data is ambiguo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL: https://github.com/OpenTTD/grfcodec/c...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-04-28 19:01 UTC by Toralf Förster
Modified: 2021-05-04 07:19 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.92 KB, text/plain)
2021-04-28 19:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,301.64 KB, text/plain)
2021-04-28 19:01 UTC, Toralf Förster
Details
environment (environment,50.21 KB, text/plain)
2021-04-28 19:01 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,30.55 KB, application/x-bzip)
2021-04-28 19:01 UTC, Toralf Förster
Details
games-util:grfcodec-6.0.6:20210428-180633.log (games-util:grfcodec-6.0.6:20210428-180633.log,56.40 KB, text/plain)
2021-04-28 19:01 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,17.06 KB, application/x-bzip)
2021-04-28 19:01 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 2021-04-28 19:01:25 UTC
x86_64-pc-linux-gnu-g++ -c -o objs/data.o -idirafter/usr/include  -DGCC32 -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-format-nonliteral -DWITH_FMEMOPEN -DWITH_PNG -I/usr/include/libpng16 -pipe -march=native -fno-diagnostics-color  -O2 -MMD -MF objs/data.o.d -MT objs/data.o src/data.cpp
src/data.cpp: In function ‘FILE* _myfopen(files, bool)’:
src/data.cpp:1129:28: error: reference to ‘data’ is ambiguous
 1129 |         FILE*pFile=tryopen(data[file].name,"rb",true);
      |                            ^~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/string:54,
                 from src/data.cpp:29:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-20210420-165442

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.3.0
 [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
  [2]   rust-1.51.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed Apr 28 17:50:15 UTC 2021

emerge -qpvO games-util/grfcodec
[ebuild  N    ] games-util/grfcodec-6.0.6
Comment 1 Toralf Förster gentoo-dev 2021-04-28 19:01:26 UTC
Created attachment 703425 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-04-28 19:01:28 UTC
Created attachment 703428 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-04-28 19:01:29 UTC
Created attachment 703431 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-04-28 19:01:30 UTC
Created attachment 703434 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-04-28 19:01:31 UTC
Created attachment 703437 [details]
games-util:grfcodec-6.0.6:20210428-180633.log
Comment 6 Toralf Förster gentoo-dev 2021-04-28 19:01:33 UTC
Created attachment 703440 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-28 20:37:38 UTC
(In reply to Sergei Trofimovich from comment #7)
> https://github.com/OpenTTD/grfcodec/commit/
> fc2ab9784276200a11ca62d11604a13a726e64a4

FWIW you’re very welcome to commit fixes to games@ packages for stuff like this.

Thanks for researching! I can apply if you can’t in a little bit.
Comment 9 Larry the Git Cow gentoo-dev 2021-05-04 07:19:40 UTC
The bug has been closed via the following commit(s):

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

commit 172484738977669f94baf90e9f09f2917cccfb3b
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-05-04 07:19:25 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-05-04 07:19:37 +0000

    games-util/grfcodec: bump up to latest 20210310 snapshot
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/786528
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 games-util/grfcodec/Manifest                       |  1 +
 .../grfcodec/grfcodec-6.0.6_p20210310.ebuild       | 32 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)