#7047: lapack sends GNU option -fPIC to Sun fortran compiler.
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |          Owner:  tbd     
       Type:  defect    |         Status:  new     
   Priority:  major     |      Milestone:  sage-4.7
  Component:  solaris   |       Keywords:          
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.alpha4
>     * Sun Studio 12.1
>     * An updated configure script to allow the Sun compiler to be used
> http://sagetrac.org/sage_trac/ticket/7021
>
> I tried to build Sage with Sun Studio and see:
>
> {{{
> lapack-20071123.p0/spkg-install~
> lapack-20071123.p0/spkg-install
> Finished extraction
> ****************************************************
> Host system
> uname -a:
> SunOS swan 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-1000
> ****************************************************
> ****************************************************
> CC Version
> /opt/xxxsunstudio12.1/bin/cc -v
> usage: cc [ options] files.  Use 'cc -flags' for details
> ****************************************************
> make[2]: Entering directory
> `/export/home/drkirkby/sage/sage-4.1.2.alpha4/spkg/build/lapack-20071123.p0/src'
> ( cd INSTALL; make; ./testlsame; ./testslamch; \
>   ./testdlamch; ./testsecond; ./testdsecnd; ./testversion )
> make[3]: Entering directory
> `/export/home/drkirkby/sage/sage-4.1.2.alpha4/spkg/build/lapack-20071123.p0/src/INSTALL'
> sage_fortran -fPIC  -c lsame.f -o lsame.o
> f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
> otherwise
> f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
> otherwise
> sage_fortran -fPIC  -c lsametst.f -o lsametst.o
> f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
> otherwise
> f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
> otherwise
> sage_fortran  -o testlsame lsame.o lsametst.o
> f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
> otherwise
> ld: fatal: option -f and building a dynamic executable are incompatible
> ld: fatal: Flags processing errors
> make[3]: *** [testlsame] Error 1
> make[3]: Leaving directory
> `/export/home/drkirkby/sage/sage-4.1.2.alpha4/spkg/build/lapack-20071123.p0/src/INSTALL'
> /bin/sh: ./testlsame: not found
> /bin/sh: ./testslamch: not found
> /bin/sh: ./testdlamch: not found
> /bin/sh: ./testsecond: not found
> /bin/sh: ./testdsecnd: not found
> /bin/sh: ./testversion: not found
> make[2]: *** [lapack_install] Error 1
> make[2]: Leaving directory
> `/export/home/drkirkby/sage/sage-4.1.2.alpha4/spkg/build/lapack-20071123.p0/src'
> Error compiling lapack.
>
> real    0m0.415s
> user    0m0.150s
> sys     0m0.215s
> }}}

New description:

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

 I tried to build Sage with Sun Studio and see:

 {{{
 lapack-20071123.p0/spkg-install~
 lapack-20071123.p0/spkg-install
 Finished extraction
 ****************************************************
 Host system
 uname -a:
 SunOS swan 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-1000
 ****************************************************
 ****************************************************
 CC Version
 /opt/xxxsunstudio12.1/bin/cc -v
 usage: cc [ options] files.  Use 'cc -flags' for details
 ****************************************************
 make[2]: Entering directory
 
`/export/home/drkirkby/sage/sage-4.1.2.alpha4/spkg/build/lapack-20071123.p0/src'
 ( cd INSTALL; make; ./testlsame; ./testslamch; \
   ./testdlamch; ./testsecond; ./testdsecnd; ./testversion )
 make[3]: Entering directory
 
`/export/home/drkirkby/sage/sage-4.1.2.alpha4/spkg/build/lapack-20071123.p0/src/INSTALL'
 sage_fortran -fPIC  -c lsame.f -o lsame.o
 f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
 otherwise
 f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
 otherwise
 sage_fortran -fPIC  -c lsametst.f -o lsametst.o
 f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
 otherwise
 f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
 otherwise
 sage_fortran  -o testlsame lsame.o lsametst.o
 f95: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
 otherwise
 ld: fatal: option -f and building a dynamic executable are incompatible
 ld: fatal: Flags processing errors
 make[3]: *** [testlsame] Error 1
 make[3]: Leaving directory
 
`/export/home/drkirkby/sage/sage-4.1.2.alpha4/spkg/build/lapack-20071123.p0/src/INSTALL'
 /bin/sh: ./testlsame: not found
 /bin/sh: ./testslamch: not found
 /bin/sh: ./testdlamch: not found
 /bin/sh: ./testsecond: not found
 /bin/sh: ./testdsecnd: not found
 /bin/sh: ./testversion: not found
 make[2]: *** [lapack_install] Error 1
 make[2]: Leaving directory
 
`/export/home/drkirkby/sage/sage-4.1.2.alpha4/spkg/build/lapack-20071123.p0/src'
 Error compiling lapack.

 real    0m0.415s
 user    0m0.150s
 sys     0m0.215s
 }}}

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7047#comment:2>
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