Hi folks, I'm having trouble building the current CVS version of mpl on OS X (10.3.9, Python 2.4). I am not using the 0.85 release because I want to use numerix=scipy. I previously installed a CVS checkout from Dec 2, and it built fine. It seemed to plot fine, except that the TeX example produced blank or flat-line labels. I just installed the latest scipy_core release (and the latest scipy from svn), and also thought I'd try the latest mpl from CVS to see if the TeX problem was fixed. Now it won't build; about 6min into the build it exits: gcc: src/mplutils.cpp gcc: CXX/cxx_extensions.cxx gcc: src/_na_transforms.cpp src/_na_transforms.cpp: In member function `Py::Object Bbox::update_numerix(const Py::Tuple&)': src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this function) src/_na_transforms.cpp:493: error: (Each undeclared identifier is reported only once for each function it appears in.) src/_na_transforms.cpp: In member function `Py::Object Bbox::update_numerix(const Py::Tuple&)': src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this function) src/_na_transforms.cpp:493: error: (Each undeclared identifier is reported only once for each function it appears in.) error: Command "gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Isrc -I. -I/usr/local/include -I/usr/include -I/sw/include -I. -I/Library/ Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/_na_transforms.cpp -o build/temp.darwin-7.9.0- Power_Macintosh-2.4/src/_na_transforms.o -DNUMARRAY=1" failed with exit status 1 I'd appreciate any help on how to fix this. I'm teaching a class of students using Python in about 4 weeks, and I need to provide them a version of things to set up on their laptops that I know will work with my examples. Thanks, Tom PS: If anyone has any tips on getting scipy to build properly on OS X, pass them along. The current version appears unable to find Apple's atlas, nor does it find the fftw libraries I installed in /usr/lib. ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/
Tom, The output to gcc shows that NUMARRAY is defined. Try undefining NUMARRAY and NUMERIC. -- Paul On 12/18/05, Tom Loredo <lo...@as...> wrote: > > > Hi folks, > > I'm having trouble building the current CVS version of mpl > on OS X (10.3.9, Python 2.4). I am not using the 0.85 release > because I want to use numerix=3Dscipy. I previously installed > a CVS checkout from Dec 2, and it built fine. It seemed to > plot fine, except that the TeX example produced blank or > flat-line labels. I just installed the latest scipy_core > release (and the latest scipy from svn), and also thought > I'd try the latest mpl from CVS to see if the TeX problem was > fixed. Now it won't build; about 6min into the build it exits: > > gcc: src/mplutils.cpp > gcc: CXX/cxx_extensions.cxx > gcc: src/_na_transforms.cpp > src/_na_transforms.cpp: In member function `Py::Object > Bbox::update_numerix(const Py::Tuple&)': > src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this > function) > src/_na_transforms.cpp:493: error: (Each undeclared identifier is reporte= d > only > once for each function it appears in.) > src/_na_transforms.cpp: In member function `Py::Object > Bbox::update_numerix(const Py::Tuple&)': > src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this > function) > src/_na_transforms.cpp:493: error: (Each undeclared identifier is reporte= d > only > once for each function it appears in.) > error: Command "gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp > -mno-fused-madd -fno-common -dynamic > -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Isrc -I. -I/usr/local/include > -I/usr/include -I/sw/include -I. -I/Library/ > Frameworks/Python.framework/Versions/2.4/include/python2.4 -c > src/_na_transforms.cpp -o build/temp.darwin-7.9.0- > Power_Macintosh-2.4/src/_na_transforms.o -DNUMARRAY=3D1" failed with exit > status 1 > > I'd appreciate any help on how to fix this. I'm teaching a class > of students using Python in about 4 weeks, and I need to provide > them a version of things to set up on their laptops that I know > will work with my examples. > > Thanks, > Tom > > PS: If anyone has any tips on getting scipy to build properly on > OS X, pass them along. The current version appears unable to find > Apple's atlas, nor does it find the fftw libraries I installed in > /usr/lib. > > > > > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- Paul Barrett, PhD Johns Hopkins University Assoc. Research Scientist Dept of Physics and Astronomy Phone: 410-516-5190 Baltimore, MD 21218
Tom Loredo <lo...@as...> writes: > I'm having trouble building the current CVS version of mpl > on OS X (10.3.9, Python 2.4). [...] numerix=scipy [...] > src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this function) I'm having the same problem in _nc_transforms.cpp, and I'm building on OS X 10.4.3, Python 2.4, gcc 4.0, and with -DNUMERIC=1 (no numarray, no scipy). It seems that the relevant lines in _transforms.cpp were last modified by astraw on 15-Dec-05. The following one-line change seems to fix that problem (but the rest of the build hasn't finished yet). I don't know what this does in other compilers, but comments in gcc's cmath suggest that the standard requires isnan to be in the std namespace. -- Jouni K Seppänen
Tom, thanks for the bug report and Jouni thanks for the fix, which I've just checked in. Cheers! Andrew Jouni K Seppanen wrote: >Tom Loredo <lo...@as...> writes: > > > >>I'm having trouble building the current CVS version of mpl >>on OS X (10.3.9, Python 2.4). [...] numerix=scipy [...] >>src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this function) >> >> > >I'm having the same problem in _nc_transforms.cpp, and I'm building on >OS X 10.4.3, Python 2.4, gcc 4.0, and with -DNUMERIC=1 (no numarray, >no scipy). It seems that the relevant lines in _transforms.cpp were >last modified by astraw on 15-Dec-05. > >The following one-line change seems to fix that problem (but the rest >of the build hasn't finished yet). I don't know what this does in >other compilers, but comments in gcc's cmath suggest that the standard >requires isnan to be in the std namespace. > > > >------------------------------------------------------------------------ > >Index: src/_transforms.cpp >=================================================================== >RCS file: /cvsroot/matplotlib/matplotlib/src/_transforms.cpp,v >retrieving revision 1.39 >diff -u -r1.39 _transforms.cpp >--- src/_transforms.cpp 15 Dec 2005 04:54:52 -0000 1.39 >+++ src/_transforms.cpp 19 Dec 2005 06:14:42 -0000 >@@ -444,6 +444,7 @@ > Py::Object > Bbox::update_numerix(const Py::Tuple &args) { > //update the boox from the numerix arrays x and y >+ using std::isnan; > _VERBOSE("Bbox::update_numerix"); > > args.verify_length(3); > >