Date: Thu, 1 Sep 2011 22:56:04 GMT From: Hartmann@FreeBSD.org, "O." <ohartman@zedat.fu-berlin.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/160378: x11-toolkits/py-wxPython28-common: CLANG compilation fails with error! Message-ID: <201109012256.p81Mu48K086988@red.freebsd.org> Resent-Message-ID: <201109012300.p81N0M7d057325@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 160378 >Category: ports >Synopsis: x11-toolkits/py-wxPython28-common: CLANG compilation fails with error! >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 01 23:00:21 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Hartmann, O. >Release: FreeBSD 9.0-BETA2/amd64 (clang compiled) >Organization: FU Berlin >Environment: >Description: Compiling port x11-toolkits/py-wxPython28-common fails with the following error: In file included from src/helpers.cpp:15: In file included from /usr/local/include/python2.7/Python.h:33: In file included from /usr/include/stdio.h:41: /usr/include/sys/_types.h:90:21: error: cannot combine with previous 'type-name' declaration specifier typedef __ct_rune_t __wchar_t; /* wchar_t (see above) */ ^ <command line>:2:19: note: expanded from: #define __wchar_t wchar_t ^ src/helpers.cpp:510:45: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] PyObject* sysargv = PySys_GetObject("argv"); ^ src/helpers.cpp:511:48: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] PyObject* executable = PySys_GetObject("executable"); ^ src/helpers.cpp:734:45: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] wxPyAssertionError = PyErr_NewException("wx._core.PyAssertionError", ^ src/helpers.cpp:739:41: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] wxPyNoAppError = PyErr_NewException("wx._core.PyNoAppError", ^ src/helpers.cpp:903:61: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] PyObject* rv = PyObject_CallMethod(self->m_obj, "__del__", NULL); ^ src/helpers.cpp:1383:40: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] PyObject* read = wxPyGetMethod(py, "read"); ^ src/helpers.cpp:1384:40: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] PyObject* seek = wxPyGetMethod(py, "seek"); ^ src/helpers.cpp:1385:40: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] PyObject* tell = wxPyGetMethod(py, "tell"); ^ src/helpers.cpp:1465:5: warning: array index of '1' indexes past the end of an array (that contains 1 elements) [-Warray-bounds] PyTuple_SET_ITEM(arglist, 1, PyInt_FromLong(mode)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python2.7/tupleobject.h:54:37: note: expanded from: #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v) ^ /usr/local/include/python2.7/tupleobject.h:26:5: note: array 'ob_item' declared here PyObject *ob_item[1]; ^ src/helpers.cpp:1578:41: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] PyObject* write = wxPyGetMethod(py, "write"); ^ src/helpers.cpp:1579:40: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] PyObject* seek = wxPyGetMethod(py, "seek"); ^ src/helpers.cpp:1580:40: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] PyObject* tell = wxPyGetMethod(py, "tell"); ^ src/helpers.cpp:1653:5: warning: array index of '1' indexes past the end of an array (that contains 1 elements) [-War PyTuple_SET_ITEM(arglist, 1, PyInt_FromLong(mode)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python2.7/tupleobject.h:54:37: note: expanded from: #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v) ^ /usr/local/include/python2.7/tupleobject.h:26:5: note: array 'ob_item' declared here PyObject *ob_item[1]; ^ src/helpers.cpp:1781:47: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-str result = PyObject_CallMethod(arg, "GetSkipped", ""); ^ src/helpers.cpp:1781:61: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-str result = PyObject_CallMethod(arg, "GetSkipped", ""); ^ src/helpers.cpp:2452:18: warning: array index of '1' indexes past the end of an array (that contains 1 elements) [-Wa o2 = PySequence_Fast_GET_ITEM(o, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python2.7/abstract.h:1168:49: note: expanded from: (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i)) ^ /usr/local/include/python2.7/tupleobject.h:50:34: note: expanded from: #define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i]) ^ ~ /usr/local/include/python2.7/tupleobject.h:26:5: note: array 'ob_item' declared here PyObject *ob_item[1]; ^ src/helpers.cpp:2510:16: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (*count < 0) { ~~~~~~ ^ ~ src/helpers.cpp:2535:18: warning: array index of '1' indexes past the end of an array (that contains 1 elements) [-Wa o2 = PySequence_Fast_GET_ITEM(o, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python2.7/abstract.h:1168:49: note: expanded from: (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i)) ^ /usr/local/include/python2.7/tupleobject.h:50:34: note: expanded from: #define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i]) ^ ~ /usr/local/include/python2.7/tupleobject.h:26:5: note: array 'ob_item' declared here PyObject *ob_item[1]; ^ src/helpers.cpp:2722:14: warning: array index of '1' indexes past the end of an array (that contains 1 elements) [-Wa o2 = PySequence_Fast_GET_ITEM(source, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python2.7/abstract.h:1168:49: note: expanded from: (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i)) ^ /usr/local/include/python2.7/tupleobject.h:50:34: note: expanded from: #define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i]) ^ ~ /usr/local/include/python2.7/tupleobject.h:26:5: note: array 'ob_item' declared here PyObject *ob_item[1]; ^ src/helpers.cpp:2749:14: warning: array index of '1' indexes past the end of an array (that contains 1 elements) [-Wa o2 = PySequence_Fast_GET_ITEM(source, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python2.7/abstract.h:1168:49: note: expanded from: (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i)) ^ /usr/local/include/python2.7/tupleobject.h:50:34: note: expanded from: #define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i]) ^ ~ /usr/local/include/python2.7/tupleobject.h:26:5: note: array 'ob_item' declared here PyObject *ob_item[1]; ^ src/helpers.cpp:2750:14: warning: array index of '2' indexes past the end of an array (that contains 1 elements) [-Wa o3 = PySequence_Fast_GET_ITEM(source, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python2.7/abstract.h:1168:49: note: expanded from: (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i)) ^ /usr/local/include/python2.7/tupleobject.h:50:34: note: expanded from: #define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i]) ^ ~ /usr/local/include/python2.7/tupleobject.h:26:5: note: array 'ob_item' declared here PyObject *ob_item[1]; ^ src/helpers.cpp:2751:14: warning: array index of '3' indexes past the end of an array (that contains 1 elements) [-Wa o4 = PySequence_Fast_GET_ITEM(source, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python2.7/abstract.h:1168:49: note: expanded from: (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i)) ^ /usr/local/include/python2.7/tupleobject.h:50:34: note: expanded from: #define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i]) ^ ~ /usr/local/include/python2.7/tupleobject.h:26:5: note: array 'ob_item' declared here PyObject *ob_item[1]; ^ 22 warnings and 1 error generated. error: command 'clang' failed with exit status 1 *** Error code 1 Stop in /usr/ports/x11-toolkits/py-wxPython28-common. ===>>> make failed for x11-toolkits/py-wxPython28-common ===>>> Aborting update ===>>> Update for x11-toolkits/py-wxPython28-common failed ===>>> Aborting update Terminated >How-To-Repeat: Try compiling x11-toolkits/py-wxPython28-common with clang. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109012256.p81Mu48K086988>