Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 688432

Summary: dev-lang/perl-5.28.2-r1 fails to build on armv5te with gcc-8.3.0-r1
Product: Gentoo Linux Reporter: Christoph Junghans (RETIRED) <junghans>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: nemunaire, z.lstiburek
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
environment
build-5.30.0.log

Description Christoph Junghans (RETIRED) gentoo-dev 2019-06-21 12:43:26 UTC
Created attachment 580284 [details]
build.log

Building perl-5.28.2-r1 with gcc-8.3.0-r1 on my armv5te fails with:

Can't locate ExtUtils/MakeMaker/version/vpp.pm in @INC (you may need to install the ExtUtils::MakeMaker::version::vpp module)

Compiling perl-5.28.2-r1 with gcc-7.3.0-r3 works fine.
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2019-06-21 12:44:09 UTC
Created attachment 580286 [details]
environment
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2019-07-14 19:13:24 UTC
@everyone, 

as a data point when talking to upstream, could you please test if this failure still happens with perl-5.30.0 ?

You dont need to actually install perl-5.30.0 for that; it's enough if you run

ebuild /usr/portage/dev-lang/perl/perl-5.30.0.ebuild clean test
Comment 3 Pierre-Olivier Mercier 2019-07-21 14:17:36 UTC
I got the same error when compiling perl-5.30.0 with gcc-8.3.0-r1 (don't have gcc-7 anymore on my armv5 host to test).
Comment 4 Pierre-Olivier Mercier 2019-07-21 14:18:39 UTC
Created attachment 583926 [details]
build-5.30.0.log
Comment 5 James McMechan 2019-09-15 20:49:55 UTC
I have had some success with
EXTRA_ECONF="-Dd_u32align" emerge -av1 perl
from https://rt.perl.org/Public/Bug/Display.html?id=133803
Apparently gcc optimizes out the endian/alignment tests from ./configure
And the bug was rejected by gc as invalid since unaligned access has undefined behaviour.

I am more than slightly irked as the gcc people are engaged in such aggressive optimization that it has been breaking things for a while.
I would like to have a "C" compiler, one that does not require c++
or keep changing things that have worked for years because you can move it to undefined.
Comment 6 Larry the Git Cow gentoo-dev 2019-10-16 12:35:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44dca7fe88de3c6b1ea877f977313eda3fbd0831

commit 44dca7fe88de3c6b1ea877f977313eda3fbd0831
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2019-10-16 12:33:35 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2019-10-16 12:35:09 +0000

    dev-lang/perl: Add alignment fix also for armv5te, bug 688432
    
    Closes: https://bugs.gentoo.org/688432
    Package-Manager: Portage-2.3.76, Repoman-2.3.17
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 dev-lang/perl/perl-5.28.2-r1.ebuild | 8 +++++---
 dev-lang/perl/perl-5.30.0.ebuild    | 8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)
Comment 7 Larry the Git Cow gentoo-dev 2020-08-11 00:03:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b817af0802a4cb04162962038deabc1bd309c7

commit e9b817af0802a4cb04162962038deabc1bd309c7
Author:     Kent Fredric <kentnl@gentoo.org>
AuthorDate: 2020-08-11 00:02:30 +0000
Commit:     Kent Fredric <kentnl@gentoo.org>
CommitDate: 2020-08-11 00:02:30 +0000

    dev-lang/perl: Remove unaligned access direction workaround
    
    As its been indicated that this detection has been fixed upstream in
    perl since 5.31.5, and the workaround should no longer be needed
    
    Bug: https://bugs.gentoo.org/676062
    Bug: https://bugs.gentoo.org/688432
    Bug: https://github.com/Perl/perl5/issues/16828
    Bug: https://github.com/Perl/perl5/issues/16680
    Commit: https://github.com/perl/perl5/commit/ee9ac1cd8eb988fea70841eae211b11355711416
    Commit: https://github.com/perl/perl5/commit/e8864dba80952684bf3afe83438d4eee0c3939a9
    Package-Manager: Portage-2.3.103, Repoman-2.3.22
    Signed-off-by: Kent Fredric <kentnl@gentoo.org>

 dev-lang/perl/perl-5.32.0-r1.ebuild | 8 --------
 dev-lang/perl/perl-5.32.0.ebuild    | 8 --------
 2 files changed, 16 deletions(-)