develooper Front page | perl.perl5.porters | Postings from November 2014

[perl #123113] [PATCH] Add optional GCC-only support for using long doubles on Win32

Thread Previous
From:
Steve Hay
Date:
November 3, 2014 08:55
Subject:
[perl #123113] [PATCH] Add optional GCC-only support for using long doubles on Win32
Message ID:
rt-4.0.18-8201-1415004936-476.123113-75-0@perl.org
# New Ticket Created by  Steve Hay 
# Please include the string:  [perl #123113]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=123113 >


The attached patch attempts to add optional GCC-only support for using long doubles on Win32, but doesn't quite work and I can't figure out why not. When building with the command "dmake USE_LONG_DOUBLE=define" we get a miniperl.exe created, but when it is used to run the command "..\miniperl.exe -I..\lib -f ..\write_buildcustomize.pl .." it fails like this:

Invalid version format (negative version number) at lib/vars.pm line 3.
BEGIN failed--compilation aborted at lib/vars.pm line 3.
Compilation failed in require at dist/PathTools/lib/File/Spec.pm line 4.
BEGIN failed--compilation aborted at dist/PathTools/lib/File/Spec.pm line 4.
Compilation failed in require at dist/PathTools/lib/File/Spec/Functions.pm line 3.
BEGIN failed--compilation aborted at dist/PathTools/lib/File/Spec/Functions.pm line 3.
Compilation failed in require at ..\write_buildcustomize.pl line 49.
dmake:  Error code 255, while making '..\lib\buildcustomize.pl'

This "Invalid version format" error is typical of messing up the floating point routines (stringify/numify), but I haven't figured out exactly what the problem is yet. I'm recording what I've got so far in this ticket so that it doesn't get lost.
Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About