On Fri, Jul 17, 2015 at 3:47 PM, strongq strongq@codeaurora.org wrote:
Now I’m running into new problem. I’m trying to enable “--with-python option” for building gdb.
For the native Linux version, I just need to install Python-dev package. But for cross compiling the windows version, I don’t know which Linux package is for mingw. It cannot find the ‘Python.h’.
Ubuntu only provides a basic mingw cross compiler. If you want python, you would have to build that yourself.
So I’m just wondering is it possible to build the win32 gdb executable, with the python option enabled?
It should be possible, but it might be easier if you build it on a win32 system.
Another big question, is that possible to use ABE under Cygwin and has anybody tried?
I don't know. But abe is primarily useful for building linux crosses, which is a complex process involving multiple glibc and gcc builds to resolve interdependencies between them. Your target is aarch64-none-elf, which is much simpler to build cross. It would not be hard to do this build directly without abe. First you build and install binutils. Then you drop the newlib sources into gcc, and build and install gcc with the same --prefix used when configuring binutils.
Jim