Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217626 - dev-games/mercator-0.2.5 fails w/gcc-4.3.0
Summary: dev-games/mercator-0.2.5 fails w/gcc-4.3.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-04-14 11:18 UTC by Peter Alfredsen (RETIRED)
Modified: 2008-04-15 21:40 UTC (History)
0 users

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


Attachments
mercator-0.2.5-gcc43.patch (mercator-0.2.5-gcc43.patch,999 bytes, patch)
2008-04-14 11:19 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Alfredsen (RETIRED) gentoo-dev 2008-04-14 11:18:39 UTC
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.. -I.. -I/usr/include/wfmath-0.3 -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -Wall -DNDEBUG -MT Forest.lo -MD -MP -MF .deps/Forest.Tpo -c Forest.cpp  -fPIC -DPIC -o .libs/Forest.o
if /bin/bash ../libtool --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H  -I.. -I..  -I/usr/include/wfmath-0.3    -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -Wall -DNDEBUG -MT Area.lo -MD -MP -MF ".deps/Area.Tpo" -c -o Area.lo Area.cpp; \
        then mv -f ".deps/Area.Tpo" ".deps/Area.Plo"; else rm -f ".deps/Area.Tpo"; exit 1; fi
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.. -I.. -I/usr/include/wfmath-0.3 -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -Wall -DNDEBUG -MT Area.lo -MD -MP -MF .deps/Area.Tpo -c Area.cpp  -fPIC -DPIC -o .libs/Area.o
In file included from ../Mercator/Forest.h:9,
                 from Forest.cpp:12:
../Mercator/RandCache.h: In member function 'virtual size_t ZeroSpiralOrdering::operator()(int, int)':
../Mercator/RandCache.h:61: error: call of overloaded 'abs(int&)' is ambiguous
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cmath:99: note: candidates are: double std::abs(double)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cmath:103: note:                 float std::abs(float)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cmath:107: note:                 long double std::abs(long double)
../Mercator/RandCache.h:61: error: call of overloaded 'abs(int&)' is ambiguous
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cmath:99: note: candidates are: double std::abs(double)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cmath:103: note:                 float std::abs(float)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cmath:107: note:                 long double std::abs(long double)
make[2]: *** [Forest.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/dev-games/mercator-0.2.5/work/mercator-0.2.5/Mercator'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-games/mercator-0.2.5/work/mercator-0.2.5'
make: *** [all] Error 2


Reproducible: Always
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-14 11:19:16 UTC
Created attachment 149670 [details, diff]
mercator-0.2.5-gcc43.patch

Fixes the problem. Snatched from Debian.
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-14 11:20:26 UTC
Note that you have to first apply the patch in bug 217622 to atlas-c++ to actually be able to hit this bug.
Comment 3 Tupone Alfredo gentoo-dev 2008-04-15 21:40:09 UTC
Fix is now in portage. Thanks