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

Re: perl-5.37.1 breaks texinfo-6.8

Thread Previous | Thread Next
Uwe Düffert
July 7, 2022 22:49
Re: perl-5.37.1 breaks texinfo-6.8
Message ID:
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/ 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 may help you. I can provide a 
reduced test case - a single perl command from texinfo "in its natural 
environment" in

If I compile perl5.37.1 without -DDEBBUGGING like this:
above test case will result in
panic: locale.c: 835: Unexpected character in locale name '66 at 
tp/Texinfo/ 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

Uwe Düffert
Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About