OSX build under universal python fails

I'm trying to get a built of Matplotlib built under Python.org Python 2.5.2,
but get
the following build error, which did not occur under Leopard's
python:

src/_image.cpp: In member function ‘Py::Object _image_module::
from_images (const Py::Tuple&)’:
src/_image.cpp:848: error: insn does not satisfy its constraints:
(insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
(mem:QI (plus:SI (reg/f:SI 6 bp)
                (const_int -280 [0xfffffffffffffee8])) [0 SR.2970+0 S1 A8])
        (reg:QI 5 di)) 56 {*movqi_1} (nil)
    (nil))
src/_image.cpp:848: internal compiler error: in
reload_cse_simplify_operands, at postreload.c:391
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
error: command 'gcc' failed with exit status 1

Any idea as to what the problem may be?

Thanks in advance.

Chris,

Based on recent emails, this looks like a problem attributed to the gcc version, not the python version. Suggested solutions are compile with the -Os flag or use gcc 4.2.

Eric

Chris wrote:

···

I'm trying to get a built of Matplotlib built under Python.org Python 2.5.2, but get
the following build error, which did not occur under Leopard's python:

src/_image.cpp: In member function ‘Py::Object _image_module::
from_images (const Py::Tuple&)’:
src/_image.cpp:848: error: insn does not satisfy its constraints:
(insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set (mem:QI (plus:SI (reg/f:SI 6 bp)
                (const_int -280 [0xfffffffffffffee8])) [0 SR.2970+0 S1 A8])
        (reg:QI 5 di)) 56 {*movqi_1} (nil)
    (nil))
src/_image.cpp:848: internal compiler error: in reload_cse_simplify_operands, at postreload.c:391
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter&gt; for instructions.
error: command 'gcc' failed with exit status 1

Any idea as to what the problem may be?

Thanks in advance.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options