From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22020 invoked by alias); 24 Oct 2009 02:28:49 -0000 Received: (qmail 22011 invoked by uid 22791); 24 Oct 2009 02:28:48 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.17.164) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 24 Oct 2009 02:28:44 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.1/8.13.1) with ESMTP id n9O2SfpP007979 for ; Sat, 24 Oct 2009 02:28:41 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n9O2SZDj3432640 for ; Sat, 24 Oct 2009 04:28:41 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n9O2SZee011740 for ; Sat, 24 Oct 2009 04:28:35 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id n9O2SYAV011735; Sat, 24 Oct 2009 04:28:34 +0200 Message-Id: <200910240228.n9O2SYAV011735@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Sat, 24 Oct 2009 04:28:34 +0200 Subject: Re: i370 port - constructing compile script To: mutazilah@gmail.com (Paul Edwards) Date: Sat, 24 Oct 2009 04:11:00 -0000 From: "Ulrich Weigand" Cc: Ulrich.Weigand@de.ibm.com (Ulrich Weigand), gcc@gcc.gnu.org In-Reply-To: from "Paul Edwards" at Oct 24, 2009 10:19:11 AM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg00490.txt.bz2 Paul Edwards wrote: > > Are you running the top-level configure? (If you run a > > subdirectory configure, e.g. the one in gcc/, directly, > > things may not work correctly.) > > Yes I am. > > One other thing I did - I compiled the cross-compiler, and installed it. > > Then I wiped out the directory and extracted a fresh version and did > the configure for building the host. I thought that would make things > clean. But maybe the previous build had the correct auto-build.h > that I need, and without it I get some sort of dummy auto-build.h? No, you definitely should start from a clean build directory when building the native compiler. In fact, you should not build in the source directory at all; this has been known to not always work reliably for GCC, in particular when doing more complex builds ... This means that if your GCC source tree resides in a directory, say, ~/gcc-src you should *not* run ./configure while in ~/gcc-src. Instead, you should create a second, empty directory ~/gcc-build (which is not a subdirectory of ~/gcc-src), and run ../gcc-src/configure ... while in ~/gcc-build. The "make" process then operates wholly in the build directory, without changing anything in the source directory. For doing the second compiler build, you can either delete the build directory, or just use yet another directory. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com