--- Begin Message ---
Package: src:khronos-opencl-clhpp
Version: 2.0.10-1
Severity: normal
Tags: sid buster
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-7
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.
The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/khronos-opencl-clhpp_2.0.10-1_unstable_gcc7.log
The last lines of the build log are at the end of this report.
To build with GCC 7, either set CC=gcc-7 CXX=g++-7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-7/porting_to.html
[...]
vector<cl_int>* binaryStatus = NULL,
^
/<<PKGBUILDDIR>>/examples/src/trivialCL2.cpp: In function 'int main()':
/<<PKGBUILDDIR>>/examples/src/trivialCL2.cpp:239:18: warning: unused variable
'clD' [-Wunused-variable]
cl_device_id clD = d();
^~~
/<<PKGBUILDDIR>>/examples/src/trivialCL2.cpp:240:18: warning: unused variable
'clD2' [-Wunused-variable]
cl_device_id clD2 = d.get();
^~~~
In file included from /<<PKGBUILDDIR>>/examples/src/trivialCL2.cpp:6:0:
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/CL/cl2.hpp: In instantiation of
'cl_int cl::Kernel::setSVMPointers(const T0&, Ts ...) [with T0 = int*; Ts = {};
cl_int = int]':
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/CL/cl2.hpp:9430:48: required
from 'cl_int cl::KernelFunctor<Ts>::setSVMPointers(const T0&, T1s ...) [with T0
= int*; T1s = {}; Ts = {std::unique_ptr<main()::Foo,
cl::detail::Deleter<cl::SVMAllocator<main()::Foo,
cl::SVMTraitCoarse<cl::SVMTraitReadOnly<cl::detail::SVMTraitNull> > > > >&,
int*, std::vector<int, cl::SVMAllocator<int,
cl::SVMTraitCoarse<cl::SVMTraitReadWrite<cl::detail::SVMTraitNull> > > >&,
cl::Buffer, std::vector<int, cl::SVMAllocator<int,
cl::SVMTraitCoarse<cl::SVMTraitReadWrite<cl::detail::SVMTraitNull> > > >&, int,
cl::Pipe&, cl::DeviceCommandQueue}; cl_int = int]'
/<<PKGBUILDDIR>>/examples/src/trivialCL2.cpp:198:50: required from here
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/CL/cl2.hpp:5961:51: error: call
of overloaded 'setSVMPointersHelper(std::array<void*, 1>&, int* const&)' is
ambiguous
setSVMPointersHelper<0, 1 + sizeof...(Ts)>(pointerList, t0, ts...);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/CL/cl2.hpp:5937:5: note:
candidate: typename std::enable_if<std::is_pointer<T0>::value, void>::type
cl::Kernel::setSVMPointersHelper(std::array<void*, ArrayLength>&, T0, Ts ...)
[with int index = 0; int ArrayLength = 1; T0 = int*; Ts = {}; typename
std::enable_if<std::is_pointer<T0>::value, void>::type = void]
setSVMPointersHelper(std::array<void*, ArrayLength> &pointerList, T0 t0,
Ts... ts)
^~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/CL/cl2.hpp:5951:5: note:
candidate: typename std::enable_if<std::is_pointer<T0>::value, void>::type
cl::Kernel::setSVMPointersHelper(std::array<void*, ArrayLength>&, T0) [with int
index = 0; int ArrayLength = 1; T0 = int*; typename
std::enable_if<std::is_pointer<T0>::value, void>::type = void]
setSVMPointersHelper(std::array<void*, ArrayLength> &pointerList, T0 t0)
^~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/CL/cl2.hpp: In instantiation of
'cl_int cl::Kernel::setSVMPointers(const T0&, Ts ...) [with T0 =
std::unique_ptr<int, cl::detail::Deleter<cl::SVMAllocator<int,
cl::SVMTraitCoarse<> > > >; Ts = {}; cl_int = int]':
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/CL/cl2.hpp:9430:48: required
from 'cl_int cl::KernelFunctor<Ts>::setSVMPointers(const T0&, T1s ...) [with T0
= std::unique_ptr<int, cl::detail::Deleter<cl::SVMAllocator<int,
cl::SVMTraitCoarse<> > > >; T1s = {}; Ts = {std::unique_ptr<main()::Foo,
cl::detail::Deleter<cl::SVMAllocator<main()::Foo,
cl::SVMTraitCoarse<cl::SVMTraitReadOnly<cl::detail::SVMTraitNull> > > > >&,
int*, std::vector<int, cl::SVMAllocator<int,
cl::SVMTraitCoarse<cl::SVMTraitReadWrite<cl::detail::SVMTraitNull> > > >&,
cl::Buffer, std::vector<int, cl::SVMAllocator<int,
cl::SVMTraitCoarse<cl::SVMTraitReadWrite<cl::detail::SVMTraitNull> > > >&, int,
cl::Pipe&, cl::DeviceCommandQueue}; cl_int = int]'
/<<PKGBUILDDIR>>/examples/src/trivialCL2.cpp:199:44: required from here
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/CL/cl2.hpp:5961:51: error: call
of overloaded 'setSVMPointersHelper(std::array<void*, 1>&, const
std::unique_ptr<int, cl::detail::Deleter<cl::SVMAllocator<int,
cl::SVMTraitCoarse<> > > >&)' is ambiguous
setSVMPointersHelper<0, 1 + sizeof...(Ts)>(pointerList, t0, ts...);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/CL/cl2.hpp:5929:10: note:
candidate: void cl::Kernel::setSVMPointersHelper(std::array<void*,
ArrayLength>&, cl::pointer<T0, D>&, Ts ...) [with int index = 0; int
ArrayLength = 1; D = cl::detail::Deleter<cl::SVMAllocator<int,
cl::SVMTraitCoarse<> > >; T0 = int; Ts = {}; cl::pointer<T0, D> =
std::unique_ptr<int, cl::detail::Deleter<cl::SVMAllocator<int,
cl::SVMTraitCoarse<> > > >]
void setSVMPointersHelper(std::array<void*, ArrayLength> &pointerList,
const pointer<T0, D> &t0, Ts... ts)
^~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include/CL/cl2.hpp:5944:10: note:
candidate: void cl::Kernel::setSVMPointersHelper(std::array<void*,
ArrayLength>&, cl::pointer<T0, D>&) [with int index = 0; int ArrayLength = 1;
T0 = int; D = cl::detail::Deleter<cl::SVMAllocator<int, cl::SVMTraitCoarse<> >
>; cl::pointer<T0, D> = std::unique_ptr<int,
cl::detail::Deleter<cl::SVMAllocator<int, cl::SVMTraitCoarse<> > > >]
void setSVMPointersHelper(std::array<void*, ArrayLength> &pointerList,
const pointer<T0, D> &t0)
^~~~~~~~~~~~~~~~~~~~
examples/src/CMakeFiles/trivialCL2.dir/build.make:65: recipe for target
'examples/src/CMakeFiles/trivialCL2.dir/trivialCL2.cpp.o' failed
make[4]: *** [examples/src/CMakeFiles/trivialCL2.dir/trivialCL2.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
CMakeFiles/Makefile2:330: recipe for target
'examples/src/CMakeFiles/trivialCL2.dir/all' failed
make[3]: *** [examples/src/CMakeFiles/trivialCL2.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
Makefile:141: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: make -j1 all docs returned exit code 2
debian/rules:28: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:18: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
--- End Message ---