From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2226 invoked by alias); 20 Oct 2009 13:55:33 -0000 Received: (qmail 2218 invoked by uid 22791); 20 Oct 2009 13:55:33 -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 mtagate5.de.ibm.com (HELO mtagate5.de.ibm.com) (195.212.17.165) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Oct 2009 13:55:26 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate5.de.ibm.com (8.13.1/8.13.1) with ESMTP id n9KDtN9F026002 for ; Tue, 20 Oct 2009 13:55:23 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 n9KDtN6h3395828 for ; Tue, 20 Oct 2009 15:55: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 n9KDtNRW008826 for ; Tue, 20 Oct 2009 15:55:23 +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 n9KDtM2u008815; Tue, 20 Oct 2009 15:55:22 +0200 Message-Id: <200910201355.n9KDtM2u008815@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Tue, 20 Oct 2009 15:55:22 +0200 Subject: Re: i370 port - constructing compile script To: mutazilah@gmail.com (Paul Edwards) Date: Tue, 20 Oct 2009 15:30:00 -0000 From: "Ulrich Weigand" Cc: gcc@gcc.gnu.org In-Reply-To: <3E3410F771834DDBA3C473234D297569@Paullaptop> from "Paul Edwards" at Oct 21, 2009 12:04:23 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/msg00423.txt.bz2 Paul Edwards wrote: > > Maybe a more generic way to work around the missing assembler and linker > > would be to provide dummy scripts i370-mvspdp-as > > I created one of them, but as far as I can tell it didn't pick it up. Ah, you'll probably have to re-run configure and rebuild the cross compiler. The configure/build process checks for the presence of the cross-assembler and decides which one to use. > > The compiler error output found in the config.log file should hopefully > > point to the problem ... > > Well, below are some of the changes I made today to get it to go > past the various errors. Probably the most interesting was this > one: > > ! #define BIG_ENDIAN 1 > ! #define LITTLE_ENDIAN 2 > ! #define BYTE_ORDER 1 > > I don't have a sys/param.h and so I just stuck those in somewhere > that it seemed to be looking for, so that it didn't come up and say > that it couldn't determine the endian order. Hmm, it seems configure does use a couple of fallbacks to determine byte order if sys/param.h doesn't exist, but those require a working cross-assembler ... > It seemed to try very hard to stick in sys/types.h and sys/time.h > and I'm not sure how well I got around that. Generally speaking, the configure process should work on non-POSIX systems that don't provide those headers. But it may well be that something is broken in this case; this will be rarely tested ... > It also seemed to execute /bin/as at one point instead of my > dummy cross-assembler. I'll try to figure out what the logic > is tomorrow. See above; you should try to rebuild the cross-compiler first. > Index: configure > =================================================================== > RCS file: /cvsroot/gccnew/gcc/configure,v For now, just patching configure to see how far you get is of course fine. Longer term, however, note that configure is a generated file. You'd have to make those changes either in configure.ac or possible within the autoconf machinery that generates the file. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com