From owner-freebsd-current Fri Jul 6 7:42:14 2001 Delivered-To: freebsd-current@freebsd.org Received: from alpo.whistle.com (s206m1.whistle.com [207.76.206.1]) by hub.freebsd.org (Postfix) with ESMTP id 0A8FC37B405 for ; Fri, 6 Jul 2001 07:42:11 -0700 (PDT) (envelope-from mark@whistle.com) Received: from [207.76.207.129] (PBG4.whistle.com [207.76.207.129]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id HAA69306; Fri, 6 Jul 2001 07:40:52 -0700 (PDT) Mime-Version: 1.0 X-Sender: mark@207.76.206.1 Message-Id: In-Reply-To: <20010706163743.D506@gsmx07.alcatel.com.au> References: <20010706150804.B506@gsmx07.alcatel.com.au> <20010706163743.D506@gsmx07.alcatel.com.au> Date: Fri, 6 Jul 2001 07:40:59 -0700 To: Peter Jeremy From: Mark Peek Subject: Re: chgrp broken on alpha systems Cc: freebsd-current@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 4:37 PM +1000 7/6/01, Peter Jeremy wrote: >Another random thought: If it was easier to build/install a >cross-platform version of gcc, it might be easier to convince >developers to at least check that compiling on different platforms >works before committing. Peter, I had the same idea last night. I modified my PowerPC cross-compiler "port" to produce an Alpha version. This is based on the lang/gcc295 port so it contains the FreeBSD patches for things like -Wformat. For sake of example, I only worried about the compiler and not linking since that would require compiling or downloading the libs for an Alpha. # uname -m i386 # cvs update -r1.5 chkgrp.c P chkgrp.c # make CC=alpha-gcc chkgrp.o alpha-gcc -O -pipe -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -c chkgrp.c cc1: warnings being treated as errors chkgrp.c: In function `main': chkgrp.c:76: warning: passing arg 2 of `fgetln' from incompatible pointer type *** Error code 1 Stop in /tmp/chkgrp. # cvs update -r1.6 chkgrp.c P chkgrp.c # make CC=alpha-gcc chkgrp.o alpha-gcc -O -pipe -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -c chkgrp.c This could help prevent breakage to buildworld on other platforms but, of course, does not prevent runtime errors from creeping in. If there is interest in this, I could see about getting this into ports (after a little testing and tweaking). Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message