Bug#816568: caps: FTBFS with GCC 6: call of overloaded... is ambiguous
Martin Michlmayr
tbm at hpe.com
Thu Mar 3 02:51:01 UTC 2016
Package: caps
Version: 0.9.24-1
Severity: normal
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-overloaded-ambiguous
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.
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.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
...
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC -o AutoFilter.o -c AutoFilter.cc
> AutoFilter.cc: In member function 'void AutoFilter::cycle(uint)':
> AutoFilter.cc:72:35: error: call of overloaded 'div(uint&, uint&)' is ambiguous
> div_t qr = div (frames, blocksize);
> ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
> from /usr/include/c++/6/stdlib.h:36,
> from basics.h:41,
> from AutoFilter.cc:31:
> /usr/include/stdlib.h:788:14: note: candidate: div_t div(int, int)
> extern div_t div (int __numer, int __denom)
> ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
> from basics.h:41,
> from AutoFilter.cc:31:
> /usr/include/c++/6/cstdlib:233:3: note: candidate: lldiv_t __gnu_cxx::div(long long int, long long int)
> div(long long __n, long long __d)
> ^~~
> /usr/include/c++/6/cstdlib:175:3: note: candidate: ldiv_t std::div(long int, long int)
> div(long __i, long __j) { return ldiv(__i, __j); }
> ^~~
> Makefile:59: recipe for target 'AutoFilter.o' failed
> make[1]: *** [AutoFilter.o] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_build: make -j1 returned exit code 2
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
More information about the pkg-multimedia-maintainers
mailing list