lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Jun 16, 2015 at 5:10 PM, Daurnimator <quae@daurnimator.com> wrote:
On 17 June 2015 at 09:56, James Chang <jcchang92@gmail.com> wrote:
> On Tue, Jun 16, 2015 at 4:40 PM, Daurnimator <quae@daurnimator.com> wrote:
>> Sounds like your libc's `strtod` routine doesn't handle hex floating
>> point numbers.
>> What arch + distro are you using?
>
>
> I'm using solaris, both x86 and sparc (big-endian).
>

I found this post which seems to confirm your issue:
http://grokbase.com/t/perl/perl5-porters/1482874b1r/perl-122219-support-hexadecimal-floats#20140805amjbq5ccdqf65fqz4qxkssysf4

> In Solaris 10, strtod must be in "c99 mode" for the hexfloats to be recognized. (strtold is always in this mode). The "c99 mode' is achieved by using "c99" as the Solaris Studio compiler (driver), instead of "cc".
> In Solaris 9 (or earlier), there is no support for hexfloats. (Not blaming Solaris in particular: I'm pretty certain many older OS releases will be similarly C99-unsupportive.)
> If one is not using Solaris Studio cc (something beginning with g, maybe), one can live dangerously and explicitly link in either of /usr/lib/{32,64}/values-xpg6.o and get the "c99 strtod". Dangerous living because probably many other things get "upgraded", too.

I am using c99, but now I'm trying to upgrade to 5.3.1 and am getting:

$(@D)/src/lua: db.lua:385: assertion failed!
stack traceback:
       [C]: in function 'assert'
       db.lua:385: in hook '?'
       db.lua:377: in local 'foo'
       db.lua:392: in main chunk
       (...tail calls...)
       all.lua:154: in main chunk
       [C]: in ?
>>> closing state <<<


WEIRD

James