Opened 13 years ago

Closed 14 months ago

#7035 closed defect (invalid)

R sends the correct Sun flags to C and C++ compilers, but not Fortran.

Reported by: David Kirkby Owned by: tbd
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: packages: standard Keywords: solaris gfortran
Cc: Merged in:
Authors: Reviewers: Michael Orlitzky
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Kelvin Li)


  • 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

Change History (5)

comment:1 Changed 12 years ago by Kelvin Li

Description: modified (diff)
Report Upstream: N/A

comment:2 Changed 7 years ago by Jeroen Demeyer

Component: buildpackages: standard

comment:3 Changed 15 months ago by Matthias Köppe

Milestone: sage-duplicate/invalid/wontfix
Status: newneeds_review

Outdated, should close

comment:4 Changed 14 months ago by Michael Orlitzky

Reviewers: Michael Orlitzky
Status: needs_reviewpositive_review

comment:5 Changed 14 months ago by Matthias Köppe

Resolution: invalid
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.