Re: [Mingw-users] Problem while building mingw GDB with PYTHON
support

On 2012-2-28 16:43, Naveen H. S wrote:
> Hi,
>
> I am trying to build the mingw GDB with python support enabled on
> MINGW+MSYS installation on my Windows machine.
> The following link was referred to build the GDB:-
> http://forums.codeblocks.org/index.php?topic=11301.90
>
> Expat was built prior to the GDB as per the link. Then GDB was built
> using "--with-expat". However, the built GDB crashes when trying to run.
You should see a more detailed instruction here:
http://code.google.com/p/qp-gcc/wiki/build_gdb_msys_en
I have no idea about the crash, it crash without any other information?
>
> Please let me know how to build the mingw GDB with python support on
> MINGW+MSYS. It would be much better if mingw GDB with python support
> could be built on linux machine. I have mingw installed on my linux
> machine.
You want to cross build mingw-gdb from linux? maybe, xunxun can give some help. Or you can see:
http://code.google.com/p/qp-gcc/wiki/CrossbuildGDB
This page is some out dated, but should give you some hint about cross build gdb from linux.
> When I execute the command rx-elf-gdb, the exe is crashing. The problem
> signature of Windows shows following,
> {{{
> Problem signature:
> Problem Event Name: APPCRASH
> Application Name: rx-elf-gdb.exe
> Application Version: 0.0.0.0
> Application Timestamp: 4f4b8b7d
> Fault Module Name: python27.dll
> Fault Module Version: 2.7.2150.1013
> Fault Module Timestamp: 4df4ba7c
> Exception Code: c0000005
> Exception Offset: 000d4533
> OS Version: 6.1.7600.2.0.0.256.4
> Locale ID: 1033
> Additional Information 1: 0a9e
> Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
> Additional Information 3: 0a9e
> Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
> }}}
>
> Has anyone seen this earlier? What is that I am doing wrong or missing?
>
> Thank you.
>
> Regards,
> Naveen
>
I have know nothing about "rx-elf-gdb".
asmwarrior
ollydbg from codeblocks' forum

Thread view

Hi,
I am trying to build the mingw GDB with python support enabled on
MINGW+MSYS installation on my Windows machine.
The following link was referred to build the GDB:-
http://forums.codeblocks.org/index.php?topic=11301.90
Expat was built prior to the GDB as per the link. Then GDB was built
using "--with-expat". However, the built GDB crashes when trying to run.
Please let me know how to build the mingw GDB with python support on
MINGW+MSYS. It would be much better if mingw GDB with python support
could be built on linux machine. I have mingw installed on my linux
machine.
The versions used to build mingw GDB are:-
GDB 7.3.1
Python 2.7
Expat 2.0.1
When I execute the command rx-elf-gdb, the exe is crashing. The problem
signature of Windows shows following,
{{{
Problem signature:
Problem Event Name: APPCRASH
Application Name: rx-elf-gdb.exe
Application Version: 0.0.0.0
Application Timestamp: 4f4b8b7d
Fault Module Name: python27.dll
Fault Module Version: 2.7.2150.1013
Fault Module Timestamp: 4df4ba7c
Exception Code: c0000005
Exception Offset: 000d4533
OS Version: 6.1.7600.2.0.0.256.4
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
}}}
Has anyone seen this earlier? What is that I am doing wrong or missing?
Thank you.
Regards,
Naveen
This message contains information that may be privileged or confidential and is the property of the KPIT Cummins Infosystems Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Cummins Infosystems Ltd. does not accept any liability for virus infected mails.

On 2012-2-28 16:43, Naveen H. S wrote:
> Hi,
>
> I am trying to build the mingw GDB with python support enabled on
> MINGW+MSYS installation on my Windows machine.
> The following link was referred to build the GDB:-
> http://forums.codeblocks.org/index.php?topic=11301.90
>
> Expat was built prior to the GDB as per the link. Then GDB was built
> using "--with-expat". However, the built GDB crashes when trying to run.
You should see a more detailed instruction here:
http://code.google.com/p/qp-gcc/wiki/build_gdb_msys_en
I have no idea about the crash, it crash without any other information?
>
> Please let me know how to build the mingw GDB with python support on
> MINGW+MSYS. It would be much better if mingw GDB with python support
> could be built on linux machine. I have mingw installed on my linux
> machine.
You want to cross build mingw-gdb from linux? maybe, xunxun can give some help. Or you can see:
http://code.google.com/p/qp-gcc/wiki/CrossbuildGDB
This page is some out dated, but should give you some hint about cross build gdb from linux.
> When I execute the command rx-elf-gdb, the exe is crashing. The problem
> signature of Windows shows following,
> {{{
> Problem signature:
> Problem Event Name: APPCRASH
> Application Name: rx-elf-gdb.exe
> Application Version: 0.0.0.0
> Application Timestamp: 4f4b8b7d
> Fault Module Name: python27.dll
> Fault Module Version: 2.7.2150.1013
> Fault Module Timestamp: 4df4ba7c
> Exception Code: c0000005
> Exception Offset: 000d4533
> OS Version: 6.1.7600.2.0.0.256.4
> Locale ID: 1033
> Additional Information 1: 0a9e
> Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
> Additional Information 3: 0a9e
> Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
> }}}
>
> Has anyone seen this earlier? What is that I am doing wrong or missing?
>
> Thank you.
>
> Regards,
> Naveen
>
I have know nothing about "rx-elf-gdb".
asmwarrior
ollydbg from codeblocks' forum

