[Debian-med-packaging] Bug#852752: diamond-aligner: FTBFS (32-bit): assumes uint32_t and unsigned aren't size_t

Aaron M. Ucko ucko at debian.org
Thu Jan 26 23:57:55 UTC 2017


Source: diamond-aligner
Version: 0.8.34+dfsg-1
Severity: important
Justification: fails to build from source

Builds of diamond-aligner on 32-bit architectures such as i386 have
been failing:

  /«BUILDDIR»/diamond-aligner-0.8.34+dfsg/src/basic/../util/util.h:494:15: error: ambiguating new declaration of ‘double percentage(size_t, size_t)’
   inline double percentage(size_t x, size_t y)
                 ^~~~~~~~~~
  /«BUILDDIR»/diamond-aligner-0.8.34+dfsg/src/basic/../util/util.h:489:17: note: old declaration ‘unsigned int percentage(unsigned int, unsigned int)’
   inline unsigned percentage(unsigned x, unsigned y)
                   ^~~~~~~~~~
  [...]
  /«BUILDDIR»/diamond-aligner-0.8.34+dfsg/src/basic/../util/text_buffer.h:154:15: error: ‘Text_buffer& Text_buffer::operator<<(size_t)’ cannot be overloaded
    Text_buffer& operator<<(size_t x)
                 ^~~~~~~~
  /«BUILDDIR»/diamond-aligner-0.8.34+dfsg/src/basic/../util/text_buffer.h:138:15: error: with ‘Text_buffer& Text_buffer::operator<<(uint32_t)’
    Text_buffer& operator<<(uint32_t x)
                 ^~~~~~~~
Could you please take a look?  I'd suggest conditionalizing one
definition in each pair by #ifdef __LP64__.  (Also, please sweep for
other such cases.)

Thanks!

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information


More information about the Debian-med-packaging mailing list