Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1607158

Summary: Cross compile not working
Product: [Fedora] Fedora Reporter: Pablo Greco <pablo>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, bskeggs, ewk, hdegoede, ichavero, itamar, jarodwilson, jglisse, john.j5live, jonathan, josef, kernel-maint, labbott, linville, mchehab, mjg59, pbrobinson, steved
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: 2018-07-26 18:49:28 UTC Type: Bug
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: 245418    

Description Pablo Greco 2018-07-22 16:56:54 UTC
Description of problem:
After the commit of "Proper support for parallel debuginfo and hardening flags" https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/?id=edd5e6103200b85864a041ae99086bd37afa81d4
Cross compile of the kernel for armhfp doesn't work

How reproducible:
Always

Steps to Reproduce:
1. Download kernel src.rpm
2. Try to cross build rpmbuild -ba --target armv7hl --with=cross --without=perf --without=tools --without=debuginfo --without=pae --define="_arch arm" --define="_build_arch arm" --define="__strip /usr/bin/arm-linux-gnu-strip" --define "%_topdir `pwd`/" --define "dist .f29" SPECS/kernel.spec

Actual results:
Build fails with error
gcc: error: unrecognized argument in option '-mabi=aapcs-linux'

Expected results:
Kernel builds

Additional info:

Comment 1 Laura Abbott 2018-07-23 17:21:07 UTC
Pushed fix to master (technical details in git tree for those interested). This didn't make it into the -rc6 tree but it should be in the next snapshot. I'll leave the bug open for someone else to verify it's fixed.

Comment 2 Laura Abbott 2018-07-26 18:49:28 UTC
Confirmed via IRC that this is fixed