Bug 2277631

Summary: Build failed for arch ppc64le: -fcf-protection=full not supported for this target
Product: [Fedora] Fedora Reporter: Gerald Cox <gbcox>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: dmalcolm, fweimer, jakub, jlaw, josmyers, jwakely, mcermak, mpolacek, msebor, nickc, nixuser, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-28 19:10:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2273810    

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!