From owner-freebsd-current Fri Jul 6 7:48:51 2001 Delivered-To: freebsd-current@freebsd.org Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by hub.freebsd.org (Postfix) with ESMTP id A7FC337B403 for ; Fri, 6 Jul 2001 07:48:47 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from wonky.feral.com (wonky.feral.com [192.67.166.7]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id f66EmbS45226; Fri, 6 Jul 2001 07:48:37 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Fri, 6 Jul 2001 07:48:27 -0700 (PDT) From: Matthew Jacob Reply-To: To: Mark Peek Cc: Peter Jeremy , Subject: Re: chgrp broken on alpha systems In-Reply-To: Message-ID: <20010706074825.L46987-100000@wonky.feral.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Yes! On Fri, 6 Jul 2001, Mark Peek wrote: > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message