Bug 746843 - A small pair of gcc.spec fixes for armv7hl
Summary: A small pair of gcc.spec fixes for armv7hl
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 15
Hardware: arm
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-17 22:50 UTC by Brendan Conoboy
Modified: 2011-10-29 06:32 UTC (History)
2 users (show)

Fixed In Version: gcc-4.6.2-1.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-29 06:32:41 UTC
Type: ---


Attachments (Terms of Use)
Adds armv7hl configurey to gcc.spec (904 bytes, patch)
2011-10-18 15:59 UTC, Brendan Conoboy
no flags Details | Diff
Updated armv7hl configure flags (527 bytes, patch)
2011-10-18 23:21 UTC, Henrik Nordström
no flags Details | Diff

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.


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