Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.3 build failure #1772

Closed
takluyver opened this issue Feb 21, 2013 · 4 comments
Closed

Python 3.3 build failure #1772

takluyver opened this issue Feb 21, 2013 · 4 comments

Comments

@takluyver
Copy link
Contributor

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
Copy link
Member

mdboom commented Feb 21, 2013

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
Copy link
Contributor Author

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
Copy link
Member

mdboom commented Feb 22, 2013

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants