[Gambas-user] How to compile with debugging information enabled - compiles but then a coredump

richard rterry at ...1823...
Thu Nov 22 12:54:11 CET 2012


On 22/11/12 22:46, richard wrote:
> On 22/11/12 22:43, Adrien Prokopowicz wrote:
>> 2012/11/22 Benoît Minisini <gambas at ...1...>:
>>> Le 22/11/2012 12:06, richard a écrit :
>>>> On 22/11/12 21:45, Benoît Minisini wrote:
>>>>> Le 22/11/2012 11:38, richard a écrit :
>>>>>> Compile Gambas from sources with debugging information enabled  ?? can
>>>>>> any one point me to the URL which describes how to do this.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> richard
>>>>>>
>>>>> The fastest way is: instead of typing:
>>>>>
>>>>>        $ make
>>>>>
>>>>> you type:
>>>>>
>>>>>        $ make clean && make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g"
>>>>>
>>>>> 'make clean' is needed to remove all previously compiled files that do
>>>>> not have debugging information in it.
>>>>>
>>>>> Regards,
>>>> Ok, have run the above and got to this point in the make when it crashed:
>>>>
>>>> ?? where to head.
>>>>
>>>> Regards
>>>>
>>>> richard
>>>>
>>>> make[5]: Entering directory `/home/richard/svn/gambas3/trunk/gb.xml/src'
>>>>       CXX    gb_xml_la-main.lo
>>>>       CXX    gb_xml_la-gbi.lo
>>>>       CXX    gb_xml_la-utils.lo
>>>> utils.cpp: In function 'void insertString(char*&, size_t&, const char*,
>>>> size_t, char*&)':
>>>> utils.cpp:159:37: error: 'realloc' was not declared in this scope
>>>> utils.cpp: In constructor 'XMLParseException::XMLParseException(const
>>>> char*, const char*, size_t, const char*)':
>>>> utils.cpp:172:36: error: 'malloc' was not declared in this scope
>>>> utils.cpp: In destructor 'virtual XMLParseException::~XMLParseException()':
>>>> utils.cpp:199:23: error: 'free' was not declared in this scope
>>>> utils.cpp:200:25: error: 'free' was not declared in this scope
>>>> utils.cpp: In member function 'void XMLParseException::AnalyzeText(const
>>>> char*, size_t, const char*)':
>>>> utils.cpp:223:37: error: 'malloc' was not declared in this scope
>>>> make[5]: *** [gb_xml_la-utils.lo] Error 1
>>>> make[5]: Leaving directory `/home/richard/svn/gambas3/trunk/gb.xml/src'
>>>> make[4]: *** [all-recursive] Error 1
>>>> make[4]: Leaving directory `/home/richard/svn/gambas3/trunk/gb.xml/src'
>>>> make[3]: *** [all-recursive] Error 1
>>>> make[3]: Leaving directory `/home/richard/svn/gambas3/trunk/gb.xml'
>>>> make[2]: *** [all] Error 2
>>>> make[2]: Leaving directory `/home/richard/svn/gambas3/trunk/gb.xml'
>>>> make[1]: *** [all-recursive] Error 1
>>>> make[1]: Leaving directory `/home/richard/svn/gambas3/trunk'
>>>> make: *** [all] Error 2
>>>> richard at ...3044...:~/svn/gambas3/trunk$
>>>>
>>> If you add the following line at the beginning of the
>>> 'gb.xml/src/utils.h' file:
>>>
>>> #include <stdlib>
>>>
>>> Do you have the same error after running "make" again?
>>>
>>> --
>>> Benoît Minisini
>>>
>>> ------------------------------------------------------------------------------
>>> Monitor your physical, virtual and cloud infrastructure from a single
>>> web console. Get in-depth insight into apps, servers, databases, vmware,
>>> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>>> Pricing starts from $795 for 25 servers or applications!
>>> http://p.sf.net/sfu/zoho_dev2dev_nov
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>> Oops, you're right Benoît, I forgot to include it ... :-/
>> Actually, GCC only complains about it when I disable all optimization
>> (with make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g").
>>
>> The problem should be fixed in revision #5347. Richard, could you try
>> it and tell us if it works again ?
>>
>> ------------------------------------------------------------------------------
>> Monitor your physical, virtual and cloud infrastructure from a single
>> web console. Get in-depth insight into apps, servers, databases, vmware,
>> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>> Pricing starts from $795 for 25 servers or applications!
>> http://p.sf.net/sfu/zoho_dev2dev_nov
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> I did include it in version 46 and get the same errors.
compiled and installed ok but running /usr/bin/gambas3 gives this error:

richard at ...3044...:~/svn/gambas3/trunk$ gambas3
Bus error (core dumped)
richard at ...3044...:~/svn/gambas3/trunk$

regards





More information about the User mailing list