1 | initial version |
Too much text to post as a comment and so i'm posting as an answer, which it is not.
Thanks for your reply, Miles. I reinstalled Xcode 3.2.5 and Sage 4.6 and tried again. I got farther this time but ran into import errors again. Before i show them to you, here are my stdlib.h permissions and environment variables after i ran './sage -clone dabble'.
raichev@wujarch-l/Applications/sage> ls -l /usr/include/stdlib.h -r--r--r-- 1 root wheel 11765 8 Apr 2010 /usr/include/stdlib.h
raichev@wujarch-l/Applications/sage> env MANPATH=/opt/local/share/man: TERM_PROGRAM=Apple_Terminal TERM=xterm-color SHELL=/bin/bash TMPDIR=/var/folders/2e/2evYyNsKFPGu2rQe+hRQrE+++TI/-Tmp-/ Apple_PubSub_Socket_Render=/tmp/launch-KOQaxa/Render TERM_PROGRAM_VERSION=273 USER=raichev LD_LIBRARY_PATH=:/Users/raichev/usr/lib COMMAND_MODE=unix2003 SSH_AUTH_SOCK=/tmp/launch-lgNZeN/Listeners __CF_USER_TEXT_ENCODING=0x1F5:0:0 PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/Users/raichev/usr/bin LD_RUN_PATH=:/Users/raichev/usr/lib PWD=/Applications/sage EDITOR=/usr/bin/vim LANG=en_NZ.UTF-8 HISTIGNORE=&:ls:[bf]g:exit:logout:cd HISTCONTROL=ignoreboth SHLVL=1 HOME=/Users/raichev PYTHONPATH=:/Users/raichev/slippenspythonlib:/Users/raichev/usr/lib/python2.5/site-packages LOGNAME=raichev CLASSPATH=:/Users/raichev/foo/bar.jar PKG_CONFIG_PATH=:/Users/raichev/usr/lib/pkgconfig DISPLAY=:0.0 _=/usr/bin/env OLDPWD=/Applications/sage/devel/sage-dabble
Now for the clone attempt.
raichev@wujarch-l/Applications/sage> ./sage -clone dabble
Now cloning the current Sage library branch... hg clone sage sage-dabble updating working directory 2339 files updated, 0 files merged, 0 files removed, 0 files unresolved Copying over all Cython auto-generated .c, .cpp and .h files... Copying over build directory... Copying over all auto-generated reference manual .rst files... Copying over documentation output... Building sage-dabble... sage -b dabble
sage: Building and installing modified Sage library files.
Installing c_lib gcc -o src/convert.os -c -fPIC -I/Applications/sage/local/include -I/Applications/sage/local/include/python2.6 -I/Applications/sage/local/include/NTL -Iinclude src/convert.c gcc -o src/interrupt.os -c -fPIC -I/Applications/sage/local/include -I/Applications/sage/local/include/python2.6 -I/Applications/sage/local/include/NTL -Iinclude src/interrupt.c gcc -o src/mpn_pylong.os -c -fPIC -I/Applications/sage/local/include -I/Applications/sage/local/include/python2.6 -I/Applications/sage/local/include/NTL -Iinclude src/mpn_pylong.c gcc -o src/mpz_pylong.os -c -fPIC -I/Applications/sage/local/include -I/Applications/sage/local/include/python2.6 -I/Applications/sage/local/include/NTL -Iinclude src/mpz_pylong.c gcc -o src/mpz_longlong.os -c -fPIC -I/Applications/sage/local/include -I/Applications/sage/local/include/python2.6 -I/Applications/sage/local/include/NTL -Iinclude src/mpz_longlong.c gcc -o src/stdsage.os -c -fPIC -I/Applications/sage/local/include -I/Applications/sage/local/include/python2.6 -I/Applications/sage/local/include/NTL -Iinclude src/stdsage.c gcc -o src/gmp_globals.os -c -fPIC -I/Applications/sage/local/include -I/Applications/sage/local/include/python2.6 -I/Applications/sage/local/include/NTL -Iinclude src/gmp_globals.c g++ -o src/ZZ_pylong.os -c -fPIC -I/Applications/sage/local/include -I/Applications/sage/local/include/python2.6 -I/Applications/sage/local/include/NTL -Iinclude src/ZZ_pylong.cpp g++ -o src/ntl_wrap.os -c -fPIC -I/Applications/sage/local/include -I/Applications/sage/local/include/python2.6 -I/Applications/sage/local/include/NTL -Iinclude src/ntl_wrap.cpp g++ -o libcsage.dylib -single_module -flat_namespace -undefined dynamic_lookup -dynamiclib src/convert.os src/interrupt.os src/mpn_pylong.os src/mpz_pylong.os src/mpz_longlong.os src/stdsage.os src/gmp_globals.os src/ZZ_pylong.os src/ntl_wrap.os -L/Applications/sage/local/lib -L/Applications/sage/local/lib/python/config -lntl -lgmp -lpari -lpython2.6 ld: warning: duplicate dylib /usr/local/lib/libstdc++.6.dylib Building interpreters for fast_callable Updating Cython code....
[all normal stuff and then...]
After cloning, if you change any Sage library files and want to rebuild the html version of the reference manual, use the command sage -docbuild reference html (after running 'sage -b').
Note: if before cloning, you have changed any Sage library files without rebuilding the reference manual, then after cloning, you will need to touch those files again if you want the changes to be incorporated into the reference manual.
Updating modification times for the documentation... sage -docbuild --update-mtimes reference html Warning: Could not import sage.combinat.words.morphism dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so, 2): Symbol not found: ___emutls_get_address Referenced from: /usr/local/lib/libstdc++.6.dylib Expected in: /Applications/sage/local/lib//libgcc_s.1.dylib in /usr/local/lib/libstdc++.6.dylib Warning: Could not import sage.crypto.block_cipher.miniaes dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so, 2): Symbol not found: ___emutls_get_address Referenced from: /usr/local/lib/libstdc++.6.dylib Expected in: /Applications/sage/local/lib//libgcc_s.1.dylib in /usr/local/lib/libstdc++.6.dylib Warning: Could not import sage.combinat.tableau dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so, 2): Symbol not found: ___emutls_get_address Referenced from: /usr/local/lib/libstdc++.6.dylib Expected in: /Applications/sage/local/lib//libgcc_s.1.dylib in /usr/local/lib/libstdc++.6.dylib Warning: Could not import sage.monoids.string_monoid_element dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so, 2): Symbol not found: ___emutls_get_address Referenced from: /usr/local/lib/libstdc++.6.dylib Expected in: /Applications/sage/local/lib//libgcc_s.1.dylib in /usr/local/lib/libstdc++.6.dylib
[lots more of the same]
Warning: Could not import sage.calculus.desolvers dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so, 2): Symbol not found: ___emutls_get_address Referenced from: /usr/local/lib/libstdc++.6.dylib Expected in: /Applications/sage/local/lib//libgcc_s.1.dylib in /usr/local/lib/libstdc++.6.dylib sphinx-build -b html -d /Applications/sage/devel/sage/doc/output/doctrees/en/reference /Applications/sage/devel/sage/doc/en/reference /Applications/sage/devel/sage/doc/output/html/en/reference Traceback (most recent call last): File "/Applications/sage/local/bin/sphinx-build", line 6, in <module> import sage.all File "/Applications/sage/local/lib/python2.6/site-packages/sage/all.py", line 56, in <module> from sage.rings.memory import pmem_malloc ImportError: dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/rings/memory.so, 2): Symbol not found: ___emutls_get_address Referenced from: /usr/local/lib/libstdc++.6.dylib Expected in: /Applications/sage/local/lib//libgcc_s.1.dylib in /usr/local/lib/libstdc++.6.dylib Build finished. The built documents can be found in /Applications/sage/devel/sage/doc/output/html/en/reference * WARNING * If you are cloning a previous revision or have uncommitted changes to cython files do sage -ba Otherwise Sage might build using the wrong .c files !!
real 2m23.358s user 1m16.839s sys 0m13.558s
| Sage Version 4.6, Release Date: 2010-10-30 |
ImportError Traceback (most recent call last)
/Applications/sage/local/bin/<string> in <module>()
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/preparser_ipython.py in <module>() 6 ###########################################################################
7
----> 8 import sage.misc.interpreter 9 10 import preparser
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/interpreter.py in <module>() 100 101 import os --> 102 import log 103 104 import remote_file
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/log.py in <module>() 63 64 import interpreter ---> 65 import latex 66 import misc 67
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/latex.py in <module>() 38 import random 39 ---> 40 from misc import tmp_dir, graphics_filename 41 import sage_eval 42 from sage.misc.misc import SAGE_DOC
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/misc.py in <module>() 36 37 import operator, os, stat, socket, sys, signal, time, weakref, resource, math ---> 38 import sage.misc.prandom as random 39 40 from banner import version, banner
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/prandom.py in <module>() 54 # setting seeds should only be done through sage.misc.randstate .
55
---> 56 from sage.misc.randstate import current_randstate 57 58 def _pyrand():
ImportError: dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/misc/randstate.so, 2): Symbol not found: ___emutls_get_address Referenced from: /usr/local/lib/libstdc++.6.dylib Expected in: /Applications/sage/local/lib//libgcc_s.1.dylib in /usr/local/lib/libstdc++.6.dylib
ImportError Traceback (most recent call last)
/Applications/sage/local/lib/python2.6/site-packages/IPython/ipmaker.pyc in force_import(modname) 64 reload(sys.modules[modname]) 65 else: ---> 66 __import__(modname) 67 68
/Applications/sage/local/bin/ipy_profile_sage.py in <module>() 1 import os 2 if 'SAGE_CLEAN' not in os.environ: ----> 3 import sage.misc.misc 4 from sage.misc.interpreter import preparser, _ip 5 preparser(True)
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/misc.py in <module>() 36 37 import operator, os, stat, socket, sys, signal, time, weakref, resource, math ---> 38 import sage.misc.prandom as random 39 40 from banner import version, banner
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/prandom.py in <module>() 54 # setting seeds should only be done through sage.misc.randstate .
55
---> 56 from sage.misc.randstate import current_randstate 57 58 def _pyrand():
ImportError: dlopen(/Applications/sage/local/lib/python2.6/site-packages/sage/misc/randstate.so, 2): Symbol not found: ___emutls_get_address Referenced from: /usr/local/lib/libstdc++.6.dylib Expected in: /Applications/sage/local/lib//libgcc_s.1.dylib in /usr/local/lib/libstdc++.6.dylib Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed.
<error: name="" 'sage_prompt'="" is="" not="" defined="">exit()