Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610566 - games-engines/odamex-0.7.0 : /.../m_vectors.cpp:546:16: error: call of overloaded ‘abs(const double&)’ is ambiguous
Summary: games-engines/odamex-0.7.0 : /.../m_vectors.cpp:546:16: error: call of overlo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Proxy Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-6
  Show dependency tree
 
Reported: 2017-02-22 14:00 UTC by Toralf Förster
Modified: 2017-07-23 13:15 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,6.07 KB, text/plain)
2017-02-22 14:00 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,285.84 KB, text/plain)
2017-02-22 14:00 UTC, Toralf Förster
Details
environment (environment,152.52 KB, text/plain)
2017-02-22 14:00 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.77 KB, application/x-bzip)
2017-02-22 14:00 UTC, Toralf Förster
Details
games-engines:odamex-0.7.0:20170222-135700.log (games-engines:odamex-0.7.0:20170222-135700.log,42.78 KB, text/plain)
2017-02-22 14:00 UTC, Toralf Förster
Details
0.7.0 ambiguous abs patch (odamex-0.7.0-fabs.patch,681 bytes, patch)
2017-02-22 19:11 UTC, Mike Wood
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-02-22 14:00:26 UTC
cd /var/tmp/portage/games-engines/odamex-0.7.0/work/odamex-0.7.0_build/client && /usr/bin/x86_64-pc-linux-gnu-g++  -DCLIENT_APP -DINSTALL_PREFIX=\"/usr\" -DUNIX -DUSE_PNG -I/var/tmp/portage/games-engines/odamex-0.7.0/work/odamex-0.7.0_build -I/var/tmp/portage/games-engines/odamex-0.7.0/work/src-7.0/client/../common -I/var/tmp/portage/games-engines/odamex-0.7.0/work/src-7.0/client/sdl -I/var/tmp/portage/games-engines/odamex-0.7.0/work/src-7.0/client/src -I/var/tmp/portage/games-engines/odamex-0.7.0/work/src-7.0/client/../libraries/textscreen -I/usr/include/SDL   -DNDEBUG -Werror=terminate -O2 -pipe -march=native -std=c++11   -o CMakeFiles/odamex.dir/__/common/m_vectors.cpp.o -c /var/tmp/portage/games-engines/odamex-0.7.0/work/src-7.0/common/m_vectors.cpp
/var/tmp/portage/games-engines/odamex-0.7.0/work/src-7.0/common/m_vectors.cpp: In function ‘void M_PerpendicularVec3(v3double_t*, const v3double_t*)’:
/var/tmp/portage/games-engines/odamex-0.7.0/work/src-7.0/common/m_vectors.cpp:546:16: error: call of overloaded ‘abs(const double&)’ is ambiguous
  if (abs(src->y) < minelem)
                ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/cstdlib:75:0,

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

  This is an unstable amd64 chroot image (named desktop-libressl-abi32+64_20170215-185650) at a hardened host acting as a tinderbox.

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)
  [4]   jython2.7 (fallback)

java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.8 [icedtea-7]
*)	IcedTea JDK 7.2.6.8 [icedtea-bin-7]
3)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-7 
  [2]   icedtea-bin-7  system-vm
  [3]   icedtea-bin-8
Comment 1 Toralf Förster gentoo-dev 2017-02-22 14:00:29 UTC
Created attachment 464690 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-02-22 14:00:33 UTC
Created attachment 464692 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-02-22 14:00:36 UTC
Created attachment 464694 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-02-22 14:00:39 UTC
Created attachment 464696 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-02-22 14:00:42 UTC
Created attachment 464698 [details]
games-engines:odamex-0.7.0:20170222-135700.log
Comment 6 Mike Wood 2017-02-22 19:09:46 UTC
This has already been fixed upstream. I have generated a patch against 0.7.0 that should resolve the issue.
Comment 7 Mike Wood 2017-02-22 19:11:48 UTC
Created attachment 464748 [details, diff]
0.7.0 ambiguous abs patch
Comment 8 Peter Levine 2017-07-23 05:54:45 UTC
PR: https://github.com/gentoo/gentoo/pull/5183
Comment 9 Michael Palimaka (kensington) gentoo-dev 2017-07-23 13:14:29 UTC
Thanks, merged Peter's PR.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a95b6d1aba510faebfb15b41ab516b6f768b222
Comment 10 Michael Palimaka (kensington) gentoo-dev 2017-07-23 13:15:47 UTC
Sorry that your patch here got overlooked Mike.