develooper Front page | perl.perl5.porters | Postings from January 2018

Re: [perl #128627] Quadmath builds fail on Cygwin in ext/POSIX

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
January 7, 2018 13:51
Subject:
Re: [perl #128627] Quadmath builds fail on Cygwin in ext/POSIX
Message ID:
CAHhgV8hMLXON=9jD-WLCkx2_UkCr_kNn0+ArSMvf6V_mijdkrw@mail.gmail.com
On Fri, Dec 15, 2017 at 12:42 PM, (Peter J. Acklam) via RT
<perlbug-followup@perl.org> wrote:
> I have attached a patch that fixes this. With the patch I am able to build Perl with quadmath support on Cygwin. Woohoo!
>
> ---
> via perlbug:  queue: perl5 status: new
> https://rt.perl.org/Ticket/Display.html?id=128627
>
> diff -c -r perl-5.27.6/ext/POSIX/Makefile.PL perl-5.27.6-patched/ext/POSIX/Makefile.PL
> *** perl-5.27.6/ext/POSIX/Makefile.PL   2017-10-27 03:58:42.000000000 +0200
> --- perl-5.27.6-patched/ext/POSIX/Makefile.PL   2017-12-15 11:27:45.658871300 +0100
> ***************
> *** 20,25 ****
> --- 20,28 ----
>   if ($^O eq 'aix' && $Config{uselongdouble}) {
>       push @libs, qw(c128);
>   }
> + if ($^O eq 'cygwin' && $Config{usequadmath}) {
> +     push @libs, qw(quadmath);
> + }
>   WriteMakefile(
>       NAME      => 'POSIX',
>       @libs ? ( 'LIBS' => [ join(" ", map { "-l$_" } @libs) ] ) : (),

This rather feels like wallpaper covering a hole in the wall.
-lquadmath is in perllibs/libs so this should have been added by
MakeMaker already. My best guess is that quadmath.dll isn't in a
location that is found by LibList, and hence it's omitted.

Could you look up where the quadmath.dll is for your compiler, and if
it is in any of the paths in libpth (perl -V:libpth)?

Leon

Thread Previous | Thread Next


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