#9978: Add a test for the maths library in the 'prereq' script.
----------------------------+-----------------------------------------------
   Reporter:  drkirkby      |       Owner:  drkirkby    
       Type:  enhancement   |      Status:  needs_review
   Priority:  minor         |   Milestone:  sage-4.7    
  Component:  build         |    Keywords:              
     Author:  David Kirkby  |    Upstream:  N/A         
   Reviewer:                |      Merged:              
Work_issues:                |  
----------------------------+-----------------------------------------------

Comment(by drkirkby):

 Here is some results when installed on my IBM RS/6000, which runs AIX 5.3.

 {{{
 -bash-4.1$ uname
 AIX
 }}}

 Here's the output after running "make" on the AIX system, which has the
 maths library installed, since the bos.adt fileset was installed.

 {{{
 -bash-4.1$ uname
 AIX
 -bash-4.1$ make

 <snip irrelevant output>

 Starting prerequisite check.
 Machine: AIX aixbox 3 5 000245984C00
 prereq-0.8/
 prereq-0.8/install-sh
 prereq-0.8/aclocal.m4

 <snip out irrelevant output>

 checking for sqrt in -lm... yes
 checking for sqrtl in -lm... yes
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating config.h
 config.status: executing depfiles commands
 }}}

 Then I removed the maths library, /usr/lib/libm.a.

 {{{
 -bash-4.1$ su
 root's Password:
 # mv /usr/lib/libm.a /usr/lib/foo
 # exit
 }}}

 Then after running make, we see that the 'prereq' script exits with an
 error.

 {{{
 checking for sqrt in -lm... no
 configure: This system has no maths library installed.
 configure: On AIX, this is in the bos.adt.libm fileset.
 configure: Actually, we recommend to install the complete bos.adt fileset.
 configure: This needs to be performed by a system administrator.
 configure: error: Exiting, since a maths library was not found.
  ERROR: You do not have all of the prerequisites needed
  to build Sage from source.  See the errors above.
 make[1]: *** [installed/prereq-0.8] Error 1
 make[1]: Leaving directory `/home/users/drkirkby/sage-4.7.alpha1/spkg'

 real    0m54.880s
 user    0m29.577s
 sys     0m10.611s
 Error building Sage.
 make: *** [build] Error 1
 }}}

 Finally, I did manage to remember to restore my maths library!

 {{{
 -bash-4.1$ su
 root's Password:
 # mv /usr/lib/foo /usr/lib/libm.a
 # exit
 -bash-4.1$
 }}}

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