Bug 1255947

Summary: add little endian powerpc targets
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: cross-binutilsAssignee: David Howells <dhowells>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: benh, dan, dhowells, nickc
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cross-binutils-2.25.1-2.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-19 18:26:43 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: 1255946    

Description Dan Horák 2015-08-22 07:13:26 UTC
Per discussion on #fedora-ppc it seems the current cross-{binutils,gcc} lack the little endian powerpc targets, please add them.

<benh> hey
<benh> somebody knows if the ppc64 cross compile in x86 fedora can do LE ?
<benh> powerpc64-linux-gnu-ld: unrecognised emulation mode: elf64lppc
<benh> Supported emulations: elf64ppc elf32ppc elf32ppclinux elf32ppcsim
<sharkcz> benh: hi, yes, the cross binutils/gcc spec files have no mention about LE as target, can you please open a bug to add it?
<benh> sharkcz: it works if I just use -m elf64ppc and -EL
<benh> sharkcz: so not sure it's actually a problem, but it's certainly a difference vs. what's in ubuntu
<sharkcz> the native LE ld lists ld: supported emulations: elf64lppc elf32lppc elf32lppclinux elf32lppcsim elf32_spu elf32ppclinux elf32ppc elf32ppcsim elf64ppc - so I think we should add LE as a target to the cross-tools too
<sharkcz> does it understand ELFv2 in the current state?
<benh> sharkcz: it seems to, my stuff works once built
<benh> sharkcz: but yeah it looks like it should still probably be fixed

Comment 1 David Howells 2015-08-24 14:20:42 UTC
Patch 14 in the main binutils package is applied only if a ppc64le package is being built.  But since its effects are only felt if the LD_FORCE_LE envvar is set, that shouldn't be a problem - but it *will* also affect non-ppc64le arches if that is set.

Other than that, there doesn't seem to be anything that would prevent me from creating a ppc64le-capable binutils.  cross-gcc is another matter, but I'll deal with that in bug 1255946.

Comment 2 David Howells 2015-08-24 14:39:31 UTC
(In reply to David Howells from comment #1)
> Other than that, there doesn't seem to be anything that would prevent me
> from creating a ppc64le-capable binutils.  cross-gcc is another matter, but
> I'll deal with that in bug 1255946.

Actually, there's nothing else, not even in gcc.  I'm confusing this with another binutils cross-compiler for RHEL.

Comment 3 David Howells 2015-08-24 15:18:33 UTC
Do we have a preference for making one powerpc binutils/gcc that does both, or separate BE and LE ones?

Comment 4 Fedora Update System 2015-08-25 13:32:01 UTC
cross-binutils-2.25.1-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14239

Comment 5 Fedora Update System 2015-08-26 04:25:08 UTC
cross-binutils-2.25.1-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update cross-binutils'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14239

Comment 6 Fedora Update System 2015-12-10 14:22:59 UTC
cross-binutils-2.25.1-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-bf5de08226

Comment 7 Fedora Update System 2015-12-11 06:01:17 UTC
cross-binutils-2.25.1-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update cross-binutils'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-bf5de08226

Comment 8 Fedora Update System 2015-12-19 18:26:36 UTC
cross-binutils-2.25.1-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.