I'm currently working on
https://bugs.debian.org/812293
The game fails to build from source with GCC-6 but builds fine with GCC-5. I use the latest stable release 0.2.8.3.3.
Code: Select all
> libtron.a(libtron_a-gCycle.o): In function `tOutput::tOutput<tColoredString, tColoredString>(char const*, tColoredString const&, tColoredString const&)':
> /<<PKGBUILDDIR>>/client/src/../../src/tools/tLocale.h:128: undefined reference to `tOutput::operator<<(tOutput const&)'
> /<<PKGBUILDDIR>>/client/src/../../src/tools/tLocale.h:128: undefined reference to `tOutput::operator<<(tOutput const&)'
> libtron.a(libtron_a-gCycle.o): In function `tOutput::tOutput<tColoredString>(char const*, tColoredString const&)':
> /<<PKGBUILDDIR>>/client/src/../../src/tools/tLocale.h:116: undefined reference to `tOutput::operator<<(tOutput const&)'
> libtron.a(libtron_a-gGame.o): In function `tOutput::tOutput<tString, int>(char const*, tString const&, int const&)':
> /<<PKGBUILDDIR>>/client/src/../../src/tools/tLocale.h:128: undefined reference to `tOutput::operator<<(tOutput const&)'
> libtron.a(libtron_a-gGame.o): In function `tOutput::tOutput<tString>(char const*, tString const&)':
> /<<PKGBUILDDIR>>/client/src/../../src/tools/tLocale.h:116: undefined reference to `tOutput::operator<<(tOutput const&)'
> libtron.a(libtron_a-gGame.o):/<<PKGBUILDDIR>>/client/src/../../src/tools/tLocale.h:116: more undefined references to `tOutput::operator<<(tOutput const&)' follow
> collect2: error: ld returned 1 exit status
> Makefile:813: recipe for target 'armagetronad_main' failed
*this << identifier;
it might be related to this change "Optimizations remove null pointer checks for this" explained at
https://gcc.gnu.org/gcc-6/changes.html
https://gcc.gnu.org/gcc-6/porting_to.html
Any ideas how to solve this issue?