On 2012-3-1 0:21, Sergio NNX wrote:
> Any update on the below issue?
The crash issue is too general, so I can't help you unless the description is more specific.
asmwarrior
ollydbg from codeblocks' forum

Hi,
>> Any update on the below issue?
Thanks for your valuable feedback.
The following link helped me in building the cross gdb for RX toolchain
with Python support.
http://code.google.com/p/qp-gcc/wiki/build_gdb_msys_en
The following steps were followed:-
1. Install "PCX's GCC 4.5.4" mingw
2. Install Python-2.7.2
3. Install msys
4. Create a file \msys\etc\fstab and update the installation PATH of
mingw and Python
c:/minGW /mingw
c:/Python27 /python
5. Build GDB using the following command:-
./src/gdb-7.3.1/configure --target=rx-elf --prefix=/c/msys/home/gdb/prefix
--with-python=/c/Python27/python --disable-nls
make
make install
The RX GDB with python support is built in install PATH specified
(/c/msys/home/gdb/prefix).
However, "--with-expat" command did not work with the installed mingw.
The build stopped with the error "expat could not be found".
It seems that expat could not be found in the installed mingw.
I will try to build the expat prior to GDB and use "--with-expat"
and will update the result regarding the same.
Build Cross GDB with Python Support on Linux
I built the libiconv, expat and python on linux machine at following
PATH:-
/home/gdb/prefix
I tried to build the GDB with following command:-
../src/gdb-7.3.1/configure --prefix=/home/gdb/prefix/
--host=i386-pc-mingw32msvc --target=rx-elf --with-expat=/home/gdb/prefix/
--with-python=/home/gdb/prefix/ --with-iconv=/home/gdb/prefix/
However, the build failed as Python was not found in the PATH
"configure: error: no usable python found"
Can anyone please help me what is going wrong in this case?
Thanks & Regards,
Naveen
This message contains information that may be privileged or confidential and is the property of the KPIT Cummins Infosystems Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Cummins Infosystems Ltd. does not accept any liability for virus infected mails.

于 2012/3/1 14:13, Naveen H. S 写道:
> Hi,
>
>>> Any update on the below issue?
> Thanks for your valuable feedback.
>
> The following link helped me in building the cross gdb for RX toolchain
> with Python support.
> http://code.google.com/p/qp-gcc/wiki/build_gdb_msys_en
>
> The following steps were followed:-
>
> 1. Install "PCX's GCC 4.5.4" mingw
> 2. Install Python-2.7.2
> 3. Install msys
> 4. Create a file \msys\etc\fstab and update the installation PATH of
> mingw and Python
> c:/minGW /mingw
> c:/Python27 /python
> 5. Build GDB using the following command:-
> ./src/gdb-7.3.1/configure --target=rx-elf --prefix=/c/msys/home/gdb/prefix
> --with-python=/c/Python27/python --disable-nls
> make
> make install
>
> The RX GDB with python support is built in install PATH specified
> (/c/msys/home/gdb/prefix).
>
> However, "--with-expat" command did not work with the installed mingw.
> The build stopped with the error "expat could not be found".
> It seems that expat could not be found in the installed mingw.
> I will try to build the expat prior to GDB and use "--with-expat"
> and will update the result regarding the same.
>
>
> Build Cross GDB with Python Support on Linux
>
> I built the libiconv, expat and python on linux machine at following
> PATH:-
> /home/gdb/prefix
>
> I tried to build the GDB with following command:-
> ../src/gdb-7.3.1/configure --prefix=/home/gdb/prefix/
> --host=i386-pc-mingw32msvc --target=rx-elf --with-expat=/home/gdb/prefix/
> --with-python=/home/gdb/prefix/ --with-iconv=/home/gdb/prefix/
>
> However, the build failed as Python was not found in the PATH
> "configure: error: no usable python found"
You can see <build directory>/gdb/config.log to know the configure how
to recognize the python path
>
> Can anyone please help me what is going wrong in this case?
>
> Thanks& Regards,
> Naveen
>
>
>
>
--
Best Regards,
xunxun

On 2012-3-1 14:13, Naveen H. S wrote:
> Thanks for your valuable feedback. ... However, "--with-expat" command did not work with the installed mingw. The build stopped with the error "expat could not be found". It seems that expat could not be found in the installed mingw. I will try to build the expat prior to GDB and use "--with-expat" and will update the result regarding the same.
It looks like PCX's GCC 4.5.4 does not contains expat library, so you can either:
1, build expat yourself.
2, I'm currently use PCX's 4.6.3 package(http://pcxprj.googlecode.com/files/MinGW64CRT_gcc4.6.3.20120221_sse2static_win32.7z), it contains the expat library, it should work OK.
> Build Cross GDB with Python Support on Linux
>
> I built the libiconv, expat and python on linux machine at following
> PATH:-
> /home/gdb/prefix
>
> I tried to build the GDB with following command:-
> ../src/gdb-7.3.1/configure --prefix=/home/gdb/prefix/
> --host=i386-pc-mingw32msvc --target=rx-elf --with-expat=/home/gdb/prefix/
> --with-python=/home/gdb/prefix/ --with-iconv=/home/gdb/prefix/
>
> However, the build failed as Python was not found in the PATH
> "configure: error: no usable python found"
>
> Can anyone please help me what is going wrong in this case?
>
> Thanks& Regards,
> Naveen
>
I have no experience of build gdb under Linux, so the following may wrong:
With the configure option:
--with-python=/home/gdb/prefix/
which means, you python executable should be installed here, is it?
asmwarrior
ollydbg from codeblocks' forum