Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define PyObject_GetAttrString(obj, attr) gdb_PyObject_GetAttrString (obj, attr)
- ^
- In file included from /usr/lib/pypy/include/Python.h:81:0,
- from ../../../src/binutils-gdb/gdb/python/python-internal.h:95,
- from ../../../src/binutils-gdb/gdb/python/python.c:93:
- /usr/lib/pypy/include/pypy_macros.h:500:0: note: this is the location of the previous definition
- #define PyObject_GetAttrString PyPyObject_GetAttrString
- ^
- In file included from ../../../src/binutils-gdb/gdb/python/python.c:93:0:
- ../../../src/binutils-gdb/gdb/python/python-internal.h:212:0: error: "PyObject_HasAttrString" redefined [-Werror]
- #define PyObject_HasAttrString(obj, attr) gdb_PyObject_HasAttrString (obj, attr)
- ^
- In file included from /usr/lib/pypy/include/Python.h:81:0,
- from ../../../src/binutils-gdb/gdb/python/python-internal.h:95,
- from ../../../src/binutils-gdb/gdb/python/python.c:93:
- /usr/lib/pypy/include/pypy_macros.h:48:0: note: this is the location of the previous definition
- #define PyObject_HasAttrString PyPyObject_HasAttrString
- ^
- ../../../src/binutils-gdb/gdb/python/python.c: In function ‘gdbpy_clear_quit_flag’:
- ../../../src/binutils-gdb/gdb/python/python.c:275:3: error: implicit declaration of function ‘PyOS_InterruptOccurred’ [-Werror=implicit-function-declaration]
- PyOS_InterruptOccurred ();
- ^
- ../../../src/binutils-gdb/gdb/python/python.c: In function ‘eval_python_command’:
- ../../../src/binutils-gdb/gdb/python/python.c:310:3: error: passing argument 1 of ‘PyPyRun_StringFlags’ discards ‘const’ qualifier from pointer target type [-Werror]
- v = PyRun_StringFlags (command, Py_single_input, d, d, NULL);
- ^
- In file included from /usr/lib/pypy/include/Python.h:81:0,
- from ../../../src/binutils-gdb/gdb/python/python-internal.h:95,
- from ../../../src/binutils-gdb/gdb/python/python.c:93:
- /usr/lib/pypy/include/pypy_macros.h:199:27: note: expected ‘char *’ but argument is of type ‘const char *’
- #define PyRun_StringFlags PyPyRun_StringFlags
- ^
- /usr/lib/pypy/include/pypy_decl.h:337:24: note: in expansion of macro ‘PyRun_StringFlags’
- PyAPI_FUNC(PyObject *) PyRun_StringFlags(char *arg0, int arg1, PyObject *arg2, PyObject *arg3, PyCompilerFlags *arg4);
- ^
- ../../../src/binutils-gdb/gdb/python/python.c:316:3: error: implicit declaration of function ‘Py_FlushLine’ [-Werror=implicit-function-declaration]
- if (Py_FlushLine ())
- ^
- ../../../src/binutils-gdb/gdb/python/python.c: In function ‘python_interactive_command’:
- ../../../src/binutils-gdb/gdb/python/python.c:351:7: error: implicit declaration of function ‘PyRun_InteractiveLoop’ [-Werror=implicit-function-declaration]
- err = PyRun_InteractiveLoop (instream, "<stdin>");
- ^
- ../../../src/binutils-gdb/gdb/python/python.c: In function ‘python_run_simple_file’:
- ../../../src/binutils-gdb/gdb/python/python.c:385:3: error: implicit declaration of function ‘PyRun_SimpleFile’ [-Werror=implicit-function-declaration]
- PyRun_SimpleFile (file, filename);
- ^
- ../../../src/binutils-gdb/gdb/python/python.c: In function ‘gdbpy_parameter_value’:
- ../../../src/binutils-gdb/gdb/python/python.c:516:2: error: implicit declaration of function ‘PyString_Decode’ [-Werror=implicit-function-declaration]
- return PyString_Decode (str, strlen (str), host_charset (), NULL);
- ^
- ../../../src/binutils-gdb/gdb/python/python.c:516:2: error: return makes pointer from integer without a cast [-Werror]
- ../../../src/binutils-gdb/gdb/python/python.c: In function ‘gdbpy_solib_name’:
- ../../../src/binutils-gdb/gdb/python/python.c:697:13: error: assignment makes pointer from integer without a cast [-Werror]
- str_obj = PyString_Decode (soname, strlen (soname), host_charset (), NULL);
- ^
- ../../../src/binutils-gdb/gdb/python/python.c: In function ‘finalize_python’:
- ../../../src/binutils-gdb/gdb/python/python.c:1552:3: error: implicit declaration of function ‘Py_Finalize’ [-Werror=implicit-function-declaration]
- Py_Finalize ();
- ^
- ../../../src/binutils-gdb/gdb/python/python.c: In function ‘_initialize_python’:
- ../../../src/binutils-gdb/gdb/python/python.c:1680:3: error: implicit declaration of function ‘Py_SetProgramName’ [-Werror=implicit-function-declaration]
- Py_SetProgramName (progname);
- ^
- ../../../src/binutils-gdb/gdb/python/python.c:1684:3: error: implicit declaration of function ‘Py_Initialize’ [-Werror=implicit-function-declaration]
- Py_Initialize ();
- ^
- ../../../src/binutils-gdb/gdb/python/python.c:1785:3: error: implicit declaration of function ‘PyEval_ReleaseLock’ [-Werror=implicit-function-declaration]
- PyEval_ReleaseLock ();
- ^
- ../../../src/binutils-gdb/gdb/python/python.c: In function ‘gdbpy_finish_initialization’:
- ../../../src/binutils-gdb/gdb/python/python.c:1831:7: error: implicit declaration of function ‘PySys_SetPath’ [-Werror=implicit-function-declaration]
- PySys_SetPath ("");
- ^
- cc1: all warnings being treated as errors
- Makefile:2401: recipe for target 'python.o' failed
- make[2]: *** [python.o] Error 1
- make[2]: Leaving directory '/home/simark/build/binutils-gdb/gdb'
- Makefile:9958: recipe for target 'all-gdb' failed
- make[1]: *** [all-gdb] Error 2
- make[1]: Leaving directory '/home/simark/build/binutils-gdb'
- Makefile:832: recipe for target 'all' failed
- make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement