Bug#853453: inkscape: ftbfs with GCC-7

Mattia Rizzolo mattia at debian.org
Tue Jan 31 09:46:38 UTC 2017


Control: severity -1 important

(I want it higher in the otherwise too big bug list…)

On Tue, Jan 31, 2017 at 09:32:15AM +0000, Matthias Klose wrote:
> 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/inkscape_0.92.0-4_unstable_gcc7.log
> The last lines of the build log are at the end of this report.
..
> 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

The actual error (I believe):

|/<<PKGBUILDDIR>>/src/ui/tools/flood-tool.cpp:253:119: error: call of overloaded 'abs(unsigned int)' is ambiguous
|             diff += abs(static_cast<int>(amc ? unpremul_alpha(bmc, amc) : 0) - (amop ? unpremul_alpha(bmop, amop) : 0));
|                                                                                                                       ^
|In file included from /usr/include/c++/7/cstdlib:75:0,
|                 from /usr/include/c++/7/stdlib.h:36,
|                 from /<<PKGBUILDDIR>>/src/trace/trace.h:17,
|                 from /<<PKGBUILDDIR>>/src/trace/potrace/inkscape-potrace.h:20,
|                 from /<<PKGBUILDDIR>>/src/ui/tools/flood-tool.cpp:24:
|/usr/include/stdlib.h:735:12: note: candidate: int abs(int)
| extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
|            ^~~
|In file included from /usr/include/c++/7/cstdlib:77:0,
|                 from /usr/include/c++/7/stdlib.h:36,
|                 from /<<PKGBUILDDIR>>/src/trace/trace.h:17,
|                 from /<<PKGBUILDDIR>>/src/trace/potrace/inkscape-potrace.h:20,
|                 from /<<PKGBUILDDIR>>/src/ui/tools/flood-tool.cpp:24:
|/usr/include/c++/7/bits/std_abs.h:56:3: note: candidate: long int std::abs(long int)
|   abs(long __i) { return __builtin_labs(__i); }
|   ^~~
|/usr/include/c++/7/bits/std_abs.h:61:3: note: candidate: long long int std::abs(long long int)
|   abs(long long __x) { return __builtin_llabs (__x); }
|   ^~~
|/usr/include/c++/7/bits/std_abs.h:70:3: note: candidate: constexpr double std::abs(double)
|   abs(double __x)
|   ^~~
|/usr/include/c++/7/bits/std_abs.h:74:3: note: candidate: constexpr float std::abs(float)
|   abs(float __x)
|   ^~~
|/usr/include/c++/7/bits/std_abs.h:78:3: note: candidate: constexpr long double std::abs(long double)
|   abs(long double __x)
|   ^~~
|/usr/include/c++/7/bits/std_abs.h:84:3: note: candidate: constexpr __int128 std::abs(__int128)
|   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
|   ^~~
|/usr/include/c++/7/bits/std_abs.h:102:3: note: candidate: constexpr __float128 std::abs(__float128)
|   abs(__float128 __x)
|   ^~~


There are other instances of the same error in previous lines in the
same file.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20170131/edb7fe31/attachment-0001.sig>


More information about the pkg-multimedia-maintainers mailing list