From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 62EF23858407 for ; Wed, 8 Sep 2021 08:12:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 62EF23858407 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wm1-x335.google.com with SMTP id g74so1012043wmg.5 for ; Wed, 08 Sep 2021 01:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=P1xjQWZc0ZA5YOdbOsBZBckzLOSp6pdqJ2M2ypiv0TQ=; b=hrqvSKKXAckxmvlVM985/tAdE7PR20hPr5H/lGKXRmr8KOaQ+/nAl5WAMFN+n3+AbN LtPw5a1MfhLqF8+l+4/TFecz2HiXQjtMEFy31Y7jtwlp3j4zZ8teEWEWLcvj38AdXpbG S47yTc0PYTTssyns9rytksOMa852oHu3L//UvqU0Eqpk27S2G9pYw1kINF0kszVTq9OJ 98FEQAhE2dakCGtwFqvK2JRYg4QkonAdQeLgsBAZ5jPrFdSXNaAYmUM+huC96kHqRUDr Pg34mkEjuyUPqqgRb4fvXghlpaFZobTkUyNzgoRElTZsA/dnwDVYGUvCcGhGjMcz47+c gpYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=P1xjQWZc0ZA5YOdbOsBZBckzLOSp6pdqJ2M2ypiv0TQ=; b=bGTrsVhx3lijbZgabVgOpGO87DzT3hGUJOSYUpl4UeTAM4CtVPa8G5TNPYO0SepfQK v2DubMst9B94VuVPyCyuuLkaKJ3gSloS3ooAv9CvdjRJTqbfBO2lQu2Rpa8DHZ7J2J9P WU7ns2pfQDbTjoeTTgyY6QD1vliA2jU1nPjg4qw2fyH03rpB80HIu6sGTSbanUoU6Qlq vNUGMbbY7fz4y08DSCgiAdo1II5Ino5xEzqsqtFORVvrFDGWyRiqnOLtTqsd0HO03b8e MhjkWuOEspiNUv3+h8Eg408/rLlhk+gdjoJIca0/5VJM92oCe4dyDHTAH5SgICpx+s7I THDQ== X-Gm-Message-State: AOAM531DNTCN6jH8NI0AvoKBEBbgvH9PXI0USbPy6Zp9Fa6wG+Gk4qC3 gYsbTNqz7dhIiydSCzB0FPyby8kTEWfy6w== X-Google-Smtp-Source: ABdhPJycaZLEG8l4Hfgb+4+uQDW9qxITd8VdxND/WGS289rBwNHxFC+bKHlV7RH/wiL7hnp85JXAGw== X-Received: by 2002:a1c:2b04:: with SMTP id r4mr2190240wmr.168.1631088772499; Wed, 08 Sep 2021 01:12:52 -0700 (PDT) Received: from localhost (host109-151-25-83.range109-151.btcentralplus.com. [109.151.25.83]) by smtp.gmail.com with ESMTPSA id q7sm1372238wrc.55.2021.09.08.01.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 01:12:52 -0700 (PDT) Date: Wed, 8 Sep 2021 09:12:51 +0100 From: Andrew Burgess To: SAIFI Cc: gdb@sourceware.org Subject: Re: building GDB natively using 'configure' at 'two' levels Message-ID: <20210908081251.GD4124615@embecosm.com> References: <39174ae-8f97-1a1d-23e4-54688976504a@strikr.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39174ae-8f97-1a1d-23e4-54688976504a@strikr.io> X-Operating-System: Linux/5.8.18-100.fc31.x86_64 (x86_64) X-Uptime: 09:08:32 up 21 days, 21:04, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2021 08:12:54 -0000 * SAIFI [2021-09-08 07:25:09 +0000]: > Hi: > > git cloned GDB and would like to build GDB natively using 'configure' at 'two' levels. > > at the top of the source tree ${SRC}/gdb/, i have > > ${SRC}/gdb/configure \ > --prefix=/opt/gdb \ > --datadir=/opt/gdb/data \ > --htmldir=/opt/gdb/doc \ > --disable-binutils \ > --disable-ld \ > --disable-gold \ > --disable-gas \ > --disable-sim \ > --disable-gprof \ > > and at ${SRC}/gdb/gdb/, i have > > ${SRC}/gdb/gdb/configure \ > --prefix=/opt/gdb \ > --datadir=/opt/gdb/data \ > --htmldir=/opt/gdb/doc \ > --disable-largefile \ > --with-gnu-ld \ > --with-expat=no \ > --with-python=no \ > --with-guile=no \ > --with-intel-pt=no \ > --with-babeltrace=no > > what is the recommended way to run 'configure' at the top of the > source tree, so that it will execute the custom configure in > gdb/gdb/ ? Here's how I'd configure and build GDB: mkdir binutils-gdb cd binutils-gdb git clone git://sourceware.org/git/binutils-gdb.git src mkdir build cd build ../src/configure .... all configure options here .... make all-gdb make check-gdb # Optional, if you want to check it's working. make install-gdb Configure options passed to src/configure will be forwarded to src/gdb/configure automatically. Hope that helps, Thanks, Andrew