Hi David, 

I think this may be something in your ambient environment which scons handles 
differently than autoconf and friends.  You could try replacing 
***
env = Environment()
*** with
env = Environment(ENV = os.environ)
***
near the top of the c_lib/SConstruct file.  SCons does not copy environment 
variables into it's environment.  I think it is a strange design, but the 
SCons developers are quite dogmatic about it.

This fixed a build problem for Kiran with thread title "2.8.3.x build 
problem".   I'm not sure what that SConstruct looks like in 2.8.4, but I 
don't think this change made it in.  I wasn't quite certain that I 
recommended the change, but if it fixes your problem as well, I'd say we 
should put it in.

--
Joel

On Saturday 08 September 2007 10:44, David Harvey wrote:
> I am tearing my hair out.
>
> I do a clean build of sage 2.8.4 on sage.math, and when I run it I
> get this:
>
> ==================================================================
>
>
> ----------------------------------------------------------------------
>
> | SAGE Version 2.8.4, Release Date: 2007-09-07                       |
> | Type notebook() for the GUI, and license() for information.        |
>
> ----------------------------------------------------------------------
> ------------------------------------------------------------------------
> ---
> <type 'exceptions.ImportError'>           Traceback (most recent call
> last)
>
> /home/dmharvey/sage-2.8.4/local/bin/<string> in <module>()
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/misc/
> preparser_ipython.py in <module>()
>        6
> ########################################################################
> ###
>        7
> ----> 8 import sage.misc.interpreter
>        9
>       10 import preparser
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/misc/
> interpreter.py in <module>()
>      102
>      103 import os
> --> 104 import log
>      105
>      106 import remote_file
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/misc/
> log.py in <module>()
>       51
>       52 import interpreter
> ---> 53 import latex
>       54 import misc
>       55
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/misc/
> latex.py in <module>()
>       41 import random
>       42
> ---> 43 import sage.plot.all
>       44
>       45 from misc import tmp_dir
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/plot/
> all.py in <module>()
>        2                   text, circle, disk, hue, graphics_array,
>        3                   list_plot, networkx_plot, parametric_plot,
>        4                   polar_plot, contour_plot, arrow,
>        5                   plot_vector_field, matrix_plot, bar_chart,
>        6                   is_Graphics,
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/plot/
> plot.py in <module>()
>      126
> ########################################################################
> ####
>      127
> --> 128 from sage.structure.sage_object import SageObject
>      129
>      130 ## IMPORTANT: Do *not* import matplotlib at module scope.
> It takes a
>
> <type 'exceptions.ImportError'>: /home/dmharvey/sage-2.8.4/local/lib/
> libcsage.so: undefined symbol: __stack_chk_fail
> WARNING: Failure executing code: 'import
> sage.misc.preparser_ipython;
> sage.misc.preparser_ipython.magma_colon_equals=True'
>
> ------------------------------------------------------------------------
> ---
> <type 'exceptions.ImportError'>           Traceback (most recent call
> last)
>
> /home/dmharvey/sage-2.8.4/local/bin/<ipython console> in <module>()
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/misc/
> interpreter.py in <module>()
>      102
>      103 import os
> --> 104 import log
>      105
>      106 import remote_file
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/misc/
> log.py in <module>()
>       51
>       52 import interpreter
> ---> 53 import latex
>       54 import misc
>       55
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/misc/
> latex.py in <module>()
>       41 import random
>       42
> ---> 43 import sage.plot.all
>       44
>       45 from misc import tmp_dir
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/plot/
> all.py in <module>()
>        2                   text, circle, disk, hue, graphics_array,
>        3                   list_plot, networkx_plot, parametric_plot,
>        4                   polar_plot, contour_plot, arrow,
>        5                   plot_vector_field, matrix_plot, bar_chart,
>        6                   is_Graphics,
>
> /home/dmharvey/sage-2.8.4/local/lib/python2.5/site-packages/sage/plot/
> plot.py in <module>()
>      126
> ########################################################################
> ####
>      127
> --> 128 from sage.structure.sage_object import SageObject
>      129
>      130 ## IMPORTANT: Do *not* import matplotlib at module scope.
> It takes a
>
> <type 'exceptions.ImportError'>: /home/dmharvey/sage-2.8.4/local/lib/
> libcsage.so: undefined symbol: __stack_chk_fail
> <ERROR: name 'sage_prompt' is not defined>
>
> ==================================================================
>
> This was happening to me towards the second half of the bug squash too.
>
> I took special precautions before building this time. I removed
> everything in my home directory (packed away everything into
> tarballs), except for the following files:
>
> .bash_profile
> .bashrc
> el
> .emacs
> .emacs.d
> flint-home
> flint_trac
> .gnupg
> .hgrc
> .ssh
> .svn
> .viminfo
>
> and a few text files and pdf files.
>
> My environment is the following:
>
> TERM=xterm-color
> SHELL=/bin/bash
> SSH_CLIENT=140.247.248.30 52541 22
> SSH_TTY=/dev/pts/4
> SVN_EDITOR=emacs
> USER=dmharvey
> LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40
> ;
> 33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;
> 44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:
> *.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm
> =01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pb
> m=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.ti
> f=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.
> avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.fl
> ac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:
> MAIL=/var/mail/dmharvey
> PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
> PWD=/home/dmharvey
> FLINT_MACHINE_NAME=sage.math
> LANG=en_US.UTF-8
> SHLVL=1
> HOME=/home/dmharvey
> LOGNAME=dmharvey
> SSH_CONNECTION=140.247.248.30 52541 128.208.160.191 22
> LESSOPEN=| /usr/bin/lesspipe %s
> LESSCLOSE=/usr/bin/lesspipe %s %s
> _=/usr/bin/env
> OLDPWD=/home/dmharvey/sage-2.8.4
>
> The system-wide sage 2.8.4 runs fine in my account. I've successfully
> built and run 2.8.4 on a number of other machines.
>
> Does anyone have *any* idea at all what the hell is going on?
>
> david
>
>
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to