Skip to content

perl 5.32 doesn't builds on Cygwin with quadmath support #17902

Open
@pjacklam

Description

@pjacklam

Something happened between 5.31.11 and 5.32 that causes perl to no longer build on Cygwin with quadmath support.

Here is what I used to build perl. The compiler is one I compiled myself, since Configure is not able to detect the quadmath library if I use the standard Cygwin compiler.

tar axf ../perl-5.32.0.tar.xz || exit
mkdir -p objdir || exit
cd objdir || exit
export PATH=/usr/site/gcc-9.3.0/bin:/usr/bin
../perl-5.32.0/Configure -de -Dmksymlinks -Dusequadmath
make

Here is the end of the output from make

/usr/bin/ld: ListUtil.o:ListUtil.c:(.text+0x3fc4): undefined reference to `_floorq'
/usr/bin/ld: ListUtil.o:ListUtil.c:(.text+0x4024): undefined reference to `_ceilq'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:483: ../../lib/auto/List/Util/Util.dll] Error 1
make[1]: Leaving directory '/cygdrive/c/share/src/perl/dist/i686/objdir/cpan/Scalar-List-Utils'
make[1]: Entering directory '/cygdrive/c/share/src/perl/dist/i686/objdir/cpan/Scalar-List-Utils'
/cygdrive/c/share/src/perl/dist/i686/objdir/cpan/Scalar-List-Utils/../../miniperl "-I../../lib" -MExtUtils::Command::MM -e 'cp_nonempty' -- Util.bs ../../lib/auto/List/Util/Util.bs 644
rm -f ../../lib/auto/List/Util/Util.dll
g++  --shared  -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector-strong  ListUtil.o  -o ../../lib/auto/List/Util/Util.dll  \
  ../../cygperl5_32_0.dll    \

/usr/bin/ld: ListUtil.o:ListUtil.c:(.text+0x3fc4): undefined reference to `_floorq'
/usr/bin/ld: ListUtil.o:ListUtil.c:(.text+0x4024): undefined reference to `_ceilq'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:483: ../../lib/auto/List/Util/Util.dll] Error 1
make[1]: Leaving directory '/cygdrive/c/share/src/perl/dist/i686/objdir/cpan/Scalar-List-Utils'
Unsuccessful make(cpan/Scalar-List-Utils): code=512 at make_ext.pl line 588.
make: *** [GNUmakefile:587: lib/auto/List/Util/Util.dll] Error 2

The problem is in the CPAN distribution Scalar-List-Utils, but creating issues seems to have been disabled for that distribution.

This issue seems related to #15443 and #17708

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions