Bug 464055

Summary: fix configure script failure on sh arch.
Product: [Fedora] Fedora Reporter: CHIKAMA Masaki <masaki.chikama>
Component: RAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: sh4   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-16 20:45:43 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
R-2.7.2-filter_asoption.patch none

Description CHIKAMA Masaki 2008-09-26 03:38:32 UTC
Created attachment 317761 [details]
R-2.7.2-filter_asoption.patch

Description of problem:

 This patch enables to compile R on sh architecture.
On this arch, gcc(gfortran) passes "-little" option to gas 
when compiling for backward compatibility. 
The configure script fails because of it.
I also sent a patch for autoconf package beacuse
this configure script was generated by autoconf.
(see Bug #456886)

--- R-2.7.2/configure.org       2008-09-25 15:00:20.000000000 +0900
+++ R-2.7.2/configure   2008-09-25 15:00:35.000000000 +0900
@@ -26995,7 +26995,7 @@
                                                                                
           ;;
           # Ignore these flags.
-        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | LIST:* | -LNO:*)
+        -little | -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | LANG:=* | -LIST:* | -LNO:*)
           ;;
         -lkernel32)
           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"


Version-Release number of selected component (if applicable):
 R-2.7.2-1

Comment 1 CHIKAMA Masaki 2008-09-26 03:40:32 UTC
Also need this patch to R.spec. Please apply.

--- R.spec.org  2008-09-25 14:56:54.000000000 +0900
+++ R.spec      2008-09-25 15:01:49.000000000 +0900
@@ -137,7 +139,7 @@
           export F77="gfortran -m64"
           export FC="gfortran -m64"
       ;;
-      ia64|alpha)
+      ia64|alpha|sh*)
           export CC="gcc"
           export CXX="g++"
           export F77="gfortran"

Comment 2 Tom "spot" Callaway 2008-10-16 20:45:43 UTC
Fixes committed to rawhide and mailed to upstream for inclusion, closing out.