Bug 446181

Summary: R build failed on ia64 by passing "-m32" to gcc
Product: [Fedora] Fedora Reporter: Zhan, Yi <yi.zhan>
Component: RAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-13 16:56:11 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: 163350    
Attachments:
Description Flags
do not use "-mXX" option on ia64 none

Description Zhan, Yi 2008-05-13 09:39:14 UTC
Description of problem:

When trying to build R on fedora ia64 we ran into a configure error:
    configure: error: C compiler cannot create executables
full log can be found at
http://ia64.koji.fedoraproject.org/koji/getfile?taskID=69114&name=build.log

By looking at config.log I found the point is passing "-m32" to gcc:
    cc1: error: unrecognized command line option "-m32"

The root cause is in R.spec, it passes "-m64" to
"x86_64|mips64|ppc64|powerpc64|sparc64|s390x" and "-m32" to other arches. Unlike
other arches, ia64 is a 64 bit only arch, so ia64-gcc does not support either
"-m32" or "-m64" option. 

To fix this on ia64 we need to modify the spec file to just use "gcc", without
"-mXX" options. Patch attached.

I have done a scratch build with the patch at
http://ia64.koji.fedoraproject.org/koji/taskinfo?taskID=71024. If needed,
scratch build on ia64 can be done by below command:
    koji -c ~/.koji/ia64-config build --scratch dist-f9 <srpm>

Version-Release number of selected component (if applicable):
R-2.6.2-1.fc9

How reproducible:
always

Steps to Reproduce:
1. build R-2.6.2-1.fc9 on fedora ia64
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Zhan, Yi 2008-05-13 09:39:14 UTC
Created attachment 305225 [details]
do not use "-mXX" option on ia64

Comment 2 Tom "spot" Callaway 2008-05-13 16:56:11 UTC
R-2.7.0-2 has this fix, its headed to all branches.