William,
  Thanks a lot for your suggestion. I had not set it. Some more
problems with the compile on powerpc Linux. I get:
./lisp.run -on-error appease -B . -N locale -E 1:1 -Efile UTF-8 -
Eterminal UTF-8 -norc -m 1800KW -x "(and (load \"init.lisp\") (sys::
%saveinitmem) (ext::exit)) (ext::exit t)"
  i i i i i i i       ooooo    o        ooooooo   ooooo   ooooo
  I I I I I I I      8     8   8           8     8     o  8    8
  I  \ `+' /  I      8         8           8     8        8    8
   \  `-+-'  /       8         8           8      ooooo   8oooo
    `-__|__-'        8         8           8           8  8
        |            8     o   8           8     o     8  8
  ------+------       ooooo    8oooooo  ooo8ooo   ooooo   8

Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2006

;; Loading file defseq.lisp ...
;; Loaded file defseq.lisp
;; Loading file backquote.lisp ...
;; Loaded file backquote.lispmake[2]: *** [interpreted.mem]
Segmentation fault
make[2]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg/
build/clisp-2.41.p12/src/src'
Silly permissions error with first make of clisp.
Do a 'make' again, since second 'make' works.
Error building clisp.

real    30m10.186s
user    29m17.033s
sys     0m42.184s
sage: An error occurred while installing clisp-2.41.p12
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /usr/local/PET/src/build/sage-2.10.2/install.log.  Describe your
computer, operating system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/usr/local/PET/src/build/sage-2.10.2/spkg/build/clisp-2.41.p12 and
type 'make'.
Instead type "/usr/local/PET/src/build/sage-2.10.2/sage -sh"
in order to set all environment variables correctly, then cd to
/usr/local/PET/src/build/sage-2.10.2/spkg/build/clisp-2.41.p12
(When you are done debugging, you can type "exit" to leave the
subshell.)
make[1]: *** [installed/clisp-2.41.p12] Error 1
make[1]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg'

real    98m24.666s
user    95m9.979s
sys     2m30.678s
+ '[' all = all -a 2 = 0 ']'
build/sage-2.10.2>

next. If I try and execute the sage executable at this stage, I get:
build/sage-2.10.2> /usr/local/PET/src/build/sage-2.10.2/sage
----------------------------------------------------------------------
| SAGE Version 2.10.2, Release Date: 2008-02-22                      |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
Setting permissions of DOT_SAGE directory so only you can read and
write it.

init2.c:37:  assertion failed: ((64 - 0)+0) == (((64 - 0)+0)/8) * 8 &&
sizeof(mp_limb_t) == (((64 - 0)+0)/8)
/usr/local/PET/src/build/sage-2.10.2/local/bin/sage-sage: line 212:
13965 Segmentation fault      sage-ipython -c "$SAGE_STARTUP_COMMAND;"
"$@"
build/sage-2.10.2>

   Thanks,
   - Sameer


On Mar 5, 2:42 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Wed, Mar 5, 2008 at 1:45 PM, Sameer <[EMAIL PROTECTED]> wrote:
>
> >  Hi Michael,
> >    The other problem I am facing on powerpc Linux is with compiling
> >  with Fortran. Some parts of SAGE accept gfortran and others do not.
>
> It is definitely possible to build all of Sage only using gfortran, since many
> people do that (who want to avoid g95 binaries for example).   Did you
> set SAGE_FORTRAN and SAGE_FORTAN_LIB?
>
> That said, of course we have _not_ ported Sage officially to ppc 64bit linux,
> so expect troubles.
>
> By the way, you can skip building any component of Sage by simplying
> touching  a certain file (which tells Sage that the component built, even
> if it didn't).  e.g., try this:
>
>    cd SAGE_ROOT
>    touch spkg/installed/r-2.6.1.p14
>
> then type make to continue your Sage install.   It will fail with rpy,
> but you can also skip that similiarly.     R and rpy do not link with
> Sage in a binary way, so you should be able to build all the rest
> of Sage after skipping the build of R and rpy, and then you can get
> going with actually using Sage, then come back to R/Rpy if you're
> particularly interested in Statistics (that's what those packages
> are for).
>
> >  Here is what I see:
> >  checking for Fortran 77 libraries of sage_fortran...
> >  checking how to get verbose linking output from gcc -std=gnu99... -v
> >  checking for C libraries of gcc -std=gnu99...  -L/usr/local/PET/src/
> >  build/sage-2.10.2/local/lib/ -L/usr/local/PET/src/build/sage-2.10.2/
> >  local/lib/../lib -L/usr/lib/gcc/powerpc64-suse-linux/4.1.2 -L/usr/lib/
> >  gcc/powerpc64-suse-linux/4.1.2/../../../../powerpc64-suse-linux/lib/../
> >  lib -L/usr/lib/gcc/powerpc64-suse-linux/4.1.2/../../../../lib -L/
> >  lib/../lib -L/usr/lib/../lib -L/usr/local/PET/src/build/sage-2.10.2/
> >  local/lib -L/usr/lib/gcc/powerpc64-suse-linux/4.1.2/../../../../
> >  powerpc64-suse-linux/lib -L/usr/lib/gcc/powerpc64-suse-linux/
> >  4.1.2/../../.. -lgcc_s
> >  checking for dummy main to link with Fortran 77 libraries... none
> >  checking for Fortran 77 name-mangling scheme... configure: error:
> >  cannot compile a simple Fortran program
> >  See `config.log' for more details.
> >  Error configuring R.
>
> >  real    0m57.989s
> >  user    0m23.697s
> >  sys     0m23.042s
> >  sage: An error occurred while installing r-2.6.1.p14
>
> > Please email sage-develhttp://groups.google.com/group/sage-devel
> >  explaining the problem and send the relevant part of
> >  of /usr/local/PET/src/build/sage-2.10.2/install.log.  Describe your
> >  computer, operating system, etc.
> >  If you want to try to fix the problem, yourself *don't* just cd to
> >  /usr/local/PET/src/build/sage-2.10.2/spkg/build/r-2.6.1.p14 and type
>
> > 'make'.
> >  Instead type "/usr/local/PET/src/build/sage-2.10.2/sage -sh"
> >  in order to set all environment variables correctly, then cd to
> >  /usr/local/PET/src/build/sage-2.10.2/spkg/build/r-2.6.1.p14
>
> > (When you are done debugging, you can type "exit" to leave the
> >  subshell.)
> >  make[1]: *** [installed/r-2.6.1.p14] Error 1
>
> > make[1]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg'
>
> >  real    44m44.649s
> >  user    41m19.765s
> >  sys     2m49.245s
> >  build/sage-2.10.2> which gfortran
> >  /usr/bin/gfortran
> >  build/sage-2.10.2> which g77
> >  g77: Command not found.
> >  build/sage-2.10.2> which f77
> >  /opt/ibmcmp/xlf/10.1/bin/f77
>
> > build/sage-2.10.2>
>
> > On Mar 4, 10:20 pm, "Michael.Abshoff" <[EMAIL PROTECTED]>
> >  wrote:
>
> > > Sameer wrote:
> >  > > Hi,
> >  > >         When I try to compile Sage 2.10.2 under ppc64 Linux using gcc,
> >  > > I see that some files are
> >  > > compiled in 32 bits and some others in 64 bits. Have you noticed this?
>
> >  > Hi Sameer,
>
> >  > there is several ways to solve the problem:
>
> >  > a) Use a gcc that forces 64 bit output per default
> >  > b) Wait until 2.10.4 and hope that I have time to merge all the 64 bit
> >  > PPC fixes :)
>
> >  > > When I type:
> >  > > % make
> >  > >         I get the following error:
> >  > >  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/PET/src/build/
> >  > > sage-2.10.2/local/include -I. -g -O2 -MT
> >  > > libiml_la-nullspace.lo -MD -MP -MF .deps/libiml_la-nullspace.Tpo -c
> >  > > nullspace.c -o
> >  > > libiml_la-nullspace.o >/dev/null 2>&1
> >  > > /bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/local/PET/src/build/
> >  > > sage-2.10.2/local/include  -I.
> >  > > -g -O2  -lm -o libiml.la -rpath /usr/local/PET/src/build/sage-2.10.2/
> >  > > local/lib libiml_la-basisop.lo
> >  > > libiml_la-certsolve.lo libiml_la-error.lo libiml_la-latreduce.lo
> >  > > libiml_la-memalloc.lo
> >  > > libiml_la-mtrans.lo libiml_la-nonsysolve.lo libiml_la-padiclift.lo
> >  > > libiml_la-reconsolu.lo
> >  > > libiml_la-RNSop.lo libiml_la-nullspace.lo -L/usr/local/PET/src/build/
> >  > > sage-2.10.2/local/lib -lgmp
> >  > > ../repl/librepl.la
> >  > > gcc -shared  .libs/libiml_la-basisop.o .libs/libiml_la-
> >  > > certsolve.o .libs/libiml_la-error.o
> >  > > .libs/libiml_la-latreduce.o .libs/libiml_la-memalloc.o .libs/libiml_la-
> >  > > mtrans.o
> >  > > .libs/libiml_la-nonsysolve.o .libs/libiml_la-padiclift.o .libs/
> >  > > libiml_la-reconsolu.o
> >  > > .libs/libiml_la-RNSop.o .libs/libiml_la-nullspace.o -Wl,--whole-
> >  > > archive ../repl/.libs/librepl.a
> >  > > -Wl,--no-whole-archive  -Wl,--rpath -Wl,/usr/local/PET/src/build/
> >  > > sage-2.10.2/local/lib -Wl,--rpath
> >  > > -Wl,/usr/local/PET/src/build/sage-2.10.2/local/lib -L/usr/local/PET/
> >  > > src/build/sage-2.10.2/local/lib
> >  > > /usr/local/PET/src/build/sage-2.10.2/local/lib/libgmp.so -lm  -Wl,-
> >  > > soname -Wl,libiml.so.0 -o
> >  > > .libs/libiml.so.0.0.0
> >  > > /usr/local/PET/src/build/sage-2.10.2/local/lib/libgmp.so: could not
> >  > > read symbols: File in wrong format
> >  > > collect2: ld returned 1 exit status
> >  > > make[4]: *** [libiml.la] Error 1
> >  > > make[4]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg/
> >  > > build/iml-1.0.1.p9/src/src'
> >  > > make[3]: *** [all-recursive] Error 1
> >  > > make[3]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg/
> >  > > build/iml-1.0.1.p9/src'
> >  > > make[2]: *** [all] Error 2
> >  > > make[2]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg/
> >  > > build/iml-1.0.1.p9/src'
> >  > > Error building IML
>
> >  > > real    0m41.850s
> >  > > user    0m26.428s
> >  > > sys     0m10.164s
> >  > > sage: An error occurred while installing iml-1.0.1.p9
> >  > > Please email sage-develhttp://groups.google.com/group/sage-devel
>
> > > > explaining the problem and send the relevant part of
> >  > > of /usr/local/PET/src/build/sage-2.10.2/install.log.  Describe your
> >  > > computer, operating system, etc.
> >  > > If you want to try to fix the problem, yourself *don't* just cd to
> >  > > /usr/local/PET/src/build/sage-2.10.2/spkg/build/iml-1.0.1.p9 and type
> >  > > 'make'.
> >  > > Instead type "/usr/local/PET/src/build/sage-2.10.2/sage -sh"
> >  > > in order to set all environment variables correctly, then cd to
> >  > > /usr/local/PET/src/build/sage-2.10.2/spkg/build/iml-1.0.1.p9
> >  > > (When you are done debugging, you can type "exit" to leave the
> >  > > subshell.)
> >  > > make[1]: *** [installed/iml-1.0.1.p9] Error 1
> >  > > make[1]: Leaving directory `/usr/local/PET/src/build/sage-2.10.2/spkg'
>
> >  > > real    45m41.259s
> >  > > user    38m16.037s
> >  > > sys     5m3.453s
> >  > > build/sage-2.10.2> file /usr/local/PET/src/build/sage-2.10.2/local/lib/
> >  > > libgmp.so
> >  > > /usr/local/PET/src/build/sage-2.10.2/local/lib/libgmp.so: symbolic
> >  > > link to `libgmp.so.3.4.1'
> >  > > build/sage-2.10.2> file /usr/local/PET/src/build/sage-2.10.2/local/lib/
> >  > > libgmp.so.3
> >  > > libgmp.so.3@      libgmp.so.3.4.1*
> >  > > build/sage-2.10.2> file /usr/local/PET/src/build/sage-2.10.2/local/lib/
> >  > > libgmp.so.3.4.1
> >  > > /usr/local/PET/src/build/sage-2.10.2/local/lib/libgmp.so.3.4.1: ELF 64-
> >  > > bit MSB shared object, cisco
> >  > > 7500, version 1 (SYSV), not stripped
> >  > > build/sage-2.10.2> file .libs/libiml_la-basisop.o
> >  > > .libs/libiml_la-basisop.o: cannot open `.libs/libiml_la-basisop.o' (No
> >  > > such file or directory)
> >  > > build/sage-2.10.2> file `find . -name libiml_la-basisop.o -print`
> >  > > ./spkg/build/iml-1.0.1.p9/src/src/.libs/libiml_la-basisop.o: ELF 32-
> >  > > bit MSB relocatable, PowerPC or
> >  > > cisco 4500, version 1 (SYSV), not stripped
> >  > > ./spkg/build/iml-1.0.1.p9/src/src/libiml_la-basisop.o:       ELF 32-
> >  > > bit MSB relocatable, PowerPC or
> >  > > cisco 4500, version 1 (SYSV), not stripped
> >  > > build/sage-2.10.2> which cc
> >  > > /usr/bin/cc
> >  > > build/sage-2.10.2> cc -c foo.c
> >  > > build/sage-2.10.2> file foo.o
> >  > > foo.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1
> >  > > (SYSV), not stripped
> >  > > build/sage-2.10.2> gcc -c foo.c
> >  > > build/sage-2.10.2> file foo.o
> >  > > foo.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1
> >  > > (SYSV), not stripped
> >  > > build/sage-2.10.2> rm foo.*
> >  > > build/sage-2.10.2> gcc -v
> >  > > Using built-in specs.
> >  > > Target: powerpc64-suse-linux
> >  > > Configured with: ../configure --enable-threads=posix --prefix=/usr --
> >  > > with-local-prefix=/usr/local
> >  > > --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --
> >  > > libexecdir=/usr/lib
> >  > > --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-
> >  > > checking=release
> >  > > --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-
> >  > > libssp --disable-libgcj--with-slibdir=/lib --with-system-zlib --enable-
> >  > > shared --enable-__cxa_atexit
> >  > > --enable-libstdcxx-allocator=new --program-suffix= --enable-version-
> >  > > specific-runtime-libs
> >  > > --without-system-libunwind --with-cpu=default32 --enable-secureplt --
> >  > > with-long-double-128
> >  > > --host=powerpc64-suse-linux
> >  > > Thread model: posix
> >  > > gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)
>
> >  > >         Should I be looking for a -maix64 or some such flag and remove
> >  > > it from the Makefiles? The other
> >  > > problem I have is that -lgfortran on my system pointed to /usr/lib/
> >  > > libgfortran.so.1 and this crashed
> >  > > the ATLAS compile. After I manually edited the make script, and typed
> >  > > make, it tried to rebuild the
> >  > > whole thing. I wish there was an option to start off from where the
> >  > > error occured.
>
> >  > Go into spkg/build/$SPKG and look into spkg-install and redo the missing
> >  > steps. It usually works if you know what you are doing, but you need to
> >  > touch the spkg's basename in spkg/installed after you are done. But I am
> >  > sure you will encounter many other problems, especially on startup since
> >  > python for example is also likely to be build in 32 bit mode.
>
> >  > I have played with Python 2.5.2 during the last couple days at Sage Days
> >  > 8 and we now can build it on OSX in 64 bit mode, so I know all the
> >  > tricks now to make it work on PPC 64, too.
>
> >  > I am very interested in feedback on the PPC 64 bit port, so ping me
> >  > about it in a couple days to hear about progress.
>
> >  > >         Thanks,
> >  > >         - Sameer
>
> >  > Cheers,
>
> >  > Michael
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washingtonhttp://wstein.org
--~--~---------~--~----~------------~-------~--~----~
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