Package: pyodbc
Version: 3.0.6-2
Severity: important
User: [email protected]
Usertags: ftbfs-gcc-6 gcc-6-cannot-convert

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
...
> x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall 
> -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g 
> -fstack-protector-strong -Wformat -Werror=format-security -fPIC 
> -DPYODBC_VERSION=3.0.6 -I/usr/include/python2.7 -c 
> /<<PKGBUILDDIR>>/src/getdata.cpp -o 
> /<<PKGBUILDDIR>>/./build/temp.linux-x86_64-2.7/<<PKGBUILDDIR>>/src/getdata.o 
> -Wno-write-strings
> cc1plus: warning: command line option '-Wstrict-prototypes' is valid for 
> C/ObjC but not for C++
> /<<PKGBUILDDIR>>/src/getdata.cpp: In member function 'PyObject* 
> DataBuffer::DetachValue()':
> /<<PKGBUILDDIR>>/src/getdata.cpp:260:20: error: cannot convert 'bool' to 
> 'PyObject* {aka _object*}' in return
>              return false;
>                     ^~~~~
> 
> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
> /usr/share/cdbs/1/class/python-distutils.mk:116: recipe for target 
> 'debian/python-module-stampdir/python-pyodbc' failed

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

Reply via email to