Advertisement
Guest User

Untitled

a guest
Aug 19th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  1. #define PyObject_GetAttrString(obj, attr) gdb_PyObject_GetAttrString (obj, attr)
  2. ^
  3. In file included from /usr/lib/pypy/include/Python.h:81:0,
  4. from ../../../src/binutils-gdb/gdb/python/python-internal.h:95,
  5. from ../../../src/binutils-gdb/gdb/python/python.c:93:
  6. /usr/lib/pypy/include/pypy_macros.h:500:0: note: this is the location of the previous definition
  7. #define PyObject_GetAttrString PyPyObject_GetAttrString
  8. ^
  9. In file included from ../../../src/binutils-gdb/gdb/python/python.c:93:0:
  10. ../../../src/binutils-gdb/gdb/python/python-internal.h:212:0: error: "PyObject_HasAttrString" redefined [-Werror]
  11. #define PyObject_HasAttrString(obj, attr) gdb_PyObject_HasAttrString (obj, attr)
  12. ^
  13. In file included from /usr/lib/pypy/include/Python.h:81:0,
  14. from ../../../src/binutils-gdb/gdb/python/python-internal.h:95,
  15. from ../../../src/binutils-gdb/gdb/python/python.c:93:
  16. /usr/lib/pypy/include/pypy_macros.h:48:0: note: this is the location of the previous definition
  17. #define PyObject_HasAttrString PyPyObject_HasAttrString
  18. ^
  19. ../../../src/binutils-gdb/gdb/python/python.c: In function ‘gdbpy_clear_quit_flag’:
  20. ../../../src/binutils-gdb/gdb/python/python.c:275:3: error: implicit declaration of function ‘PyOS_InterruptOccurred’ [-Werror=implicit-function-declaration]
  21. PyOS_InterruptOccurred ();
  22. ^
  23. ../../../src/binutils-gdb/gdb/python/python.c: In function ‘eval_python_command’:
  24. ../../../src/binutils-gdb/gdb/python/python.c:310:3: error: passing argument 1 of ‘PyPyRun_StringFlags’ discards ‘const’ qualifier from pointer target type [-Werror]
  25. v = PyRun_StringFlags (command, Py_single_input, d, d, NULL);
  26. ^
  27. In file included from /usr/lib/pypy/include/Python.h:81:0,
  28. from ../../../src/binutils-gdb/gdb/python/python-internal.h:95,
  29. from ../../../src/binutils-gdb/gdb/python/python.c:93:
  30. /usr/lib/pypy/include/pypy_macros.h:199:27: note: expected ‘char *’ but argument is of type ‘const char *’
  31. #define PyRun_StringFlags PyPyRun_StringFlags
  32. ^
  33. /usr/lib/pypy/include/pypy_decl.h:337:24: note: in expansion of macro ‘PyRun_StringFlags’
  34. PyAPI_FUNC(PyObject *) PyRun_StringFlags(char *arg0, int arg1, PyObject *arg2, PyObject *arg3, PyCompilerFlags *arg4);
  35. ^
  36. ../../../src/binutils-gdb/gdb/python/python.c:316:3: error: implicit declaration of function ‘Py_FlushLine’ [-Werror=implicit-function-declaration]
  37. if (Py_FlushLine ())
  38. ^
  39. ../../../src/binutils-gdb/gdb/python/python.c: In function ‘python_interactive_command’:
  40. ../../../src/binutils-gdb/gdb/python/python.c:351:7: error: implicit declaration of function ‘PyRun_InteractiveLoop’ [-Werror=implicit-function-declaration]
  41. err = PyRun_InteractiveLoop (instream, "<stdin>");
  42. ^
  43. ../../../src/binutils-gdb/gdb/python/python.c: In function ‘python_run_simple_file’:
  44. ../../../src/binutils-gdb/gdb/python/python.c:385:3: error: implicit declaration of function ‘PyRun_SimpleFile’ [-Werror=implicit-function-declaration]
  45. PyRun_SimpleFile (file, filename);
  46. ^
  47. ../../../src/binutils-gdb/gdb/python/python.c: In function ‘gdbpy_parameter_value’:
  48. ../../../src/binutils-gdb/gdb/python/python.c:516:2: error: implicit declaration of function ‘PyString_Decode’ [-Werror=implicit-function-declaration]
  49. return PyString_Decode (str, strlen (str), host_charset (), NULL);
  50. ^
  51. ../../../src/binutils-gdb/gdb/python/python.c:516:2: error: return makes pointer from integer without a cast [-Werror]
  52. ../../../src/binutils-gdb/gdb/python/python.c: In function ‘gdbpy_solib_name’:
  53. ../../../src/binutils-gdb/gdb/python/python.c:697:13: error: assignment makes pointer from integer without a cast [-Werror]
  54. str_obj = PyString_Decode (soname, strlen (soname), host_charset (), NULL);
  55. ^
  56. ../../../src/binutils-gdb/gdb/python/python.c: In function ‘finalize_python’:
  57. ../../../src/binutils-gdb/gdb/python/python.c:1552:3: error: implicit declaration of function ‘Py_Finalize’ [-Werror=implicit-function-declaration]
  58. Py_Finalize ();
  59. ^
  60. ../../../src/binutils-gdb/gdb/python/python.c: In function ‘_initialize_python’:
  61. ../../../src/binutils-gdb/gdb/python/python.c:1680:3: error: implicit declaration of function ‘Py_SetProgramName’ [-Werror=implicit-function-declaration]
  62. Py_SetProgramName (progname);
  63. ^
  64. ../../../src/binutils-gdb/gdb/python/python.c:1684:3: error: implicit declaration of function ‘Py_Initialize’ [-Werror=implicit-function-declaration]
  65. Py_Initialize ();
  66. ^
  67. ../../../src/binutils-gdb/gdb/python/python.c:1785:3: error: implicit declaration of function ‘PyEval_ReleaseLock’ [-Werror=implicit-function-declaration]
  68. PyEval_ReleaseLock ();
  69. ^
  70. ../../../src/binutils-gdb/gdb/python/python.c: In function ‘gdbpy_finish_initialization’:
  71. ../../../src/binutils-gdb/gdb/python/python.c:1831:7: error: implicit declaration of function ‘PySys_SetPath’ [-Werror=implicit-function-declaration]
  72. PySys_SetPath ("");
  73. ^
  74. cc1: all warnings being treated as errors
  75. Makefile:2401: recipe for target 'python.o' failed
  76. make[2]: *** [python.o] Error 1
  77. make[2]: Leaving directory '/home/simark/build/binutils-gdb/gdb'
  78. Makefile:9958: recipe for target 'all-gdb' failed
  79. make[1]: *** [all-gdb] Error 2
  80. make[1]: Leaving directory '/home/simark/build/binutils-gdb'
  81. Makefile:832: recipe for target 'all' failed
  82. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement