Michael, William,
   Here is an update on AIX. I found why sage startup was crashing in
real_mpfi.so. I rebuilt libmpfi.so and recompiled real_mpfi.pyx and
complex_double.pyx. The illegal instruction error was due to an error
in building libmpfi.so caused by arguments given by libtool. By
testing with the supplied testcases I was able to narrow it down.
Also, for the list, I edited sage/rings/polynomial/
mult_polynomial_libsingular.pyx and replaced the arguments to dlopen
call to

handle = dlopen(lib, 65536+4);

It was using 256+1 earlier (RTLD_GLOBAL  | RTLD_LAZY). These values
are defined differently in AIX's dlfcn.h as shown above.

Now I am running into another error:
> /usr/local/PET/src/build/sage-3.1.1/local/lib/python2.5/site-packages/sage/matrix/matrix_space.py(38)<module>()
-> import matrix_modn_dense
(Pdb) s
--Call--
> /usr/local/PET/src/build/sage-3.1.1/local/lib/python2.5/site-packages/sage/libs/linbox/__init__.py(1)<module>()
(Pdb) s
> /usr/local/PET/src/build/sage-3.1.1/local/lib/python2.5/site-packages/sage/libs/linbox/__init__.py(1)<module>()
(Pdb) s
--Return--
> /usr/local/PET/src/build/sage-3.1.1/local/lib/python2.5/site-packages/sage/libs/linbox/__init__.py(1)<module>()->None
(Pdb) s
/usr/local/PET/src/build/sage-3.1.1/local/bin/sage-sage: line 226:
28756 Illegal instruction     (core dumped) sage-ipython "$@" -c
"$SAGE_STARTUP_COMMAND;"
>

I checked the __init__.py file and it has 0 bytes:> ls -lt /usr/local/
PET/src/build/sage-3.1.1/local/lib/python2.5/site-packages/sage/libs/
linbox/__init__.py
-rw-r-----    1 sameer                 0 Dec 20 2007  /usr/local/PET/
src/build/sage-3.1.1/local/lib/python2.5/site-packages/sage/libs/
linbox/__init__.py

Is this normal? I think there may be another library (linbox) that
probably needs to be rebuilt, but what I was wondering if this null
init.py file is designed to be this way or if it is just an error in
my installation. I think the illegal instruction probably points to an
incorrectly installed liblinbox.so on which linbox.so is based, but I
thought I would check with you.

Thanks!
- Sameer

On Oct 28, 3:19 pm, Sameer <[EMAIL PROTECTED]> wrote:
> Michael, William,
>    Thank you so much for the suggestions. I will re-install pexpect
> and see if it helps. Yes, I am getting closer to the end (~60-70
> packages built) but without pexpect/gap it is difficult to get sage to
> boot up. I will meet and speak to Jose this week and request that you
> get accounts on their IBM AIX and Linux system. There may be some
> delay due to the paperwork involved, but it would be great if we can
> add support for these systems in the sage repository. I have also
> ported sage to ppc64 Linux at their center. I will keep you posted on
> the progress on AIX.
>    Thanks!
>    - Sameer
>
> On Oct 28, 4:21 am, mabshoff <[EMAIL PROTECTED]
>
> dortmund.de> wrote:
> > On Oct 27, 10:42 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
>
> > > On Mon, Oct 27, 2008 at 9:15 PM, Sameer <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >    I am trying to port sage 3.1.1 to an IBM Power5 AIX system. After
> > > > I install gap (in 32 bits), I get:
>
> > So how far did you get building Sage? If GAP is the problem it sounds
> > like you get next to the end.
>
> > From the error messages above it also seems like it could be a pexpect
> > issue. If GAP by itself starts up cleanly I would assume that the
> > problem is in pexpect.
>
> > > Just out of curiosity, is this a machine you could give some (any?)
> > > of the Sage developers accounts on?  We would love to officially
> > > support AIX.  So far, none of us have ever been able to get access to
> > > an AIX box.
>
> > +1
>
> > > William
>
> > Cheers,
>
> > Michael
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to