Bug#859688: [Pkg-d-devel] Bug#859688: libbiod FTBFS on i386: cannot implicitly convert expression (this._stream.position()) of type ulong to uint

2017-04-09 Thread Matthias Klumpp
Hi!

Try the attached patch - I haven't tested it, but it should fix the
issue you see in the build log. I can't guarantee though that there
are no other ones ;-)
(For that, I'd actually have to (cross) compile BioD on that architecture).

Cheers,
Matthias
commit c2197593117a7eff47d4ee257da6d298b31e2736
Author: Matthias Klumpp 
Date:   Mon Apr 10 03:47:19 2017 +0200

Fix build on i386

diff --git a/bio/sff/read.d b/bio/sff/read.d
index d4ea996..91b0623 100644
--- a/bio/sff/read.d
+++ b/bio/sff/read.d
@@ -22,5 +22,5 @@ struct SffRead {
 ushort clip_adapter_right;
 
 /// Record start offset in the file
-size_t file_offset;
+ulong file_offset; // undead.stream uses ulong instead of size_t for positions, so we do that too here to be compatible
 }


Bug#859688: [Pkg-d-devel] Bug#859688: libbiod FTBFS on i386: cannot implicitly convert expression (this._stream.position()) of type ulong to uint

2017-04-06 Thread Matthias Klumpp
2017-04-06 6:09 GMT+02:00 Andreas Tille :
> Hi,
>
> may I throw this problem to D packaging team as well?  SOrry, I have no
> idea about D. :-(
>
> THanks for any help

Just from looking at the log, it looks like someone should have used a
size_t or ulong while instead they used some other type which make
sthe build fail on non-64bit systems.
I can look into this later, should be fairly trivial to resolve.

Cheers,
Matthias

> On Thu, Apr 06, 2017 at 02:28:11AM +0300, Adrian Bunk wrote:
>> Source: libbiod
>> Version: 0.1.0-2
>> Severity: important
>>
>> https://buildd.debian.org/status/fetch.php?pkg=libbiod=i386=0.1.0-2=1491407467=0
>>
>> ...
>> [65/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
>> '-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
>> 'biod@sha/bio_sff_readrange.d.o' -c ../bio/sff/readrange.d
>> FAILED: biod@sha/bio_sff_readrange.d.o
>> ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
>> '-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
>> 'biod@sha/bio_sff_readrange.d.o' -c ../bio/sff/readrange.d
>> ../bio/sff/readrange.d(72): Error: cannot implicitly convert expression 
>> (this._stream.position()) of type ulong to uint
>> [66/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
>> '-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
>> 'biod@sha/bio_core_bgzf_virtualoffset.d.o' -c 
>> ../bio/core/bgzf/virtualoffset.d
>> [67/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
>> '-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
>> 'biod@sha/bio_core_bgzf_inputstream.d.o' -c ../bio/core/bgzf/inputstream.d
>> [68/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
>> '-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
>> 'biod@sha/bio_core_bgzf_outputstream.d.o' -c ../bio/core/bgzf/outputstream.d
>> [69/149] ldc2  '-Ibiod_test@exe' '-I.' '-I..' '-I' '-I../' 
>> '-I/usr/include/d/' '-enable-color' '-O' '-g' '-release' '-unittest'  -of 
>> 'biod_test@exe/bio_core_bgzf_outputstream.d.o' -c 
>> ../bio/core/bgzf/outputstream.d
>> [70/149] ldc2  '-Ibiod_test@exe' '-I.' '-I..' '-I' '-I../' 
>> '-I/usr/include/d/' '-enable-color' '-O' '-g' '-release' '-unittest'  -of 
>> 'biod_test@exe/bio_core_tinymap.d.o' -c ../bio/core/tinymap.d
>> ninja: build stopped: subcommand failed.
>> debian/rules:20: recipe for target 'override_dh_auto_build' failed
>> make[1]: *** [override_dh_auto_build] Error 1
>>
>> ___
>> Debian-med-packaging mailing list
>> debian-med-packag...@lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-packaging
>>
>
> --
> http://fam-tille.de
>
> ___
> Pkg-d-devel mailing list
> pkg-d-de...@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-d-devel



-- 
I welcome VSRE emails. See http://vsre.info/



Bug#859688: libbiod FTBFS on i386: cannot implicitly convert expression (this._stream.position()) of type ulong to uint

2017-04-05 Thread Andreas Tille
Hi,

may I throw this problem to D packaging team as well?  SOrry, I have no
idea about D. :-(

THanks for any help

   Andreas.

On Thu, Apr 06, 2017 at 02:28:11AM +0300, Adrian Bunk wrote:
> Source: libbiod
> Version: 0.1.0-2
> Severity: important
> 
> https://buildd.debian.org/status/fetch.php?pkg=libbiod=i386=0.1.0-2=1491407467=0
> 
> ...
> [65/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
> '-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
> 'biod@sha/bio_sff_readrange.d.o' -c ../bio/sff/readrange.d
> FAILED: biod@sha/bio_sff_readrange.d.o 
> ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
> '-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
> 'biod@sha/bio_sff_readrange.d.o' -c ../bio/sff/readrange.d
> ../bio/sff/readrange.d(72): Error: cannot implicitly convert expression 
> (this._stream.position()) of type ulong to uint
> [66/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
> '-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
> 'biod@sha/bio_core_bgzf_virtualoffset.d.o' -c ../bio/core/bgzf/virtualoffset.d
> [67/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
> '-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
> 'biod@sha/bio_core_bgzf_inputstream.d.o' -c ../bio/core/bgzf/inputstream.d
> [68/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
> '-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
> 'biod@sha/bio_core_bgzf_outputstream.d.o' -c ../bio/core/bgzf/outputstream.d
> [69/149] ldc2  '-Ibiod_test@exe' '-I.' '-I..' '-I' '-I../' 
> '-I/usr/include/d/' '-enable-color' '-O' '-g' '-release' '-unittest'  -of 
> 'biod_test@exe/bio_core_bgzf_outputstream.d.o' -c 
> ../bio/core/bgzf/outputstream.d
> [70/149] ldc2  '-Ibiod_test@exe' '-I.' '-I..' '-I' '-I../' 
> '-I/usr/include/d/' '-enable-color' '-O' '-g' '-release' '-unittest'  -of 
> 'biod_test@exe/bio_core_tinymap.d.o' -c ../bio/core/tinymap.d
> ninja: build stopped: subcommand failed.
> debian/rules:20: recipe for target 'override_dh_auto_build' failed
> make[1]: *** [override_dh_auto_build] Error 1
> 
> ___
> Debian-med-packaging mailing list
> debian-med-packag...@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-packaging
> 

-- 
http://fam-tille.de



Bug#859688: libbiod FTBFS on i386: cannot implicitly convert expression (this._stream.position()) of type ulong to uint

2017-04-05 Thread Adrian Bunk
Source: libbiod
Version: 0.1.0-2
Severity: important

https://buildd.debian.org/status/fetch.php?pkg=libbiod=i386=0.1.0-2=1491407467=0

...
[65/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
'-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
'biod@sha/bio_sff_readrange.d.o' -c ../bio/sff/readrange.d
FAILED: biod@sha/bio_sff_readrange.d.o 
ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
'-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
'biod@sha/bio_sff_readrange.d.o' -c ../bio/sff/readrange.d
../bio/sff/readrange.d(72): Error: cannot implicitly convert expression 
(this._stream.position()) of type ulong to uint
[66/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
'-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
'biod@sha/bio_core_bgzf_virtualoffset.d.o' -c ../bio/core/bgzf/virtualoffset.d
[67/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
'-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
'biod@sha/bio_core_bgzf_inputstream.d.o' -c ../bio/core/bgzf/inputstream.d
[68/149] ldc2  '-Ibiod@sha' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
'-enable-color' '-O' '-g' '-release' '-relocation-model=pic'  -of 
'biod@sha/bio_core_bgzf_outputstream.d.o' -c ../bio/core/bgzf/outputstream.d
[69/149] ldc2  '-Ibiod_test@exe' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
'-enable-color' '-O' '-g' '-release' '-unittest'  -of 
'biod_test@exe/bio_core_bgzf_outputstream.d.o' -c 
../bio/core/bgzf/outputstream.d
[70/149] ldc2  '-Ibiod_test@exe' '-I.' '-I..' '-I' '-I../' '-I/usr/include/d/' 
'-enable-color' '-O' '-g' '-release' '-unittest'  -of 
'biod_test@exe/bio_core_tinymap.d.o' -c ../bio/core/tinymap.d
ninja: build stopped: subcommand failed.
debian/rules:20: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1