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

Bug 895080

Summary: =dev-lang/perl-5.36.0-r1 fails to build with -Og (or other low optimization levels) w/ gcc-12 "error: inlining failed in call to 'always_inline' [...]: function not considered for inlining"
Product: Gentoo Linux Reporter: Étienne Buira <etienne.buira>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: UNCONFIRMED ---    
Severity: normal CC: etienne.buira
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/Perl/perl5/issues/19776
https://github.com/Perl/perl5/pull/20562
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107931
https://bugs.gentoo.org/show_bug.cgi?id=902075
https://bugs.gentoo.org/show_bug.cgi?id=896444
https://bugs.gentoo.org/show_bug.cgi?id=911727
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 839906    
Attachments: build.log

Description Étienne Buira 2023-02-17 09:47:27 UTC
Perl fails to build with many errors like in $subject.
As a side-node, the build happens in a chroot (made like for installation).

Reproducible: Always

Steps to Reproduce:
1.emerge =dev-lang/perl-5.36.0-r1
2.
3.
Actual Results:  
C compiler errors out

Expected Results:  
Successful merge
Comment 1 Étienne Buira 2023-02-17 09:49:08 UTC
Created attachment 851994 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-17 09:50:13 UTC
Please also include emerge --info if not already working on it.

Anyway, this is because of -Og. It's a valid bug that should be sent upstream (could you do it please?) but it's quite common when people use always_inline incorrectly.
Comment 3 Étienne Buira 2023-02-17 10:00:48 UTC
Thanks, trying with -O2
An upstream ticket already exists on this matter (#19776), and resolved by pull request #20562, didn't try this patch.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-17 10:14:36 UTC
(In reply to Étienne Buira from comment #3)
> Thanks, trying with -O2
> An upstream ticket already exists on this matter (#19776), and resolved by
> pull request #20562, didn't try this patch.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-17 10:17:01 UTC
(In reply to Sam James from comment #4)
> (In reply to Étienne Buira from comment #3)
> > Thanks, trying with -O2
> > An upstream ticket already exists on this matter (#19776), and resolved by
> > pull request #20562, didn't try this patch.

oops, didn't write anything: thank you!