Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787740 - games-fps/blackshades-20070723-r1 - Source/Quaternions.cpp: error: reference to max is ambiguous
Summary: games-fps/blackshades-20070723-r1 - Source/Quaternions.cpp: error: reference ...
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:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-05-02 16:44 UTC by Toralf Förster
Modified: 2021-05-02 20:46 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.97 KB, text/plain)
2021-05-02 16:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,475.32 KB, text/plain)
2021-05-02 16:44 UTC, Toralf Förster
Details
environment (environment,65.99 KB, text/plain)
2021-05-02 16:44 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,49.30 KB, application/x-bzip)
2021-05-02 16:44 UTC, Toralf Förster
Details
games-fps:blackshades-20070723-r1:20210502-153918.log (games-fps:blackshades-20070723-r1:20210502-153918.log,75.18 KB, text/plain)
2021-05-02 16:44 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,21.95 KB, application/x-bzip)
2021-05-02 16:44 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-05-02 16:44:48 UTC
      |                                 ^~~
Source/Quaternions.cpp: In function ‘bool PointInTriangle(Vector*, Vector, float, float, float, float, float, float, float, float, float)’:
Source/Quaternions.cpp:355:9: error: reference to ‘max’ is ambiguous
  355 |         max = MAX(MAX(ABS(normalv[0]), ABS(normalv[1])), ABS(normalv[2]));
      |         ^~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927,

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-20210415-101632

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

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 *
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

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

emerge -qpvO games-fps/blackshades
[ebuild  N    ] games-fps/blackshades-20070723-r1
Comment 1 Toralf Förster gentoo-dev 2021-05-02 16:44:50 UTC
Created attachment 705381 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-02 16:44:51 UTC
Created attachment 705384 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-02 16:44:53 UTC
Created attachment 705387 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-02 16:44:54 UTC
Created attachment 705390 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-02 16:44:56 UTC
Created attachment 705393 [details]
games-fps:blackshades-20070723-r1:20210502-153918.log
Comment 6 Toralf Förster gentoo-dev 2021-05-02 16:44:57 UTC
Created attachment 705396 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2021-05-02 20:46:13 UTC
The bug has been closed via the following commit(s):

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

commit b5b6a3ee5681d326db6247e7e49df2066151ee75
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-05-02 20:46:00 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-05-02 20:46:11 +0000

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

 .../blackshades/blackshades-20070723-r1.ebuild     |  1 +
 .../files/blackshades-20070723-gcc-11.patch        | 55 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)