From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8039 invoked by alias); 23 Jun 2014 13:49:05 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 8029 invoked by uid 89); 23 Jun 2014 13:49:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_40,HELO_DYNAMIC_IPADDR,RDNS_DYNAMIC autolearn=no version=3.3.2 X-HELO: lvps176-28-13-145.dedicated.hosteurope.de Received: from lvps176-28-13-145.dedicated.hosteurope.de (HELO lvps176-28-13-145.dedicated.hosteurope.de) (176.28.13.145) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Jun 2014 13:49:03 +0000 Received: from dabox.localnet (unknown [62.159.134.147]) by lvps176-28-13-145.dedicated.hosteurope.de (Postfix) with ESMTPSA id B90C11BF5C001; Mon, 23 Jun 2014 15:49:00 +0200 (CEST) From: Tim Sander To: gdb@sourceware.org, Terry Guo Subject: Re: Is it possible to statically link python into gdb? Date: Mon, 23 Jun 2014 13:49:00 -0000 Message-ID: <56168225.tkKpPXRO26@dabox> User-Agent: KMail/4.13 (Linux/3.13.0; KDE/4.13.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00068.txt.bz2 Hi Terry > I am trying to build a gdb with python support which doesn't depend on > system python at all. I can manage to build python into static library > like libpython2.7.a, then I can see that this static library is linked > into gdb. With command ldd, there is no libpython dependence in final > gdb. So far all good. But when run this gdb on another machine, I ran > into below errors and gdb can't be initiated: > > Could not find platform independent libraries > Could not find platform dependent libraries > Consider setting $PYTHONHOME to [:] > > I am working on Ubuntu x86 machines with gdb from master branch and > Python 2.7. Could some one please help me? Thanks in advance. I don't know much about python but might it be that you need the *.py files of PYTHONHOME/lib nevertheless to get a running python interpreter? Best regards Tim