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

[perl #133803] ExtUtils-MakeMaker in perl 5.28 armv5te fails

Thread Previous
Aaro Koskinen via RT
July 4, 2019 02:20
[perl #133803] ExtUtils-MakeMaker in perl 5.28 armv5te fails
Message ID:
On Tue, 25 Jun 2019 15:27:08 -0700, wrote:
> On Tue, 05 Feb 2019 20:18:43 -0800, tonyc wrote:
> > Inside the perl build directory please run:
> >
> > ./miniperl -Mversion -e0
> >
> > Please include everything that outputs if it fails.
> I have this same issue when trying to build stock 5.28 (or .30) Perl
> on armv5tel (Linux v5.1, GCC 8.3.0, glibc 2.29).
> perl-5.30.0$ ./miniperl -I./cpan/version/lib -I./lib -Mversion -e0
> Can't use string ("version::regex::LAX_DOTTED_DECIM"...) as a SCALAR
> ref while "strict refs" in use at cpan/version/lib/ line 21.
> Compilation failed in require.
> BEGIN failed--compilation aborted.

This issue seems to be caused by wrong alignment causing unexpected behaviour. Running Configure with -Dd_u32align makes the build succeed.

The Configure alignment test produces wrong result for ARMv5t with modern GCC:

    Checking to see whether you can access character data unalignedly...
    (Testing for character data alignment may crash the test.  That's okay.)
    You can access character data pretty unalignedly.

The issue is seen on other platforms as well, e.g. SPARC (see #133495) and PA-RISC, where miniperl fails with SIGBUS.

via perlbug:  queue: perl5 status: open

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