Skip Menu |

This queue is for tickets about the Math-Int64 CPAN distribution.

Report information
The Basics
Id: 99442
Status: resolved
Priority: 0/
Queue: Math-Int64

People
Owner: Nobody in particular
Requestors: gregoa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From: gregoa [...] cpan.org
Subject: libmath-int64-perl: FTBFS on hppa and others: test fails
We have the following bug reported to the Debian package of Math-Int64 (https://bugs.debian.org/764874): It doesn't seem to be a bug in the packaging, so you may want to take a look. Thanks! For a full view of official and unofficial Debian architectures please take a look at: https://buildd.debian.org/status/package.php?p=libmath-int64-perl&suite=sid http://buildd.debian-ports.org/status/logs.php?pkg=libmath-int64-perl ------8<-----------8<-----------8<-----------8<-----------8<----- Package: libmath-int64-perl Version: 0.32-1 Severity: normal t/Math-Int64-Native.t ... ok t/Math-Int64.t .......... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/1139 subtests Full log: http://buildd.debian-ports.org/status/fetch.php?pkg=libmath-int64-perl&arch=hppa&ver=0.32-1&stamp=1413054109 -- System Information: Debian Release: jessie/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: hppa (parisc64) Kernel: Linux 3.16.3+ (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_CA.utf8) Shell: /bin/sh linked to /bin/dash ------8<-----------8<-----------8<-----------8<-----------8<----- Thanks for considering, gregor herrmann, Debian Perl Group
From: ntyni [...] iki.fi
On Sat Oct 11 21:13:16 2014, GREGOA wrote: Show quoted text
> t/Math-Int64.t .......... > Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/1139 subtests
I had a look on s390x, which is also failing. This is a new test rather than a functionality regression. A standalone test is % perl -MMath::Int64=int64 -le 'print "ok" if 0 == ((((int64(2)**62)-1)*2)+1)/(2**63)' which divides an integer 2**63-1 with a "regular" 2**63 and expects 0 as a result because the former is smaller. I think this is a floating point accuracy issue: 2**63 ends up as a floating point variable by default, and perl -MMath::Int64=int64 -le 'print int64(2)**63 - 2**63' gives 1 on s390x but 0 on amd64. So the regular 2**63 seems to be actually 2**63-1 on s390x (and probably the other failing architectures as well.) Now, on Debian it's possible to express 2**63 as a Perl integer as we're configuring with -Duse64bitint, and indeed perl -MMath::Int64=int64 -le 'print int64(2)**63 - int(2**63)' gives 0 on both amd64 and s390x, and perl -MMath::Int64=int64 -le 'print "ok" if 0 == ((((int64(2)**62)-1)*2)+1)/int(2**63)' gives 'ok' on both. However, that's really just a workaround: Math::Int64 is redundant on -Duse64bitint systems anyway so I assume the real target is systems with 32-bit Perl integers, where I don't expect the int() cast to help at all. Hope this still helps. Thanks for your work on free software, -- Niko Tyni (Debian Perl Group) ntyni@debian.org
Could you try the new 0.33 version I have just released? https://metacpan.org/release/SALVA/Math-Int64-0.33 BTW, Is there any easy way to get Debian for s390x running under Hercules in, say, less than 10min? a prebuilt image or something like that?
Fixed in 0.33. Thank you for sending the bug up-stream!
Subject: Re: [rt.cpan.org #99442] libmath-int64-perl: FTBFS on hppa and others: test fails
Date: Thu, 30 Oct 2014 19:11:30 +0100
To: Salvador Fandino Garcia via RT <bug-Math-Int64 [...] rt.cpan.org>
From: gregor herrmann <gregoa [...] debian.org>
On Tue, 28 Oct 2014 11:43:06 -0400, Salvador Fandino Garcia via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=99442 > > Could you try the new 0.33 version I have just released? > https://metacpan.org/release/SALVA/Math-Int64-0.33
Thanks. I've uploaded 0.34-1 to experimental right now, you should be able to the build results at https://buildd.debian.org/status/package.php?p=libmath-int64-perl&suite=experimental and http://buildd.debian-ports.org/status/package.php?p=libmath-int64-perl&suite=experimental Show quoted text
> BTW, Is there any easy way to get Debian for s390x running under > Hercules in, say, less than 10min? a prebuilt image or something > like that?
In general, Debian doesn't provide images; but setting up a chroot with debootstrap should probably work. Maybe https://www.debian.org/ports/s390/ and the mailing list mentioned there can help? Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: J.J. Cale: River Runs Deep
Download signature.asc
application/pgp-signature 949b

Message body not shown because it is not plain text.