Bug#995839: supertuxkart FTBFS on mips*

Adrian Bunk bunk at debian.org
Wed Oct 6 19:28:18 BST 2021


Source: supertuxkart
Version: 1.3+dfsg1-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/fetch.php?pkg=supertuxkart&arch=mips64el&ver=1.3%2Bdfsg1-1&stamp=1633517199&raw=0

...
<<PKGBUILDDIR>>/src/graphics/sp/sp_texture.cpp: In member function ‘std::vector<std::pair<irr::core::dimension2d<unsigned int>, unsigned int> > SP::SPTexture::compressTexture(std::shared_ptr<irr::video::IImage>&)’:
/<<PKGBUILDDIR>>/src/graphics/sp/sp_texture.cpp:800:14: error: expected unqualified-id before numeric constant
  800 |     uint8_t* mips = new uint8_t[image->getDimension().getArea() * 4]();
      |              ^~~~
...


This is because on MIPS:

(sid_mipsel-dchroot)bunk at eller:~$ gcc -dM -E - < /dev/null | grep "define mips"
#define mips 1


Renaming the variable fixes the build.


More information about the Pkg-games-devel mailing list