Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Python 3.3 build failure #1772

Closed
takluyver opened this Issue · 4 comments

2 participants

@takluyver

Launchpad builds failed on Python 3.3 today. The relevant section of the build log appears to be:

/usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_3kcompat.h: In function 'void simple_capsule_dtor(PyObject*)':
/usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_3kcompat.h:354:34: error: declaration of C function 'void simple_capsule_dtor(PyObject*)' conflicts with
src/backend_agg.cpp:47:37: error: previous declaration 'void simple_capsule_dtor(void*)' here
src/backend_agg.cpp: In member function 'Py::Object RendererAgg::draw_markers(const Py::Tuple&)':
src/backend_agg.cpp:750:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/backend_agg.cpp:750:45: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/backend_agg.cpp:786:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/backend_agg.cpp:786:45: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/backend_agg.cpp: At global scope:
src/backend_agg.cpp:47:37: warning: 'void simple_capsule_dtor(void*)' declared 'static' but never defined [-Wunused-function]
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

It's likely to do with these changes, although my C++ isn't enough to see the problem.

@mdboom
Owner

The purpose of that code was to remove a warning message, but apparently on a different compiler it's now creating a compiler error. I've gone ahead and removed it on master. @takluyver: If this fixes things for Launchpad, please just go ahead and close this issue. Otherwise, let us know what other compiler error is hiding behind this one ;)

@takluyver

Today, there's a similar issue in a different file:

/usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_3kcompat.h: In function 'void simple_capsule_dtor(PyObject*)':
/usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_3kcompat.h:354:34: error: declaration of C function 'void simple_capsule_dtor(PyObject*)' conflicts with
src/_png.cpp:35:37: error: previous declaration 'void simple_capsule_dtor(void*)' here
src/_png.cpp: In member function 'PyObject* _png_module::_read_png(const Py::Object&, bool, int)':
src/_png.cpp:335:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
src/_png.cpp: At global scope:
src/_png.cpp:35:37: warning: 'void simple_capsule_dtor(void*)' declared 'static' but never defined [-Wunused-function]
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Build log: https://launchpadlibrarian.net/132020256/buildlog_ubuntu-raring-amd64.matplotlib_1.2.0~1%2B6489%2B17~raring1_FAILEDTOBUILD.txt.gz

@mdboom
Owner

Thanks. Grep tells me that's the last of that type, but, again, let me know if there's something else lurking behind this error.

@takluyver

The latest builds are passing again, so I'll close this. Thanks!

@takluyver takluyver closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.