Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2001 07:48:27 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        Mark Peek <mark@whistle.com>
Cc:        Peter Jeremy <peter.jeremy@alcatel.com.au>, <freebsd-current@FreeBSD.ORG>
Subject:   Re: chgrp broken on alpha systems
Message-ID:  <20010706074825.L46987-100000@wonky.feral.com>
In-Reply-To: <p05100300b76b7b20810e@[207.76.204.131]>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010706074825.L46987-100000>