From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28539 invoked by alias); 5 Oct 2009 13:15:15 -0000 Received: (qmail 28527 invoked by uid 22791); 5 Oct 2009 13:15:13 -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; Mon, 05 Oct 2009 13:15:06 +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 n95DF4FV018929 for ; Mon, 5 Oct 2009 13:15:04 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 n95DF48u3383394 for ; Mon, 5 Oct 2009 15:15:04 +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 n95DF3Q4023204 for ; Mon, 5 Oct 2009 15:15:03 +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 n95DF2Gd023159; Mon, 5 Oct 2009 15:15:02 +0200 Message-Id: <200910051315.n95DF2Gd023159@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 05 Oct 2009 15:15:02 +0200 Subject: Re: i370 port - constructing compile script To: mutazilah@gmail.com (Paul Edwards) Date: Mon, 05 Oct 2009 13:15:00 -0000 From: "Ulrich Weigand" Cc: iant@google.com (Ian Lance Taylor), gcc@gcc.gnu.org In-Reply-To: <6267ADE5641548FC8E063BC3A087AEC2@Paullaptop> from "Paul Edwards" at Oct 05, 2009 09:51:09 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/msg00087.txt.bz2 Paul Edwards wrote: > Would you be able to give me the two suggested configure > commands so that I can find out the answer to the above, one > way or another? For step 2 (building the cross-compiler), you'd need something along the lines of .../configure --target=i370-mvs --prefix=... --with-sysroot=... \ --enable-languages=c where prefix points to the directory where the cross-compiler should be installed, and sysroot points to the directory where the MVS libraries and header are installed. Then you need to build and install the cross-compiler (using make and make install). For the subsequent step, you need to make the cross-compiler available in the PATH. For step 3 (cross-building a native compiler), you'd need something along the lines of .../configure --build=i686-linux --host=i370-mvs --target=i370-mvs \ --prefix=... --with-build-sysroot=... --enable-languages=c This configure run will then use the i370-mvs-gcc cross-compiler you built in step 2 in order to detect MVS host properties. > Or does the configure process attempt to run the executables > as well? No, that wouldn't work (the exectuables are for a different architecture than the build system ...). > But it won't be able to correctly determine the stack direction > if it does that. So that is the sort of thing I would need some > intrusive code (out of my 20 lines quota!) to force it to 0 > (unknown stack direction). I don't think GCC needs to know the stack direction of the *host* system. (It does need to know the stack direction of the *target* system, but this is not detected by configure, but determined by target macro settings from the config/i370/*.h files.) Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com