New submission from Brett Cannon:
I have not had test_distutils succeed in ages. It looks like various header
files are not being passed to the compiler properly as all three test failures
stem from PyModuleDef_HEAD_INIT supposedly not existing or some other macro.
Below is an example failure
test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase) ...
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:341:5:
error: use of undeclared identifier
'PyModuleDef_HEAD_INIT'
PyModuleDef_HEAD_INIT,
^
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:340:27:
error: variable has incomplete type
'struct PyModuleDef'
static struct PyModuleDef xxmodule = {
^
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:340:15:
note: forward declaration of
'struct PyModuleDef'
static struct PyModuleDef xxmodule = {
^
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:370:9:
warning: implicit declaration of function
'PyModule_Create' is invalid in C99 [-Wimplicit-function-declaration]
m = PyModule_Create(&xxmodule);
^
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:392:5:
error: void function 'PyInit_xx' should
not return a value [-Wreturn-type]
return m;
^ ~
/var/folders/00/030sr000h01000cxqpysvccm000c37/T/tmpx392aa/xxmodule.c:395:5:
error: void function 'PyInit_xx' should
not return a value [-Wreturn-type]
return NULL;
^ ~~~~
1 warning and 4 errors generated.
ERROR
----------
assignee: eric.araujo
components: Distutils, Macintosh
messages: 190615
nosy: brett.cannon, eric.araujo, tarek
priority: normal
severity: normal
stage: needs patch
status: open
title: test_distutils failing under OS X 10.8 w/ clang
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18136>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com