William,
   Thanks a lot for the
sage -br
command. I found that I needed to re-install singular, fplll and then
it needed qd so I got qd 2.1 initially but it didn't work, so I got qd
2.3.5 from LBL and it compiled everything. At the end, sage gave an
error:

copying sage/dsage/web/index.html -> /usr/local/PET/src/build/64/
sage-2.10.2/local/dsage/web/
running install_egg_info
Writing /usr/local/PET/src/build/64/sage-2.10.2/local/lib/python2.5/
site-packages/sage-0.0.0-py2.5.egg-info
----------------------------------------------------------------------
| SAGE Version 2.10.2, Release Date: 2008-02-22                      |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

---------------------------------------------------------------------------
<type 'exceptions.ImportError'>           Traceback (most recent call
last)

/usr/local/PET/src/build/64/sage-2.10.2/local/bin/<ipython console> in
<module>()

/usr/local/PET/src/build/64/sage-2.10.2/local/lib/python2.5/site-
packages/sage/all_cmdline.py in <module>()
     12 try:
     13
---> 14     from sage.all import *
     15     from sage.calculus.predefined import x
     16     preparser(on=True)

/usr/local/PET/src/build/64/sage-2.10.2/local/lib/python2.5/site-
packages/sage/all.py in <module>()
     51 get_sigs()
     52
---> 53 from sage.misc.all       import *         # takes a while
     54
     55 from sage.misc.sh import sh

/usr/local/PET/src/build/64/sage-2.10.2/local/lib/python2.5/site-
packages/sage/misc/all.py in <module>()
     70 from func_persist import func_persist
     71
---> 72 from functional import (additive_order,
     73                         sqrt as numerical_sqrt,
     74                         arg,

/usr/local/PET/src/build/64/sage-2.10.2/local/lib/python2.5/site-
packages/sage/misc/functional.py in <module>()
     32
     33
---> 34 from sage.rings.complex_double import CDF
     35 from sage.rings.real_double import RDF, RealDoubleElement
     36

<type 'exceptions.ImportError'>: /usr/local/PET/src/build/64/
sage-2.10.2/local/lib/libgsl.so.0: undefined symbol: cblas_dsdot
sage:

  so I rebuilt libgsl.so.0 getting the symbols from libgsl.a and
libgslcblas. This worked but it didn't run properly. Should I re-
install gsl?
It gave me:
sage-2.10.2> ./sage
----------------------------------------------------------------------
| SAGE Version 2.10.2, Release Date: 2008-02-22                      |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

End Of File (EOF) in read_nonblocking(). Exception style platform.
<pexpect.spawn instance at 0x10daab48>
version: 2.0 ($Revision: 1.151 $)
command: /usr/local/PET/src/build/64/sage-2.10.2/local/bin/gap
args: ['/usr/local/PET/src/build/64/sage-2.10.2/local/bin/gap', '-b',
'-p', '-T', '-o', '9999G', '/usr/local/PET/src/build/64/sage-2.10.2/
data//extcode/gap/sage.g']
patterns:
    gap>
buffer (last 100 chars):
before (last 100 chars): [EMAIL PROTECTED]@"[EMAIL PROTECTED]@$2973726622+@
%274472+@&[EMAIL PROTECTED]@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&6372563952+
after: <class 'pexpect.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: 1
pid: 27597
child_fd: 13
timeout: 30
delimiter: <class 'pexpect.EOF'>
logfile: None
maxread: 100000
searchwindowsize: None
delaybeforesend: 0
End Of File (EOF) in read_nonblocking(). Exception style platform.
<pexpect.spawn instance at 0x10db13b0>
version: 2.0 ($Revision: 1.151 $)
command: /usr/local/PET/src/build/64/sage-2.10.2/local/bin/gap
args: ['/usr/local/PET/src/build/64/sage-2.10.2/local/bin/gap', '-b',
'-p', '-T', '-o', '9999G', '/usr/local/PET/src/build/64/sage-2.10.2/
data//extcode/gap/sage.g']
patterns:
    gap>
buffer (last 100 chars):
before (last 100 chars): [EMAIL PROTECTED]@"[EMAIL PROTECTED]@$2973726622+@
%274472+@&[EMAIL PROTECTED]@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&6372563952+
after: <class 'pexpect.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: 1
pid: 27602
child_fd: 13
timeout: 30
delimiter: <class 'pexpect.EOF'>
logfile: None
maxread: 100000
searchwindowsize: None
delaybeforesend: 0

  ***   user interrupt.


So, I tried running gap on the command line with these parameters:
/usr/local/PET/src/build/64/sage-2.10.2/local/bin/gap -b -p -T -o
9999G /usr/local/PET/src/build/64/sage-2.10.2/data//extcode/gap/sage.g
@[EMAIL PROTECTED]@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]
+@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL PROTECTED]@"[EMAIL 
PROTECTED]@$2973726622+@
%274472+@&[EMAIL PROTECTED]@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL 
PROTECTED]
+@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL PROTECTED]@"[EMAIL 
PROTECTED]@$2973726622+@
%274472+@&6372563952+Segmentation fault
spkg/installed>

