Bug#812043: ii-esu: FTBFS with GCC 6: array subscript is above

Martin Michlmayr tbm at hpe.com
Wed Jan 20 04:47:48 UTC 2016


Package: ii-esu
Version: 1.0a.dfsg1-7
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6

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.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> make[2]: Entering directory '/<<PKGBUILDDIR>>'
> gdc -o ii-esu -Iimport -Isrc -Wno-deprecated -frelease -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro import/SDL.d import/SDL_active.d import/SDL_audio.d import/SDL_byteorder.d import/SDL_cdrom.d import/SDL_copying.d import/SDL_endian.d import/SDL_error.d import/SDL_events.d import/SDL_getenv.d import/SDL_joystick.d import/SDL_keyboard.d import/SDL_keysym.d import/SDL_keysym_.d import/SDL_mixer.d import/SDL_mouse.d import/SDL_mutex.d import/SDL_quit.d import/SDL_rwops.d import/SDL_syswm.d import/SDL_thread.d import/SDL_timer.d import/SDL_types.d import/SDL_version_.d import/SDL_video.d import/bulletml.d import/opengl.d import/openglu.d src/es/basis.d src/es/boot.d src/es/cloneable.d src/es/enemy.d src/es/field.d src/es/gamemanager.d src/es/mainloop.d src/es/mouse.d src/es/moving.d src/es/pointer.d src/es/rand.d src/es/screen.d src/es/shape.d src/es/ship.d src/es/shot.d src/es/sound.d src/es/stage.d -lSDL -lGL -lSD
> L_mixer
> cc1d: warning: command line option '-Wformat=1' is valid for C/C++/ObjC/ObjC++ but not for D
> cc1d: warning: command line option '-Wdate-time' is valid for C/C++/Fortran/ObjC/ObjC++ but not for D
> src/es/enemy.d:272:18: error: cannot implicitly convert expression ([-1, 0, 1]) of type int[] to real[]
>        real[] a = [-1 ,0 ,1];
>                   ^
> 
> src/es/enemy.d:273:18: error: cannot implicitly convert expression ([0, 1, 0]) of type int[] to real[]
>        real[] b = [0 ,1 ,0];
>                   ^
> 
> src/es/enemy.d:322:60: error: cannot implicitly convert expression (10) of type int to real
>        ep.addEnemy(this ,MISSILE ,new Homing(2.0*PI / 360) ,10 ,fx ,fy ,fz ,cos(aim - PI / 3) * 3.0 ,sin(aim - PI / 3) * 3.0);
>                                                             ^
> 
> src/es/enemy.d:360:48: error: cannot implicitly convert expression (10) of type int to real
>        ep.addEnemy(this ,BOUND ,new Straight() ,10 ,fx ,fy ,fz ,cos(aim) * 5.0,sin(aim) * 5.0);
>                                                 ^
> 
> src/es/enemy.d:361:48: error: cannot implicitly convert expression (10) of type int to real
>        ep.addEnemy(this ,BOUND ,new Straight() ,10 ,fx ,fy ,fz ,cos(aim + PI / 2) * 5.0 ,sin(aim + PI / 3) * 5.0);
>                                                 ^
> 
> src/es/enemy.d:362:48: error: cannot implicitly convert expression (10) of type int to real
>        ep.addEnemy(this ,BOUND ,new Straight() ,10 ,fx ,fy ,fz ,cos(aim + PI) * 5.0 ,sin(aim + PI / 3) * 5.0);
>                                                 ^
> 
> src/es/enemy.d:363:48: error: cannot implicitly convert expression (10) of type int to real
>        ep.addEnemy(this ,BOUND ,new Straight() ,10 ,fx ,fy ,fz ,cos(aim - PI / 2) * 5.0 ,sin(aim - PI / 3) * 5.0);
>                                                 ^
> 
> src/es/enemy.d:411:51: error: cannot implicitly convert expression (1) of type int to real
>          ep.addEnemy(this ,BULLET ,new Straight() ,1 ,fx ,fy ,fz ,co * 3.0,si * 3.0);
>                                                    ^
> 
> src/es/enemy.d:448:49: error: cannot implicitly convert expression (5) of type int to real
>        ep.addEnemy(this ,BULLET ,new Straight() ,5 ,fx ,fy ,fz ,vx / vr * 6.0 ,vy / vr *6.0);
>                                                  ^
> 
> src/es/enemy.d:484:53: error: cannot implicitly convert expression (5) of type int to real
>            ep.addEnemy(this ,BULLET ,new Straight() ,5 ,fx ,fy ,fz ,vx / vr * 8.0 ,vy / vr * 8.0);
>                                                      ^
> 
> src/es/enemy.d:488:64: error: cannot implicitly convert expression (20) of type int to real
>          ep.addEnemy(this ,MISSILE ,new Homing(2.0*PI / 180.0) ,20 ,fx ,fy ,fz ,- vx / vr * 5.0 ,- vy / vr * 5.0);
>                                                                 ^
> 
> src/es/enemy.d:526:48: error: cannot implicitly convert expression (5) of type int to real
>        ep.addEnemy(this ,BOUND ,new Straight() ,5 ,fx ,fy ,fz , (ship.fx -fx) / fr * 5.0 ,(ship.fy -fy) / fr * 5.0);
>                                                 ^
> 
> src/es/gamemanager.d:227:13: error: function es.gamemanager.background (real r, real g, real b) is not callable using argument types (int, int, int)
>    background(0,50,60);
>              ^
> 
> src/es/gamemanager.d:263:10: error: None of the overloads of 'dist' are callable using argument types (int, int, real, real), candidates are:
>    if(dist(screen.SCREEN_WIDTH / 2 ,screen.SCREEN_HEIGHT / 2 ,mousex,mousey) < 20 * screen.SCREEN_HEIGHT / 480){
>           ^
> 
> src/es/basis.d:39:13: note: es.basis.dist(real x0, real y0, real z0, real x1, real y1, real z1)
>  public real dist(real x0, real y0, real z0, real x1, real y1, real z1){
>              ^
> 
> src/es/basis.d:44:13: note: es.basis.dist(real x0, real y0, real x1, real y1)
>  public real dist(real x0, real y0, real x1, real y1){
>              ^
> 
> src/es/pointer.d:17:16: error: cannot implicitly convert expression ([5, 10, 20]) of type int[] to real[]
>      real[] a = [5 ,10 ,20];
>                 ^
> 
> src/es/pointer.d:18:16: error: cannot implicitly convert expression ([0, 5, 0]) of type int[] to real[]
>      real[] b = [0 ,5 ,0];
>                 ^
> 
> src/es/ship.d:39:16: error: cannot implicitly convert expression ([-10, -20, 30, 40, 20, -5, 5, 30]) of type int[] to real[]
>      real[] a = [-10 ,-20 ,30, 40 ,20 ,-5 ,5 ,30];
>                 ^
> 
> src/es/ship.d:40:16: error: cannot implicitly convert expression ([0, 20, 30, 25, 23, 15, 5, 0]) of type int[] to real[]
>      real[] b = [0 ,20 ,30 ,25 ,23 ,15 ,5 ,0];
>                 ^
> 
> src/es/ship.d:86:15: error: cannot implicitly convert expression (150) of type int to real
>      real r2 = 150;
>                ^
> 
> src/es/ship.d:143:14: error: cannot implicitly convert expression (70) of type int to real
>     real r1 = 70;
>               ^
> 
> src/es/ship.d:239:15: error: cannot implicitly convert expression (150) of type int to real
>      real r2 = 150;
>                ^
> 
> Makefile:8: recipe for target 'ii-esu' failed
> make[2]: *** [ii-esu] Error 1

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



More information about the Pkg-games-devel mailing list