Bug 2277631 - Build failed for arch ppc64le: -fcf-protection=full not supported for this target
Summary: Build failed for arch ppc64le: -fcf-protection=full not supported for this ta...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2273810
TreeView+ depends on / blocked
 
Reported: 2024-04-28 18:58 UTC by Gerald Cox
Modified: 2024-04-29 13:17 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-28 19:10:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gerald Cox 2024-04-28 18:58:11 UTC
url: https://koji.fedoraproject.org/koji/buildinfo?buildID=2445800

Receiving build error on koji for this mpris-scrobbler.  Package building fine for
other arches.

Error received:

Opened a report to infrastructure:
https://pagure.io/fedora-infrastructure/issue/11899

They suggested I open a bug report:
It seems like upstream just added that flag and it may well not be supported on ppc64le either (along with aarch64). 



Reproducible: Always

Steps to Reproduce:
fedpkg build 
Actual Results:  
 	


    closed buildSRPMFromSCM (/rpms/mpris-scrobbler.git:33c22989476238a0cb449e64c173d1f3eb065aec)
    closed buildArch (mpris-scrobbler-0.5.2-1.fc41.src.rpm, i686)
    closed buildArch (mpris-scrobbler-0.5.2-1.fc41.src.rpm, x86_64)
    closed buildArch (mpris-scrobbler-0.5.2-1.fc41.src.rpm, aarch64)
    failed buildArch (mpris-scrobbler-0.5.2-1.fc41.src.rpm, ppc64le)

BuildError: error building package (arch ppc64le), mock exited with status 1; see build.log or root.log for more information



Expected Results:  
All builds complete with no errors

Comment 1 Gerald Cox 2024-04-28 19:00:45 UTC
Made severity high since this is blocking submission of updates to packages.

Comment 2 Jakub Jelinek 2024-04-28 19:10:49 UTC
As documented, -fcf-protection= option https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#index-fcf-protection is only supported on i686/x86_64 targets, not on any other target (like aarch64, s390x nor ppc64le in Fedora).
So, don't use it except on i686/x86_64.

Comment 3 Florian Weimer 2024-04-28 19:30:31 UTC
The flag for POWER is called -mrop-protect (more or less). The architecture variance is definitely confusing.

Comment 4 Gerald Cox 2024-04-29 13:17:06 UTC
(In reply to Jakub Jelinek from comment #2)
> As documented, -fcf-protection= option
> https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#index-fcf-
> protection is only supported on i686/x86_64 targets, not on any other target
> (like aarch64, s390x nor ppc64le in Fedora).
> So, don't use it except on i686/x86_64.

Thanks!  I'll advise upstream.

Comment 5 Gerald Cox 2024-04-29 13:17:56 UTC
(In reply to Florian Weimer from comment #3)
> The flag for POWER is called -mrop-protect (more or less). The architecture
> variance is definitely confusing.

Yes it is!  ;-)
Thanks for the info!


Note You need to log in before you can comment on or make changes to this bug.