<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font size="2">Package: htslib<br>
Version: 0.2.0~rc3-1<br>
Tags: sid patch<br>
Severity: important<br>
Justification: FTBFS<br>
User: debian-mips-dev-discuss@lists.alioth.debian.org<br>
Usertags: mips-patch<br>
<br>
<br>
While trying to build htslib on mips/mipsel, build fails on testing.<br>
<br>
On mips, package fails with the following error:<br>
<br>
>  ./compare_sam.pl xx#unsorted.sam xx#unsorted.tmp.cram.sam_<br>
>  ./test_view -t xx.fa -C xx#unsorted.tmp.bam > xx#unsorted.tmp.bam.cram<br>
>  ./test_view -b -D xx#unsorted.tmp.bam.cram > xx#unsorted.tmp.bam.cram.bam<br>
>  ./test_view xx#unsorted.tmp.bam.cram.bam > xx#unsorted.tmp.bam.cram.bam.sam_<br>
>  ./compare_sam.pl xx#unsorted.sam xx#unsorted.tmp.bam.cram.bam.sam_<br>
><br>
>Successes 235<br>
><br>
>Failures  5<br>
>make[2]: *** [test] Error 1<br>
>make[2]: Leaving directory `/«PKGBUILDDIR»'<br>
>dh_auto_test: make -j1 test returned exit code 2<br>
>make[1]: *** [override_dh_auto_test] Error 2<br>
>make[1]: Leaving directory `/«PKGBUILDDIR»'<br>
>make: *** [build-arch] Error 2<br>
<br>
<br>
The reason for that are endianness related issues:<br>
 - system endianness is not detected properly<br>
 - function which converts multibyte data from big endian byte to little <br>
endian byte order (and vice versa) has errors (this was partially fixed <br>
in latest upstream release).<br>
<br>
This is fixed in '01-fix-endianness.patch'.<br>
After applying it, build fails with error:<br>
<br>
>  ./compare_sam.pl xx#unsorted.sam xx#unsorted.tmp.cram.sam_<br>
>  ./test_view -t xx.fa -C xx#unsorted.tmp.bam > xx#unsorted.tmp.bam.cram<br>
>  ./test_view -b -D xx#unsorted.tmp.bam.cram > xx#unsorted.tmp.bam.cram.bam<br>
>  ./test_view xx#unsorted.tmp.bam.cram.bam > xx#unsorted.tmp.bam.cram.bam.sam_<br>
>  ./compare_sam.pl xx#unsorted.sam xx#unsorted.tmp.bam.cram.bam.sam_<br>
>make[2]: *** [test] Error 1<br>
><br>
>Successes 234<br>
><br>
>Failures  6<br>
>make[2]: Leaving directory `/«PKGBUILDDIR»'<br>
>dh_auto_test: make -j1 test returned exit code 2<br>
>make[1]: *** [override_dh_auto_test] Error 2<br>
>make[1]: Leaving directory `/«PKGBUILDDIR»'<br>
>make: *** [build-arch] Error 2<br>
<br>
The same error appears on mipsel.<br>
<br>
Reason for this is that unaligned memory access is not handled well<br>
for achitectures that don't allow unaligned access, which causes bus errors <br>
on both mips and mipsel.<br>
This is fixed in '02-fix-alignment.patch'.<br>
<br>
<br>
With these patches applied I have successfully built htslib on mips/mipsel.<br>
<br>
Could you please consider including this patch?<br>
<br>
Best regards,<br>
Aleksandar Zlicic</font> </div>
</body>
</html>