[Debian-med-packaging] Bug#813875: insighttoolkit4: FTBFS on i386 (member reference base type 'void' is not a structure or union)

Petter Reinholdtsen pere at hungry.com
Sat Feb 6 10:18:01 UTC 2016


Control: severity -1 seriuos

I started out trying to fix bug #808401, a build failure in plastimatch,
and ended up here trying to figure out why insighttoolkit4 were
unavailable on i386.  Raising severity to seriuos, as this problem block
the insighttoolkit4 package from entering testing.

The error indicate that the bug is in a header file in glibc, but I have
been unable to reproduce it using a simple test program, so there is
more needed than just including <complex>.  Perhaps there is some
conflicting define messing up the code in mathinline.h? I believe this
is the code that fail:

/* This function is used in the `isfinite' macro.  */
__MATH_INLINE int
__NTH (__finite (double __x))
{
  return (__extension__
          (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
             | 0x800fffffu) + 1) >> 31));
}

And this is how I test it.  I verified using -E that the __finite()
funciton is included when I test.

% cat x.cxx 
#include <complex>

int
main(int argc, char *argv[])
{
    return 0;
}
% /usr/bin/c++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wstrict-null-sentinel x.cxx 
x.cxx:4:10: warning: unused parameter 'argc' [-Wunused-parameter]
 main(int argc, char *argv[])
          ^
x.cxx:4:27: warning: unused parameter 'argv' [-Wunused-parameter]
 main(int argc, char *argv[])
                           ^
%

--
Happy hacking
Petter Reinholdtsen



More information about the Debian-med-packaging mailing list