Source: odb-api
Version: 0.17.1-1
Severity: important
Tags: upstream
Justification: fails to build from source

Hi, Alastair, me again. ;-)

Builds of odb-api for 32-bit architectures such as i386 have been
failing:

  /<<PKGBUILDDIR>>/eckit/tests/config/test_configuration.cc:63:60: error: 
conversion from 'std::vector<long unsigned int>' to non-scalar type 
'std::vector<unsigned int>' requested
       std::vector<size_t> value_arr_size_t      = make_vector(6ul,7ul);

On Debian's 32-bit architectures, size_t is technically unsigned int
rather than unsigned long; although the two types are de facto
equivalent, the compiler treats them as formally distinct.
(Meanwhile, 64-bit architectures really do use unsigned long for
size_t, since unsigned int would be too narrow there.)  Alas, there is
no shorthand notation for marking literals as whatever type size_t
turns out to be, so my recommendation would be to put in casts.

Could you please take a look?

Thanks!

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu

Reply via email to