-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perl 5.40 cpan | Win32::Console::ANSI failing #185
Comments
Win32::Console::ANSI is a dependency of Data::Printer. |
A portable Strawberry Perl 5.40-RC1 can be downloaded from https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/tag/dev_5.40.0_RC1_UCRT |
I think it could well be that Win32::Console::ANSI needs some amendment in order to accommodate UCRT.
When I use my own 5.39.10 (UCRT) to build Win32::Console::ANSI, I get this test report:
I get the same report on all of my UCRT builds of perl going back to 5.39.2 (when I first started using the UCRT compiler). Who among us has the expertise to deal with this ? Incidentally, I notice that the additional ccflags that were added to SP-5.38.2 (via the "OPTIMIZE" spec) are no longer present. |
It could also be that the windows console has changed and the module needs to be updated. Both my tests were on Win 11, FWIW. I'll try on a windows 10 machine when I get a chance.
Thanks for spotting that. They will be in the next version. |
I haven't investigated the There's a ticket with a patch: https://rt.cpan.org/Public/Bug/Display.html?id=132827 However, the patch is broken (it segfaults because it uses |
Thanks @xenu. That patch works as described. If we can get |
Yep - @xenu's patch fixes the new failures on perls built with gcc-13 or (presumably) earlier.
(Unless my eyes deceived me, we don't even get a warning about that with gcc-13.) |
Thanks @sisyphus. I've added that to the locally patched version. |
I've uploaded the patched version to https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/tag/patched_cpan_modules Installation can use the usual idiom for one's favourite CPAN client, which for cpanm is:
Or, given there is still one failing test:
|
I still have not worked out what the failing test actually tests, and therefore if it matters. Data::Printer is the only reverse dep I am aware of that is part of Strawberry Perl. A quick check with Data::Printer using older versions of Strawberry Perl suggests the output has not commonly been coloured anyway, at least not in a Cmd prompt. Given that I'll skip the failing test in the build process. A caveat is that the list of reverse deps on metacpan is incomplete given D::P is not present, so there may be other conditional deps. |
Win32::Console::ANSI is failing many of its tests when building perl 5.40 RC1, and also 3.39.10.
This might be related to the build machine which is different to the one used for the 5.38 and 5.36 releases. The main difference is Windows 11 vs Windows 10.
These builds of perl also use UCRT instead of MSVCRT.
CPAN testers has many fails but not the same set of tests. http://matrix.cpantesters.org/?dist=Win32-Console-ANSI+1.11
Is anyone else able to reproduce these errors?
The text was updated successfully, but these errors were encountered: