#10092: export FC, F77, F90 and F95 from scipy_sandbox
-----------------------------+----------------------------------------------
 Reporter:  drkirkby         |         Owner:  fbissey        
     Type:  defect           |        Status:  closed         
 Priority:  major            |     Milestone:  sage-4.6.1     
Component:  build            |    Resolution:  fixed          
 Keywords:                   |        Author:  David Kirkby   
 Upstream:  N/A              |      Reviewer:  François Bissey
   Merged:  sage-4.6.alpha3  |   Work_issues:                 
-----------------------------+----------------------------------------------

Comment(by drkirkby):

 You beat me to it by 30 seconds. Here is what I had to say

 The main buildbot page is here:

 http://build.sagemath.org/sage/

 The 'Waterfall display' seems the most interesting looking to me:

 http://build.sagemath.org/sage/waterfall

  * ''fulvia'' is the Solaris x86 machine at Skynet
  * ''hawk'' (on far right) is my own personal !OpenSolaris machine

 I was not initially aware one could get the full log, but it is available.
 You have to click on the ''build stdio'' for the machine.

 
http://build.sagemath.org/sage/builders/fulvia%20full/builds/6/steps/shell_1/logs/stdio

 The relevant bit is:

 {{{
 scipy_sandbox-20071020.p6/.hgignore
 Finished extraction
 ****************************************************
 Host system
 uname -a:
 SunOS fulvia 5.10 Generic_127128-11 i86pc i386 i86pc
 ****************************************************
 ****************************************************
 CC Version
 gcc -v
 Using built-in specs.
 COLLECT_GCC=gcc
 COLLECT_LTO_WRAPPER=/usr/local/gcc-4.5.1/x86_64-SunOS-core2-sun-
 ld/libexec/gcc/i386-pc-solaris2.10/4.5.1/lto-wrapper
 Target: i386-pc-solaris2.10
 Configured with: /usr/local/gcc-4.5.1/src/gcc-4.5.1/configure --enable-
 languages=c,c++,fortran --with-gnu-as --with-
 as=/usr/local/binutils-2.20.1/x86_64-SunOS-core2-gcc-4.4.3/bin/as --with-
 ld=/usr/ccs/bin/ld --with-gmp=/usr/local/gmp-5.0.1/x86_64-SunOS-
 core2-gcc-4.5.0-abi32 --with-mpfr=/usr/local/mpfr-3.0.0/x86_64-SunOS-
 core2-gmp-5.0.1-gcc-4.5.0-abi32 --with-mpc=/usr/local/mpc-0.8.2/x86_64
 -SunOS-core2-mpfr-3.0.0-gmp-5.0.1-gcc-4.5.0-abi32
 --prefix=/usr/local/gcc-4.5.1/x86_64-SunOS-core2-sun-ld
 Thread model: posix
 gcc version 4.5.1 (GCC)
 ****************************************************
 ./spkg-install:
 
FC=/home/buildbot/build/sage/fulvia-1/fulvia_full/build/sage-4.6.alpha3/local/bin/sage_fortran:
 is not an identifier

 real    0m0.017s
 user    0m0.001s
 sys     0m0.005s
 sage: An error occurred while installing scipy_sandbox-20071020.p6
 }}}

 I can now see what is wrong:

 {{{
 export FC="${SAGE_LOCAL}/bin/sage_fortran"
 export F77="${SAGE_LOCAL}/bin/sage_fortran"
 export F90="${SAGE_LOCAL}/bin/sage_fortran"
 export F95="${SAGE_LOCAL}/bin/sage_fortran"
 }}}

 is a bashism - using export on the same line. But the spkg-install script
 starts with:

 {{{
 #!/bin/sh
 }}}

 The Solaris {{{/bin/sh}}} will not accept that syntax. (On !OpenSolaris, a
 newer shell is used, which is why it worked on my machine).

 I've opened #10106 to address this. One could get around it by changing
 the shell used in the spkg-install, but personally I prefer to write code
 in a more portable fashion, so I'll change that later today. I've very
 tired and must get some sleep, so it will have to wait for 8 hours or so,
 unless someone else wants to beat me to it.

 Dave

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