Bug#984049: enblend-enfuse: ftbfs with GCC-11

Heinz Repp Heinz.Repp at online.de
Tue Dec 14 17:27:47 GMT 2021


> /usr/include/vigra/separableconvolution.hxx:1413:13: error: ISO C++17 does not allow dynamic exception specifications
> /usr/include/vigra/stdconvolution.hxx:796:13: error: ISO C++17 does not allow dynamic exception specifications

For those two errors I propose the first patch (c++17conf, in 
include/vigra): The original code had conditional compilation in place: 
all non Microsoft compilers got a pre-C++11 and C++17-forbidden 
construct, and Microsoft Visual C++ 2014 and up got a C++11-introduced 
and C++17-conformant construct. I removed the condition and left only 
the latter - this means you need at least GCC 4.8.1 to compile this (or 
MSC 2014/201).


Then I found another syntax error in Python code - Python 3.10 requires 
parentheses around multiple except-clauses (pythonexcept, in vigranumpy).

With those two patches it compiles, but then 22 tests fail, all with the 
same error in C++ template syntax I am not familiar with. They all fail 
because of a single discrepancy between Python and C++ representation of 
the constructArrayFromAxistags function:

> Boost.Python.ArgumentError: Python argument types in
>     vigra.vigranumpycore.constructArrayFromAxistags(type, tuple, numpy.dtype[float32], AxisTags, bool)
> did not match C++ signature:
>     constructArrayFromAxistags(boost::python::api::object, vigra::ArrayVector<long, std::allocator<long> >, NPY_TYPES, vigra::AxisTags, bool)


Maybe someone can figure out what's wrong there.

Greetings

Heinz Repp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c++17conf.patch
Type: text/x-patch
Size: 993 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20211214/769d6af1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pythonexcept.patch
Type: text/x-patch
Size: 934 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20211214/769d6af1/attachment-0001.bin>


More information about the debian-science-maintainers mailing list