Bug 586835

Summary: Support for building MIPS binary (with Loongson CPU fix)
Product: [Fedora] Fedora Reporter: Fai Wong <ywong>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: aravindvijayan224185, bbbush.yuan, jakub, moe, sergio
Target Milestone: ---   
Target Release: ---   
Hardware: mips64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-28 04:58:09 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:
Attachments:
Description Flags
modified gcc.spec for gcc-4.4.3-4.fc12
none
/usr/lib/rpm/platform/mips64el-linux/macro for rpm-4.7.1-6.fc12
none
/usr/lib/rpm/redhat/rpmrc for redhat-rpm-config-9.0.3-18.fc12
none
spec file for glibc-2.11.1-1.ls2f
none
glibc-2.11.1-fedora-mips.patch required for building glibc for MIPS
none
binutils.spec for binutils-2.19.51.0.14-34.fc12
none
required patch for building binutils for MIPS
none
required patch for building binutils for MIPS none

Description Fai Wong 2010-04-28 12:59:33 UTC
Description of problem:
Current gcc RPM doesn't have MIPS architecture support, if one want to build MIPS system based on Fedora, there is not enough tools and libraries for that.
Some modifications needed for making gcc RPM on MIPS architecture, including compiling options and spec file changes.
The attached files are based on Fedora 12.
gcc.spec - spec file for gcc 4.4.3-4.fc12
macro - /usr/lib/rpm/platform/mips64el-linux/macro for rpm 4.7.1-6.fc12
rpmrc - /usr/lib/rpm/redhat/rpmrc for redhat-rpm-config 9.0.3-18.fc12

Comment 1 Fai Wong 2010-04-28 13:02:38 UTC
Created attachment 409815 [details]
modified gcc.spec for gcc-4.4.3-4.fc12

Comment 2 Fai Wong 2010-04-28 13:04:03 UTC
Created attachment 409817 [details]
/usr/lib/rpm/platform/mips64el-linux/macro for rpm-4.7.1-6.fc12

Comment 3 Fai Wong 2010-04-28 13:04:43 UTC
Created attachment 409818 [details]
/usr/lib/rpm/redhat/rpmrc for redhat-rpm-config-9.0.3-18.fc12

Comment 4 Fai Wong 2010-04-28 13:16:33 UTC
Created attachment 409822 [details]
spec file for glibc-2.11.1-1.ls2f

glibc-ports is required to build

Comment 5 Fai Wong 2010-04-28 13:17:11 UTC
Created attachment 409823 [details]
glibc-2.11.1-fedora-mips.patch required for building glibc for MIPS

Comment 6 Fai Wong 2010-04-28 13:18:01 UTC
Created attachment 409825 [details]
binutils.spec for binutils-2.19.51.0.14-34.fc12

Comment 7 Fai Wong 2010-04-28 13:18:26 UTC
Created attachment 409826 [details]
required patch for building binutils for MIPS

Comment 8 Fai Wong 2010-04-28 13:18:46 UTC
Created attachment 409827 [details]
required patch for building binutils for MIPS

Comment 9 Bug Zapper 2010-07-30 11:30:03 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 10 Jeff Moe (jebba) 2010-10-18 18:01:22 UTC
I submitted a similar MIPS RPM macro patch upstream. See:
http://rpm.org/ticket/186

Also, you may have better luck if you submit the binutils patches under a binutils ticket and glibc patches under a glibc ticket than having them all here. The binutils/glibc maintainers may not see them here.

Comment 11 Aravind vijayan 2011-12-28 04:58:09 UTC
    Thank you for your bug report. 

    We are sorry, but the Fedora Project is no longer releasing bug fixes or any other updates for this version of Fedora. This bug will be set to CLOSED:WONTFIX to reflect this, but please reopen it if the problem persists after upgrading to the latest version of Fedora, which is available from: 

    http://fedoraproject.org/get-fedora 



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers