From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21506 invoked by alias); 21 Jun 2014 03:01:25 -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 21489 invoked by uid 89); 21 Jun 2014 03:01:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ve0-f172.google.com Received: from mail-ve0-f172.google.com (HELO mail-ve0-f172.google.com) (209.85.128.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 21 Jun 2014 03:01:21 +0000 Received: by mail-ve0-f172.google.com with SMTP id jz11so4264552veb.17 for ; Fri, 20 Jun 2014 20:01:19 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.52.252.226 with SMTP id zv2mr5310346vdc.19.1403319678813; Fri, 20 Jun 2014 20:01:18 -0700 (PDT) Received: by 10.221.50.202 with HTTP; Fri, 20 Jun 2014 20:01:18 -0700 (PDT) Date: Sat, 21 Jun 2014 03:01:00 -0000 Message-ID: Subject: Is it possible to statically link python into gdb? From: Terry Guo To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-06/txt/msg00063.txt.bz2 Hi there, 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. BR, Terry