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
Created attachment 149670 [details, diff] mercator-0.2.5-gcc43.patch Fixes the problem. Snatched from Debian.
Note that you have to first apply the patch in bug 217622 to atlas-c++ to actually be able to hit this bug.
Fix is now in portage. Thanks