From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 334 invoked by alias); 19 Oct 2009 12:27:34 -0000 Received: (qmail 325 invoked by uid 22791); 19 Oct 2009 12:27:33 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f200.google.com (HELO mail-pz0-f200.google.com) (209.85.222.200) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Oct 2009 12:27:28 +0000 Received: by pzk38 with SMTP id 38so3188726pzk.9 for ; Mon, 19 Oct 2009 05:27:25 -0700 (PDT) Received: by 10.115.133.39 with SMTP id k39mr6144010wan.94.1255955245829; Mon, 19 Oct 2009 05:27:25 -0700 (PDT) Received: from Paullaptop (203-214-142-52.perm.iinet.net.au [203.214.142.52]) by mx.google.com with ESMTPS id 22sm190036pzk.10.2009.10.19.05.27.21 (version=SSLv3 cipher=RC4-MD5); Mon, 19 Oct 2009 05:27:23 -0700 (PDT) Message-ID: <53C468CE760F4891A29B8D8C32A238D5@Paullaptop> From: "Paul Edwards" To: "Ulrich Weigand" Cc: "Ian Lance Taylor" , References: <200910051315.n95DF2Gd023159@d12av02.megacenter.de.ibm.com> In-Reply-To: <200910051315.n95DF2Gd023159@d12av02.megacenter.de.ibm.com> Subject: Re: i370 port - constructing compile script Date: Mon, 19 Oct 2009 14:19:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original 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/msg00401.txt.bz2 > .../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. Ok, I used ../configure --target=i370-mvspdp --prefix=/devel/mvscross --with-sysroot=/devel/mvshead --enable-languages=c plus make and make install then I went to mvscross/bin and renamed i370-mvspdp-gcc to i370-mvspdp-xxx and replaced it with a script that does: i370-mvspdp-xxx -S $* > 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 ./configure --build-i686-linux --host=i370-mvspdp --target=i370-mvspdp --prefix=/devel/mvshost --with-build-sysroot=/devel/mvshead --enable-languages=c I wasn't sure if that --with-build-sysroot was right - pointing to the same headers, but couldn't think of anything else to do with it! > This configure run will then use the i370-mvs-gcc cross-compiler > you built in step 2 in order to detect MVS host properties. Ok, it (3.4.6 I am using) got as far as: checking size of void *... configure: error: cannot determine a size of void * make: *** [configure-gcc] Error 1 I haven't had a chance to investigate what it's trying to do there, to see if I can devise a workaround. I know that it seems to try to compile with "-g" all the time which gives a warning about it not being supported, but I don't think warnings produce bad return codes like that. BFN. Paul.