gdb fails to compile on Leopard - C++11 compiler

Joshua Root jmr at macports.org
Fri Jan 26 20:07:04 UTC 2018


Riccardo Mottola wrote:
> Build fails with:
> 
> /opt/local/bin/g++-mp-6  -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -m32   
> -I. -I. -I./common -I./config 
> -DLOCALEDIR="\"/opt/local/share/locale\"" -DHAVE_CONFIG_H 
> -I./../include/opcode -I./../opcodes/.. -I./../readline/.. -I./../zlib 
> -I../bfd -I./../bfd -I./../include -I../libdecnumber 
> -I./../libdecnumber  -I./gnulib/import -Ibuild-gnulib/import   -DTUI=1 
>   -I/opt/local/include  
> -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 
> -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 
> -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function 
> -Wno-switch -Wno-char-subscripts -Wempty-body 
> -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare 
> -Wno-narrowing -Wformat-nonliteral  -c -o py-record-full.o -MT 
> py-record-full.o -MMD -MP -MF .deps/py-record-full.Tpo 
> -fno-strict-aliasing -DNDEBUG -fwrapv python/py-record-full.c
> python/py-record-btrace.c: In function 'PyObject* 
> recpy_bt_insn_data(PyObject*, void*)':
> python/py-record-btrace.c:293:71: error: 'PyBytes_FromStringAndSize' 
> was not declared in this scope
>     object = PyBytes_FromStringAndSize ((const char*) buffer, 
> insn->size);

It needs a newer python than 2.5.

- Josh


More information about the macports-users mailing list