From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9223 invoked by alias); 23 Oct 2009 14:58:31 -0000 Received: (qmail 9212 invoked by uid 22791); 23 Oct 2009 14:58:30 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mtagate7.de.ibm.com (HELO mtagate7.de.ibm.com) (195.212.17.167) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Oct 2009 14:58:26 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate7.de.ibm.com (8.13.1/8.13.1) with ESMTP id n9NEwOpM007513 for ; Fri, 23 Oct 2009 14:58:24 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 n9NEwL4d3244240 for ; Fri, 23 Oct 2009 16:58:23 +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 n9NEwLLi012920 for ; Fri, 23 Oct 2009 16:58:21 +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 n9NEwKFZ012882; Fri, 23 Oct 2009 16:58:20 +0200 Message-Id: <200910231458.n9NEwKFZ012882@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 23 Oct 2009 16:58:20 +0200 Subject: Re: i370 port - constructing compile script To: mutazilah@gmail.com (Paul Edwards) Date: Fri, 23 Oct 2009 15:16: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 01:14:51 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/msg00469.txt.bz2 Paul Edwards wrote: > Ok, perhaps this error was because when I hit errors in intl, > which I've never used before, I just went to the gcc directory and > did a make. > > Regardless, I added a stack of touch xxx.o in the intl directory > after the failure of the first make, which allowed me to do a second > make, and then it was satisfied with the intl directory and moved > on to the gcc directory, where it did in fact invoke the correct > gcc rather than the cross-compiler. If you use --disable-nls on the configure line, the intl directory should be skipped ... > The next thing I hit was that genmodes didn't compile because > there were conflicts between the strsignal function in the > Linux include files and the system.h. Looking at the system.h, > it was including things in because it thought that the prototypes > didn't exist. Which would have been true for the cross-compiler, > but isn't true for a native gcc. How are those two different things > meant to be reconciled? Before including "system.h", generator files include "bconfig.h" where core compiler files include "config.h". The former then in turn includes "auto-build.h", while the latter includes "auto-host.h". These contain the configure results for the --build= and --host= systems, respectively. All this should work automatically if you use the proper configure options, so something odd must be going on ... 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.) Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com