Opened 19 years ago

Closed 19 years ago

#3257 closed defect (fixed)

py-matplotlib fails to build

Reported by: Daniel.hartmanstorfer@… Owned by: michaelm@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

I tried to build using gcc 4.0 and 3.3 Error message with 4.0:

Daniel:~ Daniel$ sudo port -c install py-matplotlib ---> Verifying checksum(s) for antigraingeometry ---> Extracting antigraingeometry ---> Applying patches to antigraingeometry ---> Configuring antigraingeometry ---> Building antigraingeometry with target all ---> Staging antigraingeometry into destroot ---> Packaging tgz archive for antigraingeometry 2.3_2 ---> Installing antigraingeometry 2.3_2 ---> Activating antigraingeometry 2.3_2 ---> Cleaning antigraingeometry ---> Fetching py-matplotlib ---> Attempting to fetch matplotlib-0.72.1.tar.gz from http://voxel.dl.sourceforge.net/matplotlib ---> Attempting to fetch matplotlib-0.72.1.tar.gz from http://kent.dl.sourceforge.net/matplotlib ---> Verifying checksum(s) for py-matplotlib ---> Extracting py-matplotlib ---> Applying patches to py-matplotlib ---> Configuring py-matplotlib ---> Building py-matplotlib with target build Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_python_py- matplotlib/work/matplotlib-0.72.1" && MPLIB_BASE="/opt/local" /opt/local/bin/python2.4 setup.py build" returned error 1 Command output: src/_na_transforms.cpp:885: error: 'retx' was not declared in this scope src/_na_transforms.cpp:885: error: expected primary-expression before ')' token src/_na_transforms.cpp:885: error: expected `;' before "PyArray_FromDims" src/_na_transforms.cpp:892: error: 'rety' was not declared in this scope src/_na_transforms.cpp:892: error: expected primary-expression before ')' token src/_na_transforms.cpp:892: error: expected `;' before "PyArray_FromDims" src/_na_transforms.cpp: In function `void init_na_transforms()': src/_na_transforms.cpp:1898: error: 'import_array' was not declared in this scope ./CXX/Extensions.hxx: In constructor `Py::PythonExtension<T>::PythonExtension() [with T = LazyValue]': src/_transforms.h:57: instantiated from here ./CXX/Extensions.hxx:472: warning: right-hand operand of comma has no effect ./CXX/Extensions.hxx: In constructor `Py::PythonExtension<T>::PythonExtension() [with T = Func]': src/_transforms.h:364: instantiated from here ./CXX/Extensions.hxx:472: warning: right-hand operand of comma has no effect ./CXX/Extensions.hxx: In constructor `Py::PythonExtension<T>::PythonExtension() [with T = FuncXY]': src/_transforms.h:423: instantiated from here ./CXX/Extensions.hxx:472: warning: right-hand operand of comma has no effect ./CXX/Extensions.hxx: In constructor `Py::PythonExtension<T>::PythonExtension() [with T = Transformation]': src/_transforms.h:467: instantiated from here ./CXX/Extensions.hxx:472: warning: right-hand operand of comma has no effect ./CXX/Extensions.hxx: In constructor `Py::PythonExtension<T>::PythonExtension() [with T = Point]': src/_na_transforms.cpp:120: instantiated from here ./CXX/Extensions.hxx:472: warning: right-hand operand of comma has no effect ./CXX/Extensions.hxx: In constructor `Py::PythonExtension<T>::PythonExtension() [with T = Interval]': src/_na_transforms.cpp:135: instantiated from here ./CXX/Extensions.hxx:472: warning: right-hand operand of comma has no effect ./CXX/Extensions.hxx: In constructor `Py::PythonExtension<T>::PythonExtension() [with T = Bbox]': src/_na_transforms.cpp:184: instantiated from here ./CXX/Extensions.hxx:472: warning: right-hand operand of comma has no effect error: command 'gcc' failed with exit status 1

And, error with gcc 3.3:

Default compiler has been set to: gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)

Daniel:~ Daniel$ sudo port -c install py-matplotlib ---> Building py-matplotlib with target build Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_python_py- matplotlib/work/matplotlib-0.72.1" && MPLIB_BASE="/opt/local" /opt/local/bin/python2.4 setup.py build" returned error 1 Command output: gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Isrc -I. -I/ Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/_na_transforms.cpp -o build/temp.darwin-8.1.0-Power_Macintosh-2.4/src/_na_transforms.o -DNUMARRAY=1 src/_na_transforms.cpp:6:35: numarray/arrayobject.h: No such file or directory src/_na_transforms.cpp: In member function `Py::Object

Bbox::update_numerix(const Py::Tuple&)':

src/_na_transforms.cpp:408: error: `PyArrayObject' undeclared (first use this

function)

src/_na_transforms.cpp:408: error: (Each undeclared identifier is reported only

once for each function it appears in.)

src/_na_transforms.cpp:408: error: `x' undeclared (first use this function) src/_na_transforms.cpp:408: error: parse error before `)' token src/_na_transforms.cpp:414: error: `y' undeclared (first use this function) src/_na_transforms.cpp:414: error: parse error before `)' token src/_na_transforms.cpp: In member function `Py::Object

Transformation::numerix_x_y(const Py::Tuple&)':

src/_na_transforms.cpp:782: error: parse error before `)' token src/_na_transforms.cpp:788: error: parse error before `)' token src/_na_transforms.cpp:813: error: `retx' undeclared (first use this function) src/_na_transforms.cpp:813: error: parse error before `)' token src/_na_transforms.cpp:820: error: `rety' undeclared (first use this function) src/_na_transforms.cpp:820: error: parse error before `)' token src/_na_transforms.cpp: In member function `Py::Object

Transformation::nonlinear_only_numerix(const Py::Tuple&)':

src/_na_transforms.cpp:863: error: parse error before `)' token src/_na_transforms.cpp:869: error: parse error before `)' token src/_na_transforms.cpp:885: error: parse error before `)' token src/_na_transforms.cpp:892: error: parse error before `)' token src/_na_transforms.cpp: In function `void init_na_transforms()': src/_na_transforms.cpp:1898: error: `import_array' undeclared (first use this

function)

error: command 'gcc' failed with exit status 1

Attachments (1)

patch-setupext.py.diff (827 bytes) - added by cmalek@… 19 years ago.
patch to setupext.py for matplotlib-0.82

Download all attachments as: .zip

Change History (3)

comment:1 Changed 19 years ago by jmpp@…

Owner: changed from darwinports-bugs@… to michaelm@…
Summary: py-matplotlib fails to build py-matplotlib fails to build

Changed 19 years ago by cmalek@…

Attachment: patch-setupext.py.diff added

patch to setupext.py for matplotlib-0.82

comment:2 Changed 19 years ago by michaelm@…

Resolution: fixed
Status: newclosed

thanks for the patch, update committed (also switched over to using port:foo deps)

Note: See TracTickets for help on using tickets.