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

Ken Cunningham ken.cunningham.webuse at gmail.com
Fri Jan 26 21:11:22 UTC 2018


Use an older version of gdb, like 7.6.8 maybe, that worked on leopard. 

J

Sent from my iPhone

> On Jan 26, 2018, at 12:07 PM, Joshua Root <jmr at macports.org> wrote:
> 
> 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