Skip to content

Instantly share code, notes, and snippets.

@runical
Last active January 16, 2016 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runical/1da8b40664cc0f0a50a1 to your computer and use it in GitHub Desktop.
Save runical/1da8b40664cc0f0a50a1 to your computer and use it in GitHub Desktop.
Buildlog of a failing ledger build
In file included from /build/ledger/src/ledger-3.1.1/src/py_amount.cc:36:0:
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:43:3: error: 'PyFileObject' does not name a type
PyFileObject * fo; // Python file object
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:47:25: error: expected ')' before '*' token
pyoutbuf(PyFileObject * _fo) : fo(_fo) {
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h: In member function 'virtual std::basic_streambuf<char>::int_type pyoutbuf::overflow(std::basic_streambuf<char>::int_type)':
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:61:62: error: 'fo' was not declared in this scope
if (PyFile_WriteString(z, reinterpret_cast<PyObject *>(fo)) < 0) {
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h: In member function 'virtual std::streamsize pyoutbuf::xsputn(const char*, std::streamsize)':
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:73:62: error: 'fo' was not declared in this scope
if (PyFile_WriteString(buf, reinterpret_cast<PyObject *>(fo)) < 0)
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h: At global scope:
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:88:28: error: expected ')' before '*' token
pyofstream (PyFileObject * fo) : std::ostream(0), buf(fo) {
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:105:3: error: 'PyFileObject' does not name a type
PyFileObject * fo; // Python file object
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:123:25: error: expected ')' before '*' token
pyinbuf (PyFileObject * _fo) : fo(_fo) {
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h: In member function 'virtual std::basic_streambuf<char>::int_type pyinbuf::underflow()':
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:163:66: error: 'fo' was not declared in this scope
PyObject *line = PyFile_GetLine(reinterpret_cast<PyObject *>(fo), bufSize);
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:164:40: error: 'PyString_Check' was not declared in this scope
if (! line || ! PyString_Check(line)) {
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:169:40: error: 'PyString_Size' was not declared in this scope
Py_ssize_t num = PyString_Size(line);
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:173:50: error: 'PyString_AsString' was not declared in this scope
memmove(buffer+pbSize, PyString_AsString(line), static_cast<size_t>(num));
^
/build/ledger/src/ledger-3.1.1/src/pyfstream.h: At global scope:
/build/ledger/src/ledger-3.1.1/src/pyfstream.h:193:28: error: expected ')' before '*' token
pyifstream (PyFileObject * fo) : std::istream(0), buf(fo) {
^
/build/ledger/src/ledger-3.1.1/src/py_amount.cc: In function 'void ledger::{anonymous}::py_parse_2(ledger::amount_t&, boost::python::api::object, unsigned char)':
/build/ledger/src/ledger-3.1.1/src/py_amount.cc:66:30: error: 'PyFile_Check' was not declared in this scope
if (PyFile_Check(in.ptr())) {
^
/build/ledger/src/ledger-3.1.1/src/py_amount.cc:67:41: error: 'PyFileObject' does not name a type
pyifstream instr(reinterpret_cast<PyFileObject *>(in.ptr()));
^
/build/ledger/src/ledger-3.1.1/src/py_amount.cc:67:54: error: expected '>' before '*' token
pyifstream instr(reinterpret_cast<PyFileObject *>(in.ptr()));
^
/build/ledger/src/ledger-3.1.1/src/py_amount.cc:67:54: error: expected '(' before '*' token
/build/ledger/src/ledger-3.1.1/src/py_amount.cc:67:55: error: expected primary-expression before '>' token
pyifstream instr(reinterpret_cast<PyFileObject *>(in.ptr()));
^
In file included from /build/ledger/src/ledger-3.1.1/src/py_amount.cc:35:0:
/build/ledger/src/ledger-3.1.1/src/pyutils.h: In instantiation of 'PyObject* str_to_py_unicode(const T&) [with T = std::__cxx11::basic_string<char>; PyObject = _object]':
/build/ledger/src/ledger-3.1.1/src/py_amount.cc:109:48: required from here
/build/ledger/src/ledger-3.1.1/src/pyutils.h:133:40: error: 'PyString_FromString' was not declared in this scope
PyObject * pstr = PyString_FromString(str.c_str());
^
src/CMakeFiles/libledger.dir/build.make:1286: recipe for target 'src/CMakeFiles/libledger.dir/py_account.cc.o' failed
make[2]: *** [src/CMakeFiles/libledger.dir/py_account.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
src/CMakeFiles/libledger.dir/build.make:1310: recipe for target 'src/CMakeFiles/libledger.dir/py_amount.cc.o' failed
make[2]: *** [src/CMakeFiles/libledger.dir/py_amount.cc.o] Error 1
CMakeFiles/Makefile2:124: recipe for target 'src/CMakeFiles/libledger.dir/all' failed
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in package().
Aborting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment