Bug#811691: FTBFS with GCC 6: enumerator value for... is not

Martin Michlmayr tbm at hpe.com
Wed Jan 20 00:59:58 UTC 2016


Package: desmume
Version: 0.9.11-1
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-enumerator-value

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
> g++ -DPACKAGE_NAME=\"desmume\" -DPACKAGE_TARNAME=\"desmume\" -DPACKAGE_VERSION=\"svn\" -DPACKAGE_STRING=\"desmume\ svn\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"desmume\" -DVERSION=\"svn\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSVN_REV=0 -DSVN_REV_STR=\"0\" -DHAVE_LIBZ=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DHAVE_LIBDL=1 -DHAVE_LIBGL=1 -DHAVE_LIBOSMESA=1 -DGLADEUI_UNINSTALLED_DIR=\"/<<PKGBUILDDIR>>/src/gtk-glade/glade/\" -DGTKGLEXT_AVAILABLE=1 -DHAVE_LIBSOUNDTOUCH=1 -DGETTEXT_PACKAGE=\"desmume\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DHAVE_JIT=1 -DHOST_LINUX=1 -DHOST_64=1 -DGDB_STUB=1 -I.  -I../src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/
> include/alsa -I/usr/include/agg2 -I/usr/include/soundtouch  -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c -o armcpu.o armcpu.cpp
> In file included from armcpu.cpp:32:0:
> MMU_timing.h: In instantiation of 'class CacheController<13, 2, 5>':
> MMU_timing.h:253:26:   required from here
> MMU_timing.h:158:28: error: left operand of shift expression '(-1 << 11)' is negative [-fpermissive]
>   enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
>                         ~~~~^~~~~~~~~~~~
> 
> MMU_timing.h:158:7: error: enumerator value for 'TAGMASK' is not an integer constant
>   enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
>        ^
> 
> MMU_timing.h:159:61: error: left operand of shift expression '(-1 << 5)' is negative [-fpermissive]
>   enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
>                                                          ~~~~^~~~~~~~~~~~~~~~~~
> 
> MMU_timing.h:159:7: error: enumerator value for 'BLOCKMASK' is not an integer constant
>   enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
>        ^
> 
> MMU_timing.h: In instantiation of 'class CacheController<12, 2, 5>':
> MMU_timing.h:254:26:   required from here
> MMU_timing.h:158:28: error: left operand of shift expression '(-1 << 10)' is negative [-fpermissive]
>   enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
>                         ~~~~^~~~~~~~~~~~
> 
> MMU_timing.h:158:7: error: enumerator value for 'TAGMASK' is not an integer constant
>   enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
>        ^
> 
> MMU_timing.h:159:61: error: left operand of shift expression '(-1 << 5)' is negative [-fpermissive]
>   enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
>                                                          ~~~~^~~~~~~~~~~~~~~~~~
> 
> MMU_timing.h:159:7: error: enumerator value for 'BLOCKMASK' is not an integer constant
>   enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
>        ^
> 
> Makefile:1188: recipe for target 'armcpu.o' failed
> make[3]: *** [armcpu.o] Error 1

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the Pkg-games-devel mailing list