Bug 446181 - R build failed on ia64 by passing "-m32" to gcc
Summary: R build failed on ia64 by passing "-m32" to gcc
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: R
Version: rawhide
Hardware: ia64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: fedora-ia64
TreeView+ depends on / blocked
 
Reported: 2008-05-13 09:39 UTC by Zhan, Yi
Modified: 2008-05-13 16:56 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-05-13 16:56:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
do not use "-mXX" option on ia64 (448 bytes, patch)
2008-05-13 09:39 UTC, Zhan, Yi
no flags Details | Diff

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.


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