#7035: R sends the correct Sun flags to C and C++ compilers, but not Fortran.
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |          Owner:  tbd             
       Type:  defect    |         Status:  new             
   Priority:  major     |      Milestone:                  
  Component:  build     |       Keywords:  solaris gfortran
Work_issues:            |       Upstream:  N/A             
   Reviewer:            |         Author:                  
     Merged:            |   Dependencies:                  
------------------------+---------------------------------------------------
Changes (by ltw):

  * upstream:  => N/A


Old description:

> Using
>
>     * Solaris 10 update 7 on SPARC
>     * sage-4.1.2.alpha2
>     * Sun Studio 12.1
>     * An updated configure script to allow the Sun compiler to be used
> http://sagetrac.org/sage_trac/ticket/7021
>
> CC was set to the Sun C compiler, and CXX to the Sun C++ compiler and
> SAGE_FORTRAN to the Sun Fortran 95 compiler. While R sends the correct
> flags (-KPIC) to make position independent code to the Sun C and C++
> compilers, it does not do so with the Fortran compiler. Instead it used
> the GNU flag -fPIC. R is however picking up the correct Fortran compiler
> (f95 and not gfortran)
>
> {{{
> /opt/xxxsunstudio12.1/bin/cc -I. -I../../src/include -I../../src/include
> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/inlcude
> -DHAVE_CONFIG_H   -KPIC
> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include
> -L/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/  -c
> tabulate.c -o tabulate.o
> /opt/xxxsunstudio12.1/bin/cc -I. -I../../src/include -I../../src/include
> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/inlcude
> -DHAVE_CONFIG_H   -KPIC
> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include
> -L/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/  -c
> uncmin.c -o uncmin.o/opt/xxxsunstudio12.1/bin/cc -I. -I../../src/include
> -I../../src/include
> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/inlcude
> -DHAVE_CONFIG_H   -KPIC
> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include
> -L/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/  -c
> zeroin.c -o zeroin.osage_fortran  -PIC  -g -c ch2inv.f -o ch2inv.o
> f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
> otherwise
> sage_fortran  -PIC  -g -c chol.f -o chol.o
> }}}

New description:

 Using

     * Solaris 10 update 7 on SPARC
     * sage-4.1.2.alpha2
     * Sun Studio 12.1
     * An updated configure script to allow the Sun compiler to be used
 #7021

 CC was set to the Sun C compiler, and CXX to the Sun C++ compiler and
 SAGE_FORTRAN to the Sun Fortran 95 compiler. While R sends the correct
 flags (-KPIC) to make position independent code to the Sun C and C++
 compilers, it does not do so with the Fortran compiler. Instead it used
 the GNU flag -fPIC. R is however picking up the correct Fortran compiler
 (f95 and not gfortran)

 {{{
 /opt/xxxsunstudio12.1/bin/cc -I. -I../../src/include -I../../src/include
 -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/inlcude
 -DHAVE_CONFIG_H   -KPIC
 -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include
 -L/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/  -c
 tabulate.c -o tabulate.o
 /opt/xxxsunstudio12.1/bin/cc -I. -I../../src/include -I../../src/include
 -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/inlcude
 -DHAVE_CONFIG_H   -KPIC
 -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include
 -L/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/  -c
 uncmin.c -o uncmin.o/opt/xxxsunstudio12.1/bin/cc -I. -I../../src/include
 -I../../src/include
 -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/inlcude
 -DHAVE_CONFIG_H   -KPIC
 -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include
 -L/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/  -c
 zeroin.c -o zeroin.osage_fortran  -PIC  -g -c ch2inv.f -o ch2inv.o
 f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
 otherwise
 sage_fortran  -PIC  -g -c chol.f -o chol.o
 }}}

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7035#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to