#9221: update matplotlib to 1.0.0 and clean out the patches
---------------------------+------------------------------------------------
Reporter: jason | Owner: jason, was
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.5
Component: graphics | Keywords:
Author: Jason Grout | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Changes (by drkirkby):
* status: needs_info => needs_work
Comment:
Replying to [comment:6 jason]:
> This was in the log, so I think this should compile on Solaris now:
>
> {{{
> 2010-07-02 Modified CXX/WrapPython.h to fix "swab bug" on solaris so
> mpl can compile on Solaris with CXX6 in the trunk. Closes
> tracker bug 3022815 - JDH
> }}}
No such luck. I've tried on both Solaris 10 on SPARC, and !OpenSolaris on
x64. It looks like a mix of compilation modes is causing them to get two
different definitions for ''swab''.
The bug tracker suggests this was a very recent fix, so may not have made
it into 1.0. If if did make it into 1.0, then it failed to solve the
problem.
== Solaris 10 update with Sun UltraSPARC T2+ processors ==
* Sun T5240
* 2 x 8 core, 64-thread UltraSPARC T2+ 1167 MHz
* 32 GB RAM
* Solaris 10 update 7 (05/09)
* t2.math.washtington.edu
* gcc 4.4.1 configured to use both the Sun linker and assembler.
* A build of sage-4.5.alpha4 was used to test matplotlib-1.0.0.spkg
* MD5 checksum of matplotlib-1.0.0.spkg was
cb9f3cb0ec3da550d2d67ea7e8b6094f
* 32-bit build (This is the default). The environment variable
{{{SAGE64}}} was '''not''' used.
{{{
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6
/site-packages/numpy/core/include
-I/tmp/kirkby/sage-4.5.alpha4/local/include -I.
-I/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include -Isrc -Iagg24/include -I.
-I/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include
-I/tmp/kirkby/sage-4.5.alpha4/local/include/freetype2
-I/tmp/kirkby/sage-4.5.alpha4/local/include -I.
-I/tmp/kirkby/sage-4.5.alpha4/local/include/python2.6 -c
agg24/src/agg_vcgen_dash.cpp -o
build/temp.solaris-2.10-sun4v-2.6/agg24/src/agg_vcgen_dash.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6
/site-packages/numpy/core/include
-I/tmp/kirkby/sage-4.5.alpha4/local/include -I.
-I/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include -Isrc -Iagg24/include -I.
-I/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include
-I/tmp/kirkby/sage-4.5.alpha4/local/include/freetype2
-I/tmp/kirkby/sage-4.5.alpha4/local/include -I.
-I/tmp/kirkby/sage-4.5.alpha4/local/include/python2.6 -c
agg24/src/agg_image_filters.cpp -o
build/temp.solaris-2.10-sun4v-2.6/agg24/src/agg_image_filters.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6
/site-packages/numpy/core/include
-I/tmp/kirkby/sage-4.5.alpha4/local/include -I.
-I/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include -Isrc -Iagg24/include -I.
-I/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include
-I/tmp/kirkby/sage-4.5.alpha4/local/include/freetype2
-I/tmp/kirkby/sage-4.5.alpha4/local/include -I.
-I/tmp/kirkby/sage-4.5.alpha4/local/include/python2.6 -c
src/backend_agg.cpp -o build/temp.solaris-2.10-sun4v-2.6/src/backend_agg.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
In file included from
/tmp/kirkby/sage-4.5.alpha4/local/include/python2.6/Python.h:8,
from ./CXX/WrapPython.h:61,
from ./CXX/Extensions.hxx:37,
from src/ft2font.h:4,
from src/backend_agg.cpp:10:
/tmp/kirkby/sage-4.5.alpha4/local/include/python2.6/pyconfig.h:1013:1:
warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/sys/types.h:18,
from
/tmp/kirkby/sage-4.5.alpha4/local/include/zconf.h:364,
from /tmp/kirkby/sage-4.5.alpha4/local/include/zlib.h:34,
from /tmp/kirkby/sage-4.5.alpha4/local/include/png.h:470,
from src/backend_agg.cpp:3:
/usr/local/gcc-4.4.1-sun-linker/bin/../lib/gcc/sparc-sun-solaris2.10/4.4.1
/include-fixed/sys/feature_tests.h:197:1: warning: this is the location of
the previous definition
In file included from
/tmp/kirkby/sage-4.5.alpha4/local/include/python2.6/Python.h:42,
from ./CXX/WrapPython.h:61,
from ./CXX/Extensions.hxx:37,
from src/ft2font.h:4,
from src/backend_agg.cpp:10:
/usr/include/stdlib.h:144: error: declaration of C function ‘void
swab(const char*, char*, ssize_t)’ conflicts with
/usr/include/unistd.h:496: error: previous declaration ‘void swab(const
void*, void*, ssize_t)’ here
error: command 'gcc' failed with exit status 1
Error building matplotlib package.
real 3m35.224s
user 3m20.924s
sys 0m9.504s
sage: An error occurred while installing matplotlib-1.0.0
}}}
== !OpenSolaris 2009.06 on x64 hardware ==
* Sun Ultra 27
* 1 x 3.33 GHz Intel W3580 Xeon. Quad core. 8 threads.
* 12 GB RAM
* !OpenSolaris 2009.06 snv_134 X86
* gcc 4.4.4 configured to use the Sun linker and GNU assembler.
* A build of sage-4.5.alpha4 was used to test matplotlib-1.0.0.spkg
* 64-bit build. !OpenSolaris defaults to 32-bit, but the environment
variable {{{SAGE64=yes}}} was used.
* MD5 checksum of matplotlib-1.0.0.spkg was
cb9f3cb0ec3da550d2d67ea7e8b6094f
{{{
gcc -DNDEBUG -g -O3 -m64 -Wall -Wstrict-prototypes -O2 -g -m64 -fPIC
-DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/export/home/drkirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include
-I/export/home/drkirkby/sage-4.5.alpha4/local/include -I.
-I/export/home/drkirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include -Isrc -Iagg24/include -I.
-I/export/home/drkirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include
-I/export/home/drkirkby/sage-4.5.alpha4/local/include -I.
-I/export/home/drkirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include/freetype2
-I/export/home/drkirkby/sage-4.5.alpha4/local/include/freetype2
-I./freetype2 -I/export/home/drkirkby/sage-4.5.alpha4/local/lib/python2.6
/site-packages/numpy/core/include/freetype2 -Isrc/freetype2
-Iagg24/include/freetype2 -I./freetype2
-I/export/home/drkirkby/sage-4.5.alpha4/local/lib/python2.6/site-
packages/numpy/core/include/freetype2
-I/export/home/drkirkby/sage-4.5.alpha4/local/include/freetype2
-I./freetype2
-I/export/home/drkirkby/sage-4.5.alpha4/local/include/python2.6 -c
src/backend_agg.cpp -o build/temp.solaris-2.11-i86pc-2.6/src/backend_agg.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
In file included from
/export/home/drkirkby/sage-4.5.alpha4/local/include/python2.6/Python.h:42,
from ./CXX/WrapPython.h:61,
from ./CXX/Extensions.hxx:37,
from src/ft2font.h:4,
from src/backend_agg.cpp:10:
/usr/include/stdlib.h:159: error: declaration of C function 'void
swab(const char*, char*, ssize_t)' conflicts with
/usr/include/unistd.h:513: error: previous declaration 'void swab(const
void*, void*, ssize_t)' here
src/backend_agg.cpp: In member function 'Py::Object
RendererAgg::draw_markers(const Py::Tuple&)':
src/backend_agg.cpp:727: warning: dereferencing type-punned pointer will
break strict-aliasing rules
src/backend_agg.cpp:727: warning: dereferencing type-punned pointer will
break strict-aliasing rules
src/backend_agg.cpp:763: warning: dereferencing type-punned pointer will
break strict-aliasing rules
src/backend_agg.cpp:763: warning: dereferencing type-punned pointer will
break strict-aliasing rules
error: command 'gcc' failed with exit status 1
Error building matplotlib package.
real 0m19.778s
user 0m17.826s
sys 0m1.441s
sage: An error occurred while installing matplotlib-1.0.0
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9221#comment:7>
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.