So, it gave me a segfault. This is on an IBM p690 (32x Power4 cpus)
SuSe Linux system using gfortran/gcc in 64 bits. It has installed
gap-4.4.10.p2.
What would you recommend at this stage? Re-install gap since it
segfaults?
I get the same error with python:
spkg/installed> python
Python 2.5.1 (r251:54863, Mar  7 2008, 11:19:04)
[GCC 4.1.2 20070115 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sage
>>> import sage.all
End Of File (EOF) in read_nonblocking(). Exception style platform.
<pexpect.spawn instance at 0x10d32b00>
version: 2.0 ($Revision: 1.151 $)
command: /usr/local/PET/src/build/64/sage-2.10.2/local/bin/gap
args: ['/usr/local/PET/src/build/64/sage-2.10.2/local/bin/gap', '-b',
'-p', '-T', '-o', '9999G', '/usr/local/PET/src/build/64/sage-2.10.2/
data//extcode/gap/sage.g']
patterns:
    gap>
buffer (last 100 chars):
before (last 100 chars): [EMAIL PROTECTED]@"[EMAIL PROTECTED]@$2973726622+@
%274472+@&[EMAIL PROTECTED]@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&6372563952+
after: <class 'pexpect.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: 1
pid: 27674
child_fd: 12
timeout: 30
delimiter: <class 'pexpect.EOF'>
logfile: None
maxread: 100000
searchwindowsize: None
delaybeforesend: 0


I tried compiling gap and run it under gdb:
bin/powerpc64-unknown-linux-gnu-gcc> ./gap -b -p -T -o 9999G /usr/
local/PET/src/build/64/sage-2.10.2/data//extcode/gap/sage.g
@[EMAIL PROTECTED]@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]
+@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL PROTECTED]@"[EMAIL 
PROTECTED]@$2973726622+@
%274472+@&[EMAIL PROTECTED]@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL 
PROTECTED]
+@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL PROTECTED]@"[EMAIL 
PROTECTED]@$2973726622+@
%274472+@&6372563952+Segmentation fault
lynx bin/powerpc64-unknown-linux-gnu-gcc> gdb ./
gap                              GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "ppc-suse-linux"...
(no debugging symbols found)
Using host libthread_db library "/lib/power4/libthread_db.so.1".
(gdb) run -b -p -T -o 9999G /usr/local/PET/src/build/64/sage-2.10.2/
data//extcode/gap/sage.g
Starting program: /usr/local/PET/src/build/64/sage-2.10.2/test/
gap-4.4.10.p2/src/bin/powerpc64-unknown-linux-gnu-gcc/gap -b -p -T -o
9999G /usr/local/PET/src/build/64/sage-2.10.2/data//extcode/gap/sage.g
(no debugging symbols found)
(no debugging symbols found)
@[EMAIL PROTECTED]@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]
+@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL PROTECTED]@"[EMAIL 
PROTECTED]@$2973726622+@
%274472+@&[EMAIL PROTECTED]@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL 
PROTECTED]
+@"[EMAIL PROTECTED]@[EMAIL PROTECTED]@&[EMAIL PROTECTED]@"[EMAIL 
PROTECTED]@$2973726622+@
%274472+@&6372563952+
Program received signal SIGSEGV, Segmentation fault.
0x100d38540000d932 in ?? ()
(gdb) where
#0  0x100d38540000d932 in ?? ()
#1  0x100d47e800000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)

  How should I proceed?
  Thanks!
   - Sameer



