Package: chromium-bsu
Version: 0.9.15.1-1
Severity: normal
User: [email protected]
Usertags: ftbfs-gcc-6 gcc-6-overloaded-ambiguous

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but will probably come out this week.

You can find GCC 6 in unstable (gcc-6).  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.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
...
>                                                           
> MainSDL_Event.cpp: In member function 'void MainSDL::keyMove()':
> MainSDL_Event.cpp:420:88: error: call of overloaded 'abs(float&)' is ambiguous

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

>    if( keystate[SDLK_LEFT]  || keystate[SDLK_KP4] ) key_speed_x -= 2.0 + 
> abs(key_speed_x)*0.4;
>                                                                               
>           ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:421:88: error: call of overloaded 'abs(float&)' is ambiguous
>    if( keystate[SDLK_RIGHT] || keystate[SDLK_KP6] ) key_speed_x += 2.0 + 
> abs(key_speed_x)*0.4;
>                                                                               
>           ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:422:88: error: call of overloaded 'abs(float&)' is ambiguous
>    if( keystate[SDLK_UP]    || keystate[SDLK_KP8] ) key_speed_y -= 2.0 + 
> abs(key_speed_y)*0.4;
>                                                                               
>           ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:423:88: error: call of overloaded 'abs(float&)' is ambiguous
>    if( keystate[SDLK_DOWN]  || keystate[SDLK_KP2] ) key_speed_y += 2.0 + 
> abs(key_speed_y)*0.4;
>                                                                               
>           ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:424:65: error: call of overloaded 'abs(float&)' is ambiguous
>    if( keystate[SDLK_KP7] ){ key_speed_x -= 2.0 + abs(key_speed_x)*0.4; 
> key_speed_y -= 2.0 + abs(key_speed_y)*0.4; }
>                                                                  ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:424:108: error: call of overloaded 'abs(float&)' is 
> ambiguous
>    if( keystate[SDLK_KP7] ){ key_speed_x -= 2.0 + abs(key_speed_x)*0.4; 
> key_speed_y -= 2.0 + abs(key_speed_y)*0.4; }
>                                                                               
>                               ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:425:65: error: call of overloaded 'abs(float&)' is ambiguous
>    if( keystate[SDLK_KP9] ){ key_speed_x += 2.0 + abs(key_speed_x)*0.4; 
> key_speed_y -= 2.0 + abs(key_speed_y)*0.4; }
>                                                                  ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:425:108: error: call of overloaded 'abs(float&)' is 
> ambiguous
>    if( keystate[SDLK_KP9] ){ key_speed_x += 2.0 + abs(key_speed_x)*0.4; 
> key_speed_y -= 2.0 + abs(key_speed_y)*0.4; }
>                                                                               
>                               ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:426:65: error: call of overloaded 'abs(float&)' is ambiguous
>    if( keystate[SDLK_KP3] ){ key_speed_x += 2.0 + abs(key_speed_x)*0.4; 
> key_speed_y += 2.0 + abs(key_speed_y)*0.4; }
>                                                                  ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:426:108: error: call of overloaded 'abs(float&)' is 
> ambiguous
>    if( keystate[SDLK_KP3] ){ key_speed_x += 2.0 + abs(key_speed_x)*0.4; 
> key_speed_y += 2.0 + abs(key_speed_y)*0.4; }
>                                                                               
>                               ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:427:65: error: call of overloaded 'abs(float&)' is ambiguous
>    if( keystate[SDLK_KP1] ){ key_speed_x -= 2.0 + abs(key_speed_x)*0.4; 
> key_speed_y += 2.0 + abs(key_speed_y)*0.4; }
>                                                                  ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> MainSDL_Event.cpp:427:108: error: call of overloaded 'abs(float&)' is 
> ambiguous
>    if( keystate[SDLK_KP1] ){ key_speed_x -= 2.0 + abs(key_speed_x)*0.4; 
> key_speed_y += 2.0 + abs(key_speed_y)*0.4; }
>                                                                               
>                               ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from /usr/include/SDL/SDL_stdinc.h:40,
>                  from /usr/include/SDL/SDL_main.h:26,
>                  from /usr/include/SDL/SDL.h:30,
>                  from MainSDL.h:12,
>                  from MainSDL_Event.cpp:15:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int 
> std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> In file included from Global.h:14:0,
>                  from MainSDL.cpp:38:
> define.h:42:23: warning: invalid suffix on literal; C++11 requires a space 
> between literal and string macro [-Wliteral-suffix]
>  #define CONFIG_FILE   "."PACKAGE
>                        ^
> define.h:43:27: warning: invalid suffix on literal; C++11 requires a space 
> between literal and string macro [-Wliteral-suffix]
>  #define CONFIG_SCORE_FILE "."PACKAGE"-score"
>                            ^
> define.h:44:27: warning: invalid suffix on literal; C++11 requires a space 
> between literal and string macro [-Wliteral-suffix]
>  #define CONFIG_MUSIC_FILE "."PACKAGE"-music"
>                            ^
> Makefile:1062: recipe for target 'chromium_bsu-MainSDL_Event.o' failed
> make[3]: *** [chromium_bsu-MainSDL_Event.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> In file included from EnemyAircraft_Boss01.cpp:20:0:
> HeroAircraft.h: In member function 'void HeroAircraft::nextItem()':
> HeroAircraft.h:46:57: warning: operation on 
> '((HeroAircraft*)this)->HeroAircraft::currentItemIndex' may be undefined 
> [-Wsequence-point]
>   void nextItem() { useItemArmed = 0.0; currentItemIndex = 
> ++currentItemIndex%NUM_HERO_ITEMS; }
>                                                           
> In file included from EnemyAircraft_Omni.cpp:20:0:

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

Reply via email to