From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26791 invoked by alias); 6 Jun 2008 14:57:30 -0000 Received: (qmail 26708 invoked by uid 22791); 6 Jun 2008 14:57:27 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 06 Jun 2008 14:56:52 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m56Euogo031355; Fri, 6 Jun 2008 10:56:50 -0400 Received: from zebedee.pink (vpn-14-16.rdu.redhat.com [10.11.14.16]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m56EunQY007876; Fri, 6 Jun 2008 10:56:49 -0400 Message-ID: <48495031.5080806@redhat.com> Date: Fri, 06 Jun 2008 14:57:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: Nick England CC: gcc-help@gcc.gnu.org Subject: Re: Compiling instructions unclear gcc-4.3.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-06/txt/msg00070.txt.bz2 Nick England wrote: > the instructions on http://gcc.gnu.org/install/configure.html > > say: > > To configure GCC: > > % mkdir objdir > % cd objdir > % srcdir/configure [options] [target] > > However, in the insctutions on building it only says to do a make. You can't build without first configuring; there's nothing to build until you've defined a configuration. > If I do a make in objdir I get "make: *** No targets specified and no > makefile found. Stop." > > If I do a make in the srcdir then I am building in the srcdir, which > the instructions advise against. > > What is the correct command to run to build GCC in a non-src dir? % mkdir objdir % cd objdir % srcdir/configure [options] [target] % make % make install Andrew.