develooper Front page | perl.perl5.porters | Postings from July 2022

Re: perl-5.37.1 breaks texinfo-6.8

Thread Previous | Thread Next
From:
Uwe Düffert
Date:
July 7, 2022 22:49
Subject:
Re: perl-5.37.1 breaks texinfo-6.8
Message ID:
alpine.DEB.2.21.2207080027470.1255@uwe-dueffert.de
Dear Karl / perl5-porters,

On Tue, 5 Jul 2022, Karl Williamson wrote:

> On 7/2/22 05:20, Uwe Düffert wrote:
>> 
>> -----------------------------------------------------------------
>> perl-5.37.1 breaks texinfo-6.8.
>> The error occurring is "Unexpected character in locale name 'XY at 
>> ../tp/Texinfo/Report.pm line 320." with XY being random. This breaks 
>> texinfo build and later on on a system using it, it e.g. breaks building 
>> binutils-2.38 too.
>> 
>> Under exactly same conditions (same machine, environment, build 
>> instructions), there is no problem with perl-5.37.0 (or earlier). You can 
>> even switch back and forth: Build and install perl-5.37.0 (or earlier) and 
>> building texinfo+binutils works fine, build and install perl-5.37.1 and 
>> building texinfo+binutils fails with above error. Repeatably.
>> 
>
> The error message is new in 5.37.1.  I can work on this if you add 
> -DDEBBUGGING to your Configure options; then when you run whatever command 
> that causes this to fail, say it is a make, do
>
> PERL5OPT=-DLv make ...
>
> If the failing command is perl, you can just say
>
> perl -DLv ...
I appreciate your input and I tried really hard. But: No, that will not 
help you to work on this. Because: Adding -DDEBBUGGING to the build of 
perl-5.37.1 will make the problem go away. Well reproducibly for me.

So instead, I believe the material on 
https://uwe-dueffert.de/code/perl5.37.1/ may help you. I can provide a 
reduced test case - a single perl command from texinfo "in its natural 
environment" in
https://uwe-dueffert.de/code/perl5.37.1/texinfo-6.8_doc_problem.tar.xz

If I compile perl5.37.1 without -DDEBBUGGING like this: 
https://uwe-dueffert.de/code/perl5.37.1/140_perl.sh
above test case will result in
panic: locale.c: 835: Unexpected character in locale name '66 at 
tp/Texinfo/Report.pm line 320.

If I compile perl5.37.0 or earlier or perl5.37.1 with -DDEBBUGGING, above 
test case will output no error and instead create *.info files as desired.

I can repeat both arbitrarily often (with no other change), see e.g. 
example build logs in https://uwe-dueffert.de/code/perl5.37.1/

Regards
Uwe Düffert
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