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 722406

Summary: ./configure needs to pass --host ...-linux-gnueabi when building for ARM
Product: [Fedora] Fedora Reporter: Niels de Vos <ndevos>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: fweimer, jakub, pbrobinson, schwab
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: arm7   
OS: Linux   
Whiteboard:
Fixed In Version: glibc-2.14.90-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-26 11:54:19 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:
Bug Depends On:    
Bug Blocks: 245418    
Attachments:
Description Flags
pass "--host %{nptl_target_cpu}-redhat-linux-gnueabi" to ./configure none

Description Niels de Vos 2011-07-15 08:57:06 UTC
Created attachment 513341 [details]
pass "--host %{nptl_target_cpu}-redhat-linux-gnueabi" to ./configure

Description of problem:
glibc can currently not be built on ARM platforms.


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


How reproducible:

Steps to Reproduce:
1. arm-koji build --scratch --skip-tag dist-f14 'git://pkgs.fedoraproject.org/glibc?#538b3c089927e05128e8030e3c57ac318187dd5e'
  
Actual results:
Build fails with the following errors:

> make -s subdir=math -C math ..=../ subdir_lib
> make[2]: Entering directory `/builddir/build/BUILD/glibc-2.14-58-g2c0e54f/math'
> mkdir /builddir/build/BUILD/glibc-2.14-58-g2c0e54f/build-armv5tel-linuxnptl/math
> /tmp/ccF0m9yg.s: Assembler messages:
> /tmp/ccF0m9yg.s:41: Error: selected processor does not support `rfs r1'
> /tmp/ccF0m9yg.s:54: Error: selected processor does not support `wfs r3'
> make[2]: *** [/builddir/build/BUILD/glibc-2.14-58-g2c0e54f/build-armv5tel-linuxnptl/math/setfpucw.o] Error 1


Expected results:

Build continues.
Note that there are some other issues that need to be solved as well, separate bugs will likely follow.


Additional info:

gcc has the same issue, and they use the following construct in their .spec:
> # On ARM EABI systems, we do want -gnueabi to be part of the
> # target triple.
> %ifnarch %{arm}
> %global _gnu %{nil}
> %endif

Comment 1 Niels de Vos 2011-07-28 20:44:37 UTC
Verified by review (nicely solved btw) and re-building glibc-2.14.90-4.
Many thanks!