Bug 746843

Summary: A small pair of gcc.spec fixes for armv7hl
Product: [Fedora] Fedora Reporter: Brendan Conoboy <blc>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: henrik, jakub
Target Milestone: ---   
Target Release: ---   
Hardware: arm   
OS: Linux   
Whiteboard:
Fixed In Version: gcc-4.6.2-1.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-29 06:32:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Adds armv7hl configurey to gcc.spec
none
Updated armv7hl configure flags none

Description Brendan Conoboy 2011-10-17 22:50:40 UTC
Description of problem:

The current gcc.spec in Fedora 15 and beyond need a couple patches to correctly build the armv7hl-redhat-linux-gnueabi gcc package.

Version-Release number of selected component (if applicable):

This is applicable to gcc 4.6.1.  The patch is vs the spec file in koji's gcc-4.6.1-10.fc16.src.rpm

Additional info:

This patch does 2 things:

1. Adds the -gnueabi string to the target triplet for arm targets.

2. Adds the specific configuration options for armv7hl hosts.  This is different from any previous Fedora arm gcc because F15/gcc 4.6 is the firs release to use the new hard float ABI.

Comment 1 Brendan Conoboy 2011-10-18 15:59:17 UTC
Created attachment 528841 [details]
Adds armv7hl configurey to gcc.spec

Adds armv7hl configurey to gcc.spec

Comment 2 Brendan Conoboy 2011-10-18 21:55:47 UTC
It's been pointed out to me that the first part of the patch might be unnecessary as _gnu doesn't appear to be used at this time.  Perhaps just the second half of the patch will be sufficient.

Comment 3 Henrik Nordström 2011-10-18 22:57:47 UTC
The line

   --build=armv7hl-redhat-linux-gnueabi --host=armv7hl-redhat-linux-gnueabi --target=armv7hl-redhat-linux-gnueabi

is redundant and not needed.

Redefiniiton of _gnu to -gnueabi is missing. Default is just -gnu

Comment 4 Henrik Nordström 2011-10-18 23:21:50 UTC
Created attachment 528906 [details]
Updated armv7hl configure flags

Updated gcc.spec patch.

and turns out _gnu is in fact defined properly by rpm. No need to redefine for arm.

Comment 5 Fedora Update System 2011-10-27 20:03:32 UTC
gcc-4.6.2-1.fc16,libtool-2.4-7.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/gcc-4.6.2-1.fc16,libtool-2.4-7.fc16

Comment 6 Fedora Update System 2011-10-28 21:32:16 UTC
Package gcc-4.6.2-1.fc16, libtool-2.4-7.fc16, gcc-python-plugin-0.6-4.2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gcc-4.6.2-1.fc16 libtool-2.4-7.fc16 gcc-python-plugin-0.6-4.2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-15040
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2011-10-29 06:32:41 UTC
gcc-4.6.2-1.fc16, libtool-2.4-7.fc16, gcc-python-plugin-0.6-4.2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.