Package: fwbuilder
Version: 5.1.0-4
Severity: important
User: [email protected]
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
...
> g++ -c -m64 -pipe -g -D__STDC_FORMAT_MACROS -Wno-unused-parameter -g -O2 
> -fstack-protector-strong -Wformat -Werror=format-security -Wall -fPIC -Wall 
> -W  -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I.. -I../.. -I/usr/include 
> -I/usr/include/libxml2 -I../../../.. -o .obj/InetAddrMask.o InetAddrMask.cpp
> In file included from ../fwbuilder/InetAddr.h:49:0,
>                  from ../fwbuilder/InetAddrMask.h:51,
>                  from InetAddrMask.cpp:31:
> ../fwbuilder/uint128.h:469:26: warning: invalid suffix on literal; C++11 
> requires a space between literal and string macro [-Wliteral-suffix]
>              sprintf(buf, "%"PRIX64"%08"PRIX64, (unsigned long 
> long)hi,(unsigned long long)lo);
>                           ^
> 
> ../fwbuilder/uint128.h:469:35: warning: invalid suffix on literal; C++11 
> requires a space between literal and string macro [-Wliteral-suffix]
>              sprintf(buf, "%"PRIX64"%08"PRIX64, (unsigned long 
> long)hi,(unsigned long long)lo);
>                                    ^
> 
> ../fwbuilder/uint128.h:471:25: warning: invalid suffix on literal; C++11 
> requires a space between literal and string macro [-Wliteral-suffix]
>              sprintf(buf,"%"PRIX64,(unsigned long long)lo);
>                          ^
> 
> ../fwbuilder/uint128.h: In member function 'std::__cxx11::string 
> uint128::to_string() const':
> ../fwbuilder/uint128.h:469:93: warning: format '%lX' expects argument of type 
> 'long unsigned int', but argument 3 has type 'long long unsigned int' 
> [-Wformat=]
>              sprintf(buf, "%"PRIX64"%08"PRIX64, (unsigned long 
> long)hi,(unsigned long long)lo);
>                                                                               
>                ^
> 
> ../fwbuilder/uint128.h:469:93: warning: format '%lX' expects argument of type 
> 'long unsigned int', but argument 4 has type 'long long unsigned int' 
> [-Wformat=]
> ../fwbuilder/uint128.h:471:57: warning: format '%lX' expects argument of type 
> 'long unsigned int', but argument 3 has type 'long long unsigned int' 
> [-Wformat=]
>              sprintf(buf,"%"PRIX64,(unsigned long long)lo);
>                                                          ^
> 
> InetAddrMask.cpp: At global scope:
> InetAddrMask.cpp:213:75: error: 'bool libfwbuilder::operator==(const 
> libfwbuilder::InetAddrMask&, const libfwbuilder::InetAddrMask&)' should have 
> been declared inside 'libfwbuilder'
>  bool libfwbuilder::operator==(const InetAddrMask &a, const InetAddrMask &b)
>                                                                            ^
> 
> InetAddrMask.cpp:221:74: error: 'bool libfwbuilder::operator<(const 
> libfwbuilder::InetAddrMask&, const libfwbuilder::InetAddrMask&)' should have 
> been declared inside 'libfwbuilder'
>  bool libfwbuilder::operator<(const InetAddrMask &a, const InetAddrMask &b)
>                                                                           ^
> 
> Makefile:353: recipe for target '.obj/InetAddrMask.o' failed
> make[5]: *** [.obj/InetAddrMask.o] Error 1

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

Reply via email to