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 1377795 - Add support for MIPS
Summary: Add support for MIPS
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: mips64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: MIPS
TreeView+ depends on / blocked
 
Reported: 2016-09-20 15:29 UTC by Michal Toman
Modified: 2016-09-22 11:32 UTC (History)
10 users (show)

Fixed In Version: glibc-2.24.90-8.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-22 11:32:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Add-support-for-MIPS.patch (2.10 KB, patch)
2016-09-20 15:29 UTC, Michal Toman
no flags Details | Diff
Add-support-for-MIPS.patch (2.10 KB, patch)
2016-09-20 15:32 UTC, Michal Toman
no flags Details | Diff

Description Michal Toman 2016-09-20 15:29:19 UTC
Created attachment 1202949 [details]
Add-support-for-MIPS.patch

Description of problem:
We are trying to bring Fedora to MIPS platform and this requires adding MIPS support to glibc SPEC. Upstream glibc has all the necessary bits, no extra patches are required.

Actual results:
Build fails because glibc SPEC is MIPS-unaware.

Expected results:
Build passes.

Additional info:
Attaching dist-git patch. It would be nice to have this in F25 as well.

Comment 1 Michal Toman 2016-09-20 15:32:59 UTC
Created attachment 1202950 [details]
Add-support-for-MIPS.patch

Fix typo in the original patch

Comment 2 Florian Weimer 2016-09-20 15:48:04 UTC
Is there an upstream bug for this issue?

+# Without -mrelax-pic-calls ld.so segfaults when built with -O3
+BuildFlags="-march=mips64r2 -mabi=64 -mrelax-pic-calls"

Comment 3 Michal Toman 2016-09-20 16:41:58 UTC
I have discussed this with Imagination Technologies (they did actually suggest the -mrelax-pic-calls) and they are tracking it internally, investigating whether glibc itself should be fixed or whether some GCC optimization failed. For yet unknown reasons 64-bit little-endian MIPS is the only target where '__builtin_memset' does not get inlined with -O3. The issue will be taken upstream if GCC is not to blame.

The problem has already been addressed in 2002 though:
https://www.sourceware.org/ml/libc-alpha/2002-02/msg00085.html

Comment 4 Florian Weimer 2016-09-22 11:18:34 UTC
(In reply to Michal Toman from comment #3)
> I have discussed this with Imagination Technologies (they did actually
> suggest the -mrelax-pic-calls) and they are tracking it internally,
> investigating whether glibc itself should be fixed or whether some GCC
> optimization failed. For yet unknown reasons 64-bit little-endian MIPS is
> the only target where '__builtin_memset' does not get inlined with -O3. The
> issue will be taken upstream if GCC is not to blame.
> 
> The problem has already been addressed in 2002 though:
> https://www.sourceware.org/ml/libc-alpha/2002-02/msg00085.html

Okay, please file an upstream bug for this issue.  Thanks.


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