From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12071 invoked by alias); 9 Apr 2014 21:54:30 -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 12055 invoked by uid 89); 9 Apr 2014 21:54:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ve0-f175.google.com Received: from mail-ve0-f175.google.com (HELO mail-ve0-f175.google.com) (209.85.128.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 09 Apr 2014 21:54:28 +0000 Received: by mail-ve0-f175.google.com with SMTP id oz11so2627372veb.6 for ; Wed, 09 Apr 2014 14:54:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=lJmp2pPfQQ4q4BaXdLoiOUEt8IGO37D1aEO9eFOKT1o=; b=XCVBANVCH1/EA/aH/IpOSeX5Sdo9QI1BYMRwZZHxroIfDL6/3a79m9tm7h0pZjpIM1 TrTbQE4rb6ZFBJ0DVGl9why9NtxMExYm0TxhbanzkLHyarOrX1RCZxqP2nslilFe6656 LAnIyMplNEoycOmvEFn7Ryz1OOovpnFdcC7DubTpd+q7OHkySKVMI9mf5r5KbbGTgBro sUdur5/sywK+ZYD2ws7mT/GMFW7Dp+idnyfYaTQ4xExqYw9pt96ny+iCbIZAnm60IWC8 LVjLkrWXYcHYczk38GFC+0OpSYc8HbKgLaaaU0DQrTc6ow7LLs7ZCqlq7LJg2aDT/rvR s+NA== X-Gm-Message-State: ALoCoQnUbb9BDbyDCPHPotWwrGUQ7UU+uJxphP13qf7EYddG7KolpU7ADD29mBksrdsADbtDaEtiPd9mY9GYkKIStEqpseKge9eVqtnbKlybH8I3MvpO/qWk+QDTdWzPLCIvZFA7UsXzBiloUr+fL+6hSVH+WZhG8yPlsNQFKAwuw6gQPHdeRWJ9rwaf3e9vxGjqobUWuDR6 MIME-Version: 1.0 X-Received: by 10.58.107.65 with SMTP id ha1mr11006917veb.1.1397080466327; Wed, 09 Apr 2014 14:54:26 -0700 (PDT) Received: by 10.52.13.101 with HTTP; Wed, 9 Apr 2014 14:54:26 -0700 (PDT) In-Reply-To: <20140409202119.GA1325@linux> References: <20140409202119.GA1325@linux> Date: Wed, 09 Apr 2014 21:54:00 -0000 Message-ID: Subject: Re: building gdb from git From: Doug Evans To: Bob Rossi Cc: gdb Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00036.txt.bz2 On Wed, Apr 9, 2014 at 1:21 PM, Bob Rossi wrote: > Hi, > > When I clone git I get quite a few projects. > > What's the simplest way to build only gdb? > > My first attempt was to do this: > ../binutils-gdb/gdb/configure --prefix=$PWD/../prefix > however this failed with a missing bfd.h. > > In general, if I only really want to build/modify gdb, > should I attempt to build everything like, > ../binutils-gdb/configure --prefix=$PWD/../prefix > or should I install the dev packages for everything I'm missing? You need to run configure from the top level. I.e. ../binutils-gdb/configure ... not ../binutils-gdb/gdb/configure ... gdb uses several libraries in the binutils-gdb repo and those must be built first. You're probably worried that if you run the top level configure and then do "make" that will build everything including gas,ld,binutils,etc. and not just the gdb you want. One solution to this is to do "make all-gdb" instead of "make". There are also configure options to disable building of pieces so that "make" will then build just gdb. ../binutils-gdb/configure --disable-gas --disable-binutils --disable-ld --disable-gold --disable-gprof [I think(!) I spelled those right and I think(!) I remembered everything to disable.]