Bug#862919: traildb: FTBFS on non-x86: emmintrin.h absent

2017-05-21 Thread Edmund Grimley Evans
The package builds on arm64 if you comment out the "HAVE_SSE2" line in
configure.ac, so replacing the unconditional AC_DEFINE with an actual
test seems like a good first step.



Bug#862919: traildb: FTBFS on non-x86: emmintrin.h absent

2017-05-18 Thread Aaron M. Ucko
Source: traildb
Version: 0.6+dfsg1-1
Severity: important
Tags: upstream
Justification: fails to build from source

Builds of traildb on non-x86 architectures have been failing:

  In file included from src/tdb_encode_model.c:22:0:
  src/dsfmt/dSFMT.h:148:25: fatal error: emmintrin.h: No such file or directory

If it is possible to get by without this header, please arrange to use
it (and the intrinsics it declares) only on x86.  (Also, please
conditionalize use of intrinsics on runtime CPU type.)  Otherwise,
please restrict the architecture accordingly, to either

Architecture: any-amd64 any-x32

or

Architecture: any-amd64 any-i386 any-x32

depending on how essential it is to have __uint128_t.

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