#6456: Upgrade cvxopt in sage from 0.9 to 1.1.2
--------------------------------+-------------------------------------------
Reporter: was | Owner: mabshoff
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.5.2
Component: packages | Keywords:
Author: schilly, dimpase | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------------+-------------------------------------------
Comment(by drkirkby):
Replying to [comment:59 jhpalmieri]:
> Two quick comments: both Dima's and Dave's packages seem to contain a
file {{{.SPKG.txt.swp}}}, which should not be there.
Well spotted.
> Also, I can't build these on the skynet machine mark (sparc solaris),
but I can if (following Dave's suggestion), I comment out these lines in
spkg-install:
> {{{
> cp -p patches/sun_complex.h src/src/C/
> cp -p patches/cvxopt.h src/src/C/
> }}}
It's odd, since if I comment those lines out on !OpenSolaris, it fails to
build:
{{{
copying python/coneprog.py -> build/lib.solaris-2.11-i86pc-2.6/cvxopt
running build_ext
building 'base' extension
creating build/temp.solaris-2.11-i86pc-2.6
creating build/temp.solaris-2.11-i86pc-2.6/C
gcc -DNDEBUG -g -O3 -m64 -Wall -Wstrict-prototypes -m64 -fPIC
-I/export/home/drkirkby/sage-4.5.2.alpha1/local/include/python2.6 -c
C/base.c -o build/temp.solaris-2.11-i86pc-2.6/C/base.o
C/base.c: In function 'convert_znum':
C/base.c:156: error: '_Imaginary_I' undeclared (first use in this
function)
C/base.c:156: error: (Each undeclared identifier is reported only once
C/base.c:156: error: for each function it appears in.)
C/base.c: In function 'initbase':
C/base.c:1727: warning: dereferencing type-punned pointer will break
strict-aliasing rules
C/base.c:1736: warning: dereferencing type-punned pointer will break
strict-aliasing rules
error: command 'gcc' failed with exit status 1
Error building/installing cvxopt
}}}
I think Dima's package
http://boxen.math.washington.edu/home/dima/packages/cvxopt-1.1.2.p1.spkg
has a syntax error in the patch, so that will fail on Solaris. But my own
package
http://boxen.math.washington.edu/home/kirkby/patches/cvxopt-1.1.2.spkg
lacks that syntax error. But it seems to be necessary to add patches on
some version of Solaris and messes up the build on another.
> I haven't tried building on t2 with this modification.
Do not be too surprised if you need to change it again!
I will need to double-check if the old version of cvxopt was building on
!OpenSolaris. I think it was, but #9525 shows that the package would
report it had built, even if it failed.
I've deleted my older builds on !OpenSolaris but since I use a ZFS file
system, with snapshots enabled every 15 minutes, so I can easily get back
to an older build. Or I could just rebuild an older Sage on here, as it
takes less than half an hour. I do need to check what's happening here.
Unfortunately, the last few weeks I seem to be spending a lot of time
trying to test things on Solaris for people. I've been involved in the
cvxopt, Pari, Singular and some other package updates.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6456#comment:60>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.