On Mar 8, 1:00 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Sat, Mar 8, 2008 at 12:23 PM, Sameer <[EMAIL PROTECTED]> wrote:
>
> >  Hi,
> >    I made scripts for gcc/g++/gfortran and put them in my ~/bin
> >  directory. These scripts add -m64 argument to the compilers and so I
> >  was able to generate 64 bit binaries. After several errors and
> >  manually intervening (building shared objects etc.) I think it has
> >  compiled SAGE completely on ppc64 Linux. It said:
>
> >  Successfully installed jmol-11.5.2.p1
> >  Now cleaning up tmp files.
> >  Making SAGE/Python scripts relocatable...
> >  Making script relocatable
> >  make[1]: Leaving directory `/usr/local/PET/src/build/64/sage-2.10.2/
> >  spkg'
>
> >  real    21m30.674s
> >  user    19m19.231s
> >  sys     1m41.583s
> >  To install gap, gp, singular, etc., scripts
> >  in a standard bin directory, start sage and
> >  type something like
> >    sage: install_scripts('/usr/local/bin')
> >  at the SAGE command prompt.
>
> >  SAGE build/upgrade complete!
>
> >  But when I try to run it, it says:
> >  sage-2.10.2> ./
> >  sage
> >  ----------------------------------------------------------------------
> >  | SAGE Version 2.10.2, Release Date: 2008-02-22                      |
> >  | Type notebook() for the GUI, and license() for information.        |
> >  ----------------------------------------------------------------------
> >  ---------------------------------------------------------------------------
> >  <type 'exceptions.ImportError'>           Traceback (most recent call
> >  last)
>
> >  /usr/local/PET/src/build/64/sage-2.10.2/local/bin/<string> in
> >  <module>()
>
> >  <type 'exceptions.ImportError'>: No module named
> >  sage.misc.preparser_ipython
> >  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)
>
> >  /usr/local/PET/src/build/64/sage-2.10.2/local/bin/<ipython console> in
> >  <module>()
>
> >  <type 'exceptions.ImportError'>: No module named sage.misc.misc
> >  <ERROR: name 'sage_prompt' is not defined>
>
> >  Now, I see the files:
> >  ./devel/sage-main/.hg/store/data/sage/misc/preparser__ipython.py.i
> >  ./devel/sage-main/sage/misc/preparser_ipython.py
> >  ./devel/sage-main/build/lib.linux-ppc64-2.5/sage/misc/
> >  preparser_ipython.py
>
> >  I tried seeting my PYTHONPATH environment variable to include these
> >  directories, but it didn't work. How should I proceed?
>
> Building the sage library failed.  Try typing
>
>    ./sage -br
>
> and report what failure you get.
>
> William

On Mar 8, 1:00 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Sat, Mar 8, 2008 at 12:23 PM, Sameer <[EMAIL PROTECTED]> wrote:
>
> >  Hi,
> >    I made scripts for gcc/g++/gfortran and put them in my ~/bin
> >  directory. These scripts add -m64 argument to the compilers and so I
> >  was able to generate 64 bit binaries. After several errors and
> >  manually intervening (building shared objects etc.) I think it has
> >  compiled SAGE completely on ppc64 Linux. It said:
>
> >  Successfully installed jmol-11.5.2.p1
> >  Now cleaning up tmp files.
> >  Making SAGE/Python scripts relocatable...
> >  Making script relocatable
> >  make[1]: Leaving directory `/usr/local/PET/src/build/64/sage-2.10.2/
> >  spkg'
>
> >  real    21m30.674s
> >  user    19m19.231s
> >  sys     1m41.583s
> >  To install gap, gp, singular, etc., scripts
> >  in a standard bin directory, start sage and
> >  type something like
> >    sage: install_scripts('/usr/local/bin')
> >  at the SAGE command prompt.
>
> >  SAGE build/upgrade complete!
>
> >  But when I try to run it, it says:
> >  sage-2.10.2> ./
> >  sage
> >  ----------------------------------------------------------------------
> >  | SAGE Version 2.10.2, Release Date: 2008-02-22                      |
> >  | Type notebook() for the GUI, and license() for information.        |
> >  ----------------------------------------------------------------------
> >  ---------------------------------------------------------------------------
> >  <type 'exceptions.ImportError'>           Traceback (most recent call
> >  last)
>
> >  /usr/local/PET/src/build/64/sage-2.10.2/local/bin/<string> in
> >  <module>()
>
> >  <type 'exceptions.ImportError'>: No module named
> >  sage.misc.preparser_ipython
> >  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)
>
> >  /usr/local/PET/src/build/64/sage-2.10.2/local/bin/<ipython console> in
> >  <module>()
>
> >  <type 'exceptions.ImportError'>: No module named sage.misc.misc
> >  <ERROR: name 'sage_prompt' is not defined>
>
> >  Now, I see the files:
> >  ./devel/sage-main/.hg/store/data/sage/misc/preparser__ipython.py.i
> >  ./devel/sage-main/sage/misc/preparser_ipython.py
> >  ./devel/sage-main/build/lib.linux-ppc64-2.5/sage/misc/
> >  preparser_ipython.py
>
> >  I tried seeting my PYTHONPATH environment variable to include these
> >  directories, but it didn't work. How should I proceed?
>
> Building the sage library failed.  Try typing
>
>    ./sage -br
>
> and report what failure you get.
>
> William
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to