Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2001 07:40:59 -0700
From:      Mark Peek <mark@whistle.com>
To:        Peter Jeremy <peter.jeremy@alcatel.com.au>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: chgrp broken on alpha systems
Message-ID:  <p05100300b76b7b20810e@[207.76.204.131]>
In-Reply-To: <20010706163743.D506@gsmx07.alcatel.com.au>
References:  <20010706150804.B506@gsmx07.alcatel.com.au> <Pine.BSF.4.21.0107052211560.37078-100000@beppo> <20010706163743.D506@gsmx07.alcatel.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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