This has nothing to do with your CFLAGS. The build script sets its own flags.
I just upgraded portage to 2.1.4.5. This magically seems to fix this bug.
edit: more likely this was the new Spring ebuild. Sorry I got this confused.
Of course another build error just had to appear..:
Code: Select all
/var/tmp/portage/games-strategy/spring-0.77_p2-r1/work/spring_0.77b2/rts/lib/luabind/luabind/class.hpp: In member function ├óÔé¼╦£luabind::class_<T, X1, X2, X3>& luabind::class_<T, X1, X2, X3>::def(luabind::detail::operator_<Derived>, const Policies&)├óÔé¼Ôäó:
/var/tmp/portage/games-strategy/spring-0.77_p2-r1/work/spring_0.77b2/rts/lib/luabind/luabind/class.hpp:1027: error: no matching function for call to ├óÔé¼╦£raw(boost::arg<1>&)├óÔé¼Ôäó
/var/tmp/portage/games-strategy/spring-0.77_p2-r1/work/spring_0.77b2/rts/lib/luabind/luabind/class.hpp: In member function ├óÔé¼╦£luabind::class_<T, X1, X2, X3>& luabind::class_<T, X1, X2, X3>::def(luabind::detail::operator_<Derived>)├óÔé¼Ôäó:
/var/tmp/portage/games-strategy/spring-0.77_p2-r1/work/spring_0.77b2/rts/lib/luabind/luabind/class.hpp:1037: error: no matching function for call to ├óÔé¼╦£raw(boost::arg<1>&)├óÔé¼Ôäó
make[2]: *** [rts/lib/CMakeFiles/luabind.dir/luabind/src/class_registry.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 30%] Building CXX object tools/unitsync/CMakeFiles/unitsync.dir/__/__/rts/System/Platform/Linux/DataDirLocater.cpp.o
[ 30%] Building CXX object AI/CMakeFiles/KAIK-0.13.dir/__/rts/System/creg/Serializer.cpp.o
[ 30%] Building CXX object tools/DedicatedServer/CMakeFiles/springserver.dir/__/__/rts/System/FileSystem/Archive7Zip.cpp.o
[ 30%] /var/tmp/portage/games-strategy/spring-0.77_p2-r1/work/spring_0.77b2/rts/lib/luabind/luabind/class.hpp: In member function ├óÔé¼╦£luabind::class_<T, X1, X2, X3>& luabind::class_<T, X1, X2, X3>::def(luabind::detail::operator_<Derived>, const Policies&)├óÔé¼Ôäó:
/var/tmp/portage/games-strategy/spring-0.77_p2-r1/work/spring_0.77b2/rts/lib/luabind/luabind/class.hpp:1027: error: no matching function for call to ├óÔé¼╦£raw(boost::arg<1>&)├óÔé¼Ôäó
/var/tmp/portage/games-strategy/spring-0.77_p2-r1/work/spring_0.77b2/rts/lib/luabind/luabind/class.hpp: In member function ├óÔé¼╦£luabind::class_<T, X1, X2, X3>& luabind::class_<T, X1, X2, X3>::def(luabind::detail::operator_<Derived>)├óÔé¼Ôäó:
/var/tmp/portage/games-strategy/spring-0.77_p2-r1/work/spring_0.77b2/rts/lib/luabind/luabind/class.hpp:1037: error: no matching function for call to ├óÔé¼╦£raw(boost::arg<1>&)├óÔé¼Ôäó
Building CXX object AI/CMakeFiles/KAIK-0.13.dir/__/rts/System/creg/creg.cpp.o
make[2]: *** [rts/lib/CMakeFiles/luabind.dir/luabind/src/stack_content_by_name.cpp.o] Error 1
make[1]: *** [rts/lib/CMakeFiles/luabind.dir/all] Error 2