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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to