OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:08 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Can't run cross gdb with python support
PostPosted: Sun Jul 03, 2016 10:00 pm 
Offline

Joined: Sun Jul 03, 2016 9:38 pm
Posts: 1
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

Code:
#!/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


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

Code:
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


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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group