matplotlib/matplotlib — pull request #2705 by mdboom (2014-01-13 16:03:33+00:00)
Title: Build fails on OS X with NumPy 1.9

The current Matplotlib master fails to build against NumPy 1.9, also from master. I get the following:

/Library/Python/2.7/site-packages/numpy-1.9.0.dev_ff7d5f9-py2.7-macosx-10.9-intel.egg/numpy/core/include/numpy/npy_3kcompat.h:255: warning: deprecated conversion from string constant to ‘char*’
src/ft2font.cpp: In member function ‘Py::Object FT2Image::py_write_bitmap(const Py::Tuple&)’:
src/ft2font.cpp:195: warning: statement has no effect
src/ft2font.cpp: In function ‘void close_file_callback(FT_StreamRec_*)’:
src/ft2font.cpp:2144: warning: statement has no effect
src/ft2font.cpp: In member function ‘int FT2Font::make_open_args(PyObject*, FT_Open_Args*)’:
src/ft2font.cpp:2207: warning: deprecated conversion from string constant to ‘char*’
src/ft2font.cpp:2207: warning: deprecated conversion from string constant to ‘char*’
error: command 'gcc-4.2' failed with exit status 1

I generate new builds every couple of weeks, using the same script:

cd ../matplotlib
git pull
sudo rm -rf build dist
make -f make.custom binaries
sudo easy_install -Z -N dist/*egg
cp dist/*egg ../ScipySuperpack

This is the first time I have seen this failure. OS X 10.9.1, gcc 4.2.1.