Can't run cross gdb with python support
Posted: Sun Jul 03, 2016 10:00 pm
I'm trying to build a cross compiler. I've first decided to build the gdb with python support. My host OS is Windows 7, I'm compiling for Linux and I use MSYS2/MINGW64 for compilation.
This is the script I'm using to build the gdb
I do NOT have any problem with compiling the code. My problem is that after everything is done, when I try to run the recently built gdb in cmd I get these error
I have `C:\msys64\mingw64\bin` in my windows path and python executable is there. What should I do to make the binary find python and necessary libraries?
Is there anyway that I could link with all of python libraries statically so that I can run the debugger from any system?
This is the script I'm using to build the gdb
Code: Select all
#!/bin/bash
export HOST=x86_64-w64-mingw32
export BUILD=x86_64-w64-mingw32
export TARGET=x86_64-amd-linux-gnu
export PREFIX=/tmp/myToolChain
../../src/binutils-gdb/configure --host=${HOST} --build=${BUILD} --target=${TARGET} --prefix=${PREFIX} --with-python=/mingw64/bin/python --with-sysroot --disable-nls --disable-werror
make && make install
Code: Select all
C:\msys64\tmp\myToolChain\bin>x86_64-amd-linux-gnu-gdb.exe
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
Is there anyway that I could link with all of python libraries statically so that I can run the debugger from any system?