Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: How to build perl-5.32.0 (or later) with ivsize of 4 on Ubuntu-20.04 ?

by syphilis (Archbishop)
on Jan 07, 2021 at 08:58 UTC ( [id://11126515]=note: print w/replies, xml ) Need Help??


in reply to Re: How to build perl-5.32.0 (or later) with ivsize of 4 on Ubuntu-20.04 ?
in thread How to build perl-5.32.0 (or later) with ivsize of 4 on Ubuntu-20.04 ?

you are missing gcc's 32-bit dependencies

Yes - and I'm not really interested in building such a perl if I need additional downloads to do it.

I've implemented USE_QUADMATH capability on Windows. There's nothing public yet, but I should be in a position to submit a PR in the next couple of days.
I've been testing all of the various nvtype/ivtype permutations with 32-bit and 64-bit compilers, and they're all fine .... except for one.
On Windows, with a 32-bit gcc, I can build blead with ivsize=4 and nvtype=__float128 - and it's failing a few Math::BigInt/BigFloat tests.
There's no problem with any of the other available nvtype/ivtype permutations - it's just this one (very rare) configuration that's being a bit of a nuisance.

I suspect it's a Math::BigInt/BigFloat bug, but it could also be a bug in my amendments to the perl source.
For reference, it would be nice to see how a __float128 build with an ivsize of 4, fares on Ubuntu.
The 2 systems I have that do permit the -m32 switch don't provide libquadmath.

Cheers,
Rob

Replies are listed 'Best First'.
Re^3: How to build perl-5.32.0 (or later) with ivsize of 4 on Ubuntu-20.04 ?
by syphilis (Archbishop) on Jan 16, 2021 at 12:09 UTC
    I suspect it's a Math::BigInt/BigFloat bug

    My suspicion was correct.
    I dug into it a bit, and came up with this Math::BigInt PR, though I don't know if that's the optimal fix.
    As mentioned in that PR, I subsequently noticed that there did already exist other builds of perl where ivsize=4 and nvtype was __float128, and that they were also striking the same Math::BigInt test failures as I was seeing.
    (For example, https://www.cpantesters.org/cpan/report/2737c762-6c8c-1014-a5db-5bbf06c191b3 )

    There has been no response to that PR yet. I'll file an Issue against perl5 itself if there has been no response to it by the end of next week.

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11126515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-03-28 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found