Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620270 - games-engines/openxcom-1.0.0-r1 : /.../Globe.cpp:1393:29: error: call of overloaded ‘abs(double)’ is ambiguous
Summary: games-engines/openxcom-1.0.0-r1 : /.../Globe.cpp:1393:29: error: call of over...
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:
 
Reported: 2017-05-31 17:24 UTC by Toralf Förster
Modified: 2018-03-17 21:28 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,6.18 KB, text/plain)
2017-05-31 17:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,265.28 KB, text/plain)
2017-05-31 17:24 UTC, Toralf Förster
Details
environment (environment,128.47 KB, text/plain)
2017-05-31 17:24 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,24.83 KB, application/x-bzip)
2017-05-31 17:24 UTC, Toralf Förster
Details
games-engines:openxcom-1.0.0-r1:20170531-010121.log (games-engines:openxcom-1.0.0-r1:20170531-010121.log,77.80 KB, text/plain)
2017-05-31 17:24 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,33.97 KB, application/x-bzip)
2017-05-31 17:24 UTC, Toralf Förster
Details
abi patch for openxcom with C++11 (abi_update.patch,3.00 KB, patch)
2018-02-18 19:24 UTC, mudcrabmerchant
Details | Diff
Ebuild patch enabling eapply (openxcom_ebuild.patch,386 bytes, patch)
2018-02-18 19:32 UTC, mudcrabmerchant
Details | Diff
C++11 abi update for openxcom (abi_update.patch,3.01 KB, patch)
2018-02-18 21:34 UTC, mudcrabmerchant
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-05-31 17:24:03 UTC
cd /var/tmp/portage/games-engines/openxcom-1.0.0-r1/work/openxcom-1.0.0_build/src && /usr/bin/x86_64-pc-linux-gnu-g++ -DOPENXCOM_VERSION_GIT=\"\" -I/usr/include/SDL -I/usr/include/yaml-cpp -I/usr/include/yaml-cpp/..   -DNDEBUG -Werror=terminate -O2 -pipe -march=native   -o CMakeFiles/openxcom.dir/Geoscape/Globe.cpp.o -c /var/tmp/portage/games-engines/openxcom-1.0.0-r1/work/OpenXcom-1.0/src/Geoscape/Globe.cpp
/var/tmp/portage/games-engines/openxcom-1.0.0-r1/work/OpenXcom-1.0/src/Geoscape/Globe.cpp: In member function ‘void OpenXcom::Globe::drawVHLine(OpenXcom::Surface*, double, double, double, double, Uint8)’:
/var/tmp/portage/games-engines/openxcom-1.0.0-r1/work/OpenXcom-1.0/src/Geoscape/Globe.cpp:1393:29: error: call of overloaded ‘abs(double)’ is ambiguous
   seg = abs( sy/(2*M_PI)*48 );
                             ^
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 at a tinderbox (==build bot)
  name: gnome_20170525-085524

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)
  [4]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.10 [icedtea-bin-7]
*)	IcedTea JDK 3.4.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-7 
  [2]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-05-31 17:24:07 UTC
Created attachment 474808 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-05-31 17:24:11 UTC
Created attachment 474810 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-05-31 17:24:14 UTC
Created attachment 474812 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-05-31 17:24:17 UTC
Created attachment 474814 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-05-31 17:24:20 UTC
Created attachment 474816 [details]
games-engines:openxcom-1.0.0-r1:20170531-010121.log
Comment 6 Toralf Förster gentoo-dev 2017-05-31 17:24:24 UTC
Created attachment 474818 [details]
temp.tbz2
Comment 7 Dmitriy 2017-12-05 20:08:57 UTC
Patch from Archlinux community:
https://aur.archlinux.org/cgit/aur.git/tree/abs-fix.patch?h=openxcom

Just put it in /usr/portage/games-engines/openxcom/files and add
src_prepare() {
    epatch "${FILESDIR}"/abs-fix.patch
    eapply_user
}
before src_configure in the ebuild file.
Comment 8 mudcrabmerchant 2018-02-18 19:24:52 UTC
Created attachment 520058 [details, diff]
abi patch for openxcom with C++11

Created an abi patch covering abs, and depraciated auto_ptr. Allowing compadiblity with C++11.
Comment 9 mudcrabmerchant 2018-02-18 19:32:29 UTC
Created attachment 520060 [details, diff]
Ebuild patch enabling eapply
Comment 10 mudcrabmerchant 2018-02-18 21:34:15 UTC
Created attachment 520070 [details, diff]
C++11 abi update for openxcom
Comment 11 Pacho Ramos gentoo-dev 2018-02-28 16:10:39 UTC
still fails to build
Comment 12 Wilke Schwiedop 2018-03-07 19:18:09 UTC
OpenXcom is under somewhat active development, they just don't seem to tag new versions.
At time of writing, v1.0 is 2516 (!) commits behind HEAD (see: https://github.com/SupSuper/OpenXcom/releases/tag/v1.0)
Apart from being the magical "v1.0" I don't see much value in keeping a rather ancient version of the game in the tree.
Comment 13 Wilke Schwiedop 2018-03-08 14:59:54 UTC
There is a nice and working ebuild in the gamerlay overlay: https://cgit.gentoo.org/proj/gamerlay.git/tree/games-engines/openxcom/openxcom-1.0.0_p20171215.ebuild
Comment 14 Larry the Git Cow gentoo-dev 2018-03-17 21:27:49 UTC
The bug has been closed via the following commit(s):

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

commit ed8f18b47dd37a01008ae634d124e31621743dab
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2018-03-17 21:25:54 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2018-03-17 21:27:38 +0000

    games-engines/openxcom: Drop old broken 1.0.0
    
    Closes: https://bugs.gentoo.org/620270
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 games-engines/openxcom/Manifest                 |  1 -
 games-engines/openxcom/openxcom-1.0.0-r1.ebuild | 65 -------------------------
 2 files changed, 66 deletions(-)