Advertisement
JayAurabind

wxPython build error

Dec 23rd, 2014
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.38 KB | None | 0 0
  1. **** /usr/bin/python -u ./setup.py build_ext --inplace UNICODE=1 BUILD_BASE=build WX_CONFIG=/home/jay/Downloads/wxPython-src-3.0.2.0/bld/wx-config
  2. WARNING: WXWIN not set in environment. Assuming '..'
  3. Preparing CORE...
  4. Preparing STC...
  5. Preparing GLCANVAS...
  6. Preparing GIZMOS...
  7. running build_ext
  8. running build_ext
  9. building '_core_' extension
  10. creating build
  11. creating build/temp.linux-x86_64-2.7
  12. creating build/temp.linux-x86_64-2.7/src
  13. creating build/temp.linux-x86_64-2.7/src/gtk
  14. gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DSWIG_PYTHON_SILENT_MEMLEAK -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -Iinclude -Isrc -I/home/jay/Downloads/wxPython-src-3.0.2.0/bld/lib/wx/include/gtk2-unicode-3.0 -I/home/jay/Downloads/wxPython-src-3.0.2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/python2.7 -c src/helpers.cpp -o build/temp.linux-x86_64-2.7/src/helpers.o -pthread -O3 -pthread
  15. src/helpers.cpp: In member function ‘void wxPyApp::_BootstrapApp()’:
  16. src/helpers.cpp:565:51: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  17. PyObject* sysargv = PySys_GetObject("argv");
  18. ^
  19. src/helpers.cpp:574:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  20. pyArg = PySys_GetObject("executable");
  21. ^
  22. src/helpers.cpp: In function ‘PyObject* __wxPySetDictionary(PyObject*, PyObject*)’:
  23. src/helpers.cpp:805:73: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  24. PyExc_AssertionError, NULL);
  25. ^
  26. src/helpers.cpp:810:67: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  27. PyExc_RuntimeError, NULL);
  28. ^
  29. src/helpers.cpp: In function ‘void wxPyOORClientData_dtor(wxPyOORClientData*)’:
  30. src/helpers.cpp:963:74: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  31. PyObject* rv = PyObject_CallMethod(obj, "__del__", NULL);
  32. ^
  33. src/helpers.cpp: In static member function ‘static wxPyCBInputStream* wxPyCBInputStream::create(PyObject*, bool)’:
  34. src/helpers.cpp:1439:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  35. PyObject* read = wxPyGetMethod(py, "read");
  36. ^
  37. src/helpers.cpp:1440:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  38. PyObject* seek = wxPyGetMethod(py, "seek");
  39. ^
  40. src/helpers.cpp:1441:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  41. PyObject* tell = wxPyGetMethod(py, "tell");
  42. ^
  43. src/helpers.cpp: In static member function ‘static wxPyCBOutputStream* wxPyCBOutputStream::create(PyObject*, bool)’:
  44. src/helpers.cpp:1632:48: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  45. PyObject* write = wxPyGetMethod(py, "write");
  46. ^
  47. src/helpers.cpp:1633:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  48. PyObject* seek = wxPyGetMethod(py, "seek");
  49. ^
  50. src/helpers.cpp:1634:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  51. PyObject* tell = wxPyGetMethod(py, "tell");
  52. ^
  53. src/helpers.cpp: In member function ‘void wxPyCallback::EventThunker(wxEvent&)’:
  54. src/helpers.cpp:1838:63: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  55. result = PyObject_CallMethod(arg, "GetSkipped", "");
  56. ^
  57. src/helpers.cpp:1838:63: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  58. src/helpers.cpp: In function ‘bool wxColour_helper(PyObject*, wxColour**)’:
  59. src/helpers.cpp:3086:64: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  60. if (((pos = spec.Find(':', true)) != wxNOT_FOUND) && (pos == spec.length()-3)) {
  61. ^
  62. gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DSWIG_PYTHON_SILENT_MEMLEAK -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -Iinclude -Isrc -I/home/jay/Downloads/wxPython-src-3.0.2.0/bld/lib/wx/include/gtk2-unicode-3.0 -I/home/jay/Downloads/wxPython-src-3.0.2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/python2.7 -c src/gtk/_core_wrap.cpp -o build/temp.linux-x86_64-2.7/src/gtk/_core_wrap.o -pthread -O3 -pthread
  63. src/gtk/_core_wrap.cpp: In function ‘void SWIG_Python_AddErrorMsg(const char*)’:
  64. src/gtk/_core_wrap.cpp:864:42: error: format not a string literal and no format arguments [-Werror=format-security]
  65. PyErr_Format(PyExc_RuntimeError, mesg);
  66. ^
  67. src/gtk/_core_wrap.cpp: In function ‘void PySwigObject_dealloc(PyObject*)’:
  68. src/gtk/_core_wrap.cpp:1447:19: warning: unused variable ‘name’ [-Wunused-variable]
  69. const char *name = SWIG_TypePrettyName(ty);
  70. ^
  71. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Point2D___iadd__(PyObject*, PyObject*, PyObject*)’:
  72. src/gtk/_core_wrap.cpp:9399:14: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  73. wxPoint2D *result = 0 ;
  74. ^
  75. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Point2D___isub__(PyObject*, PyObject*, PyObject*)’:
  76. src/gtk/_core_wrap.cpp:9439:14: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  77. wxPoint2D *result = 0 ;
  78. ^
  79. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Point2D___imul__(PyObject*, PyObject*)’:
  80. src/gtk/_core_wrap.cpp:9479:14: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  81. wxPoint2D *result = 0 ;
  82. ^
  83. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Point2D___idiv__(PyObject*, PyObject*)’:
  84. src/gtk/_core_wrap.cpp:9515:14: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  85. wxPoint2D *result = 0 ;
  86. ^
  87. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Image_Rescale(PyObject*, PyObject*, PyObject*)’:
  88. src/gtk/_core_wrap.cpp:18188:12: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  89. wxImage *result = 0 ;
  90. ^
  91. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Image_Resize(PyObject*, PyObject*, PyObject*)’:
  92. src/gtk/_core_wrap.cpp:18254:12: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  93. wxImage *result = 0 ;
  94. ^
  95. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Window_SetVirtualSizeHints(PyObject*, PyObject*, PyObject*)’:
  96. src/gtk/_core_wrap.cpp:39615:52: warning: ‘virtual void wxWindowBase::SetVirtualSizeHints(int, int, int, int)’ is deprecated (declared at /home/jay/Downloads/wxPython-src-3.0.2.0/include/wx/window.h:459) [-Wdeprecated-declarations]
  97. (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
  98. ^
  99. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Window_SetVirtualSizeHintsSz(PyObject*, PyObject*, PyObject*)’:
  100. src/gtk/_core_wrap.cpp:39661:76: warning: ‘void wxWindowBase::SetVirtualSizeHints(const wxSize&, const wxSize&)’ is deprecated (declared at /home/jay/Downloads/wxPython-src-3.0.2.0/include/wx/window.h:461) [-Wdeprecated-declarations]
  101. (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
  102. ^
  103. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Window_MakeModal(PyObject*, PyObject*, PyObject*)’:
  104. src/gtk/_core_wrap.cpp:41131:27: warning: ‘virtual void wxWindowBase::MakeModal(bool)’ is deprecated (declared at /home/jay/Downloads/wxPython-src-3.0.2.0/include/wx/window.h:688) [-Wdeprecated-declarations]
  105. (arg1)->MakeModal(arg2);
  106. ^
  107. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Window_SetHelpTextForId(PyObject*, PyObject*, PyObject*)’:
  108. src/gtk/_core_wrap.cpp:46087:53: warning: ‘void wxWindowBase::SetHelpTextForId(const wxString&)’ is deprecated (declared at /home/jay/Downloads/wxPython-src-3.0.2.0/include/wx/window.h:1294) [-Wdeprecated-declarations]
  109. (arg1)->SetHelpTextForId((wxString const &)*arg2);
  110. ^
  111. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Validator_SetBellOnError(PyObject*, PyObject*, PyObject*)’:
  112. src/gtk/_core_wrap.cpp:47520:37: warning: ‘static void wxValidator::SetBellOnError(bool)’ is deprecated (declared at /home/jay/Downloads/wxPython-src-3.0.2.0/include/wx/validate.h:81) [-Wdeprecated-declarations]
  113. wxValidator::SetBellOnError(arg1);
  114. ^
  115. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Proportion(PyObject*, PyObject*, PyObject*)’:
  116. src/gtk/_core_wrap.cpp:59166:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  117. wxSizerFlags *result = 0 ;
  118. ^
  119. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Align(PyObject*, PyObject*, PyObject*)’:
  120. src/gtk/_core_wrap.cpp:59210:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  121. wxSizerFlags *result = 0 ;
  122. ^
  123. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Expand(PyObject*, PyObject*)’:
  124. src/gtk/_core_wrap.cpp:59253:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  125. wxSizerFlags *result = 0 ;
  126. ^
  127. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Centre(PyObject*, PyObject*)’:
  128. src/gtk/_core_wrap.cpp:59286:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  129. wxSizerFlags *result = 0 ;
  130. ^
  131. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Center(PyObject*, PyObject*)’:
  132. src/gtk/_core_wrap.cpp:59319:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  133. wxSizerFlags *result = 0 ;
  134. ^
  135. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Left(PyObject*, PyObject*)’:
  136. src/gtk/_core_wrap.cpp:59352:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  137. wxSizerFlags *result = 0 ;
  138. ^
  139. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Right(PyObject*, PyObject*)’:
  140. src/gtk/_core_wrap.cpp:59385:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  141. wxSizerFlags *result = 0 ;
  142. ^
  143. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Top(PyObject*, PyObject*)’:
  144. src/gtk/_core_wrap.cpp:59418:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  145. wxSizerFlags *result = 0 ;
  146. ^
  147. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Bottom(PyObject*, PyObject*)’:
  148. src/gtk/_core_wrap.cpp:59451:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  149. wxSizerFlags *result = 0 ;
  150. ^
  151. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Shaped(PyObject*, PyObject*)’:
  152. src/gtk/_core_wrap.cpp:59484:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  153. wxSizerFlags *result = 0 ;
  154. ^
  155. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_FixedMinSize(PyObject*, PyObject*)’:
  156. src/gtk/_core_wrap.cpp:59517:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  157. wxSizerFlags *result = 0 ;
  158. ^
  159. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_ReserveSpaceEvenIfHidden(PyObject*, PyObject*)’:
  160. src/gtk/_core_wrap.cpp:59550:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  161. wxSizerFlags *result = 0 ;
  162. ^
  163. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_Border(PyObject*, PyObject*, PyObject*)’:
  164. src/gtk/_core_wrap.cpp:59585:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  165. wxSizerFlags *result = 0 ;
  166. ^
  167. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_DoubleBorder(PyObject*, PyObject*, PyObject*)’:
  168. src/gtk/_core_wrap.cpp:59641:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  169. wxSizerFlags *result = 0 ;
  170. ^
  171. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_TripleBorder(PyObject*, PyObject*, PyObject*)’:
  172. src/gtk/_core_wrap.cpp:59687:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  173. wxSizerFlags *result = 0 ;
  174. ^
  175. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_HorzBorder(PyObject*, PyObject*)’:
  176. src/gtk/_core_wrap.cpp:59732:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  177. wxSizerFlags *result = 0 ;
  178. ^
  179. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerFlags_DoubleHorzBorder(PyObject*, PyObject*)’:
  180. src/gtk/_core_wrap.cpp:59765:17: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  181. wxSizerFlags *result = 0 ;
  182. ^
  183. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerItem_SetWindow(PyObject*, PyObject*, PyObject*)’:
  184. src/gtk/_core_wrap.cpp:61364:27: warning: ‘void wxSizerItem::SetWindow(wxWindow*)’ is deprecated (declared at /home/jay/Downloads/wxPython-src-3.0.2.0/include/wx/sizer.h:1114) [-Wdeprecated-declarations]
  185. (arg1)->SetWindow(arg2);
  186. ^
  187. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerItem_SetSizer(PyObject*, PyObject*, PyObject*)’:
  188. src/gtk/_core_wrap.cpp:61400:26: warning: ‘void wxSizerItem::SetSizer(wxSizer*)’ is deprecated (declared at /home/jay/Downloads/wxPython-src-3.0.2.0/include/wx/sizer.h:1119) [-Wdeprecated-declarations]
  189. (arg1)->SetSizer(arg2);
  190. ^
  191. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_SizerItem_SetSpacer(PyObject*, PyObject*, PyObject*)’:
  192. src/gtk/_core_wrap.cpp:61436:44: warning: ‘void wxSizerItem::SetSpacer(const wxSize&)’ is deprecated (declared at /home/jay/Downloads/wxPython-src-3.0.2.0/include/wx/sizer.h:1124) [-Wdeprecated-declarations]
  193. (arg1)->SetSpacer((wxSize const &)*arg2);
  194. ^
  195. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Sizer_SetVirtualSizeHints(PyObject*, PyObject*, PyObject*)’:
  196. src/gtk/_core_wrap.cpp:63369:37: warning: ‘void wxSizer::SetVirtualSizeHints(wxWindow*)’ is deprecated (declared at /home/jay/Downloads/wxPython-src-3.0.2.0/include/wx/sizer.h:666) [-Wdeprecated-declarations]
  197. (arg1)->SetVirtualSizeHints(arg2);
  198. ^
  199. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_new_ImageFromDataWithAlpha(PyObject*, PyObject*, PyObject*)’:
  200. src/gtk/_core_wrap.cpp:3670:56: warning: ‘arg6’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  201. buffer acopy = (buffer)malloc(ALPHASIZE);
  202. ^
  203. src/gtk/_core_wrap.cpp:17631:7: note: ‘arg6’ was declared here
  204. int arg6 ;
  205. ^
  206. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Image_SetAlphaData(PyObject*, PyObject*, PyObject*)’:
  207. src/gtk/_core_wrap.cpp:3730:52: warning: ‘arg3’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  208. buffer acopy = (buffer)malloc(ALPHASIZE);
  209. ^
  210. src/gtk/_core_wrap.cpp:20407:7: note: ‘arg3’ was declared here
  211. int arg3 ;
  212. ^
  213. src/gtk/_core_wrap.cpp: In function ‘PyObject* _wrap_Image_SetAlphaBuffer(PyObject*, PyObject*, PyObject*)’:
  214. src/gtk/_core_wrap.cpp:3747:13: warning: ‘arg3’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  215. if (ALPHASIZE != self->GetWidth() * self->GetHeight()) {
  216. ^
  217. src/gtk/_core_wrap.cpp:20474:7: note: ‘arg3’ was declared here
  218. int arg3 ;
  219. ^
  220. cc1plus: some warnings being treated as errors
  221. error: command 'gcc' failed with exit status 1
  222. ERROR: failed building wxPython.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement