eshafto has asked for the wisdom of the Perl Monks concerning the following question:
The tests look like this:1..50 ok 1 ok 2 ok 3 ok 4 not ok 5 # 0.100000000000000005551115123125783 not ok 6 # -0.100000000000000005551115123125783 not ok 7 # 0.100000000000000005551115123125783 not ok 8 # -0.100000000000000005551115123125783 not ok 9 # 10.0099999999999997868371792719699 ok 10 ok 11
I configured this with -Duse64bitall and added the -m64 and -mcpu=v9 flags to the compile and link commands. For chuckles I installed anyway and tried to update CPAN and all the version checking failed with things like:$a = 0.1; "$a"; print $a eq "0.1" ? "ok 5\n" : "not ok 5 # $a\n";
If I build it as a 32-bit app, I get:# Failed test ' <SOFTPKG>' # at t/basic.t line 83. # '<SOFTPKG NAME="Big-Dummy" VERSION="0.010000000000 +0000002081668171172169"> [...] # doesn't match '(?m-xis:^<SOFTPKG NAME="Big-Dummy" VERSION="0.01" +>)'
But as a 64-bit app, I get:./perl -e "$a=> perl -e '$a = 0.1; print "$a\n";' 0.1
I've done a lot of trial-and-error with the config flags and settings, but no luck so far. I've googled and googled till my googler was sore. Can you think of something I haven't before? Anything remotely helpful will be appreciated, lauded, and extolled beyond reasonable measure.> ./perl -e '$a = 0.1; print "$a\n";' 0.100000000000000005551115123125783
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 64-bit build fails numeric tests
by kennethk (Abbot) on Feb 01, 2010 at 17:03 UTC | |
by eshafto (Novice) on Feb 01, 2010 at 17:07 UTC | |
by kennethk (Abbot) on Feb 01, 2010 at 17:22 UTC | |
|
Re: 64-bit build fails numeric tests
by ikegami (Patriarch) on Feb 01, 2010 at 17:09 UTC | |
by syphilis (Archbishop) on Feb 02, 2010 at 13:45 UTC | |
by eshafto (Novice) on Feb 02, 2010 at 16:23 UTC |