*BSD News Article 27081


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!uunet!MathWorks.Com!europa.eng.gtefsd.com!paladin.american.edu!constellation!rex!ben
From: ben@rex.uokhsc.edu (Benjamin Z. Goldsteen)
Subject: GNU C crashs on PC; what about cross-compiling from RS/6000?
Message-ID: <CKxusJ.Ktn@rex.uokhsc.edu>
Date: Wed, 9 Feb 1994 03:53:06 GMT
Reply-To: benjamin-goldsteen@uokhsc.edu
Organization: Health Sciences Center, University of Oklahoma
Lines: 32

      I was wondering if anyone has cross-compiled their NetBSD-current
or FreeBSD-current?  I currently do not have the hard drive to compile
it locally but I do have good access to an RS/6000-950 with 128MB RAM. 
I would imagine that it would considerably quicker to cross-compile and
download the binaries over a 14.400baud modem then to download the
sources over a 14.400baud modem and compile there.  If nobody has then
I will be sure to keep notes...

      BTW, one reason I want to do this is because when I try to
recompile the kernel on my 386SX-20/5MB RAM/81MB IDE, GNU C tends to
crash with random signals numbers (BUS error and SEGV are most popular
but I also got an ALRM) for no apparent reason.  I can usually compile
a few more objects if I simply type "make" again...and then perhaps a
couple less than that and then a couple less than that until I can't
even compile one source file without GNU C crashing.  The same thing
happened under an a version of SLS Linux many months ago (the great
"net support" I got was "Linux doesn't crash").  This is with FreeBSD
1.0e (downloaded from freebsd.cdrom.com this weekend).  Just to see if
my machine is going to crap, I wrote a little program that runs though
memory and checks to see if the values change.  I ran two or three
instances at a time and used up about all swap and such and I had no
problems at all (I ran this for like 10 minutes).  I got around this
just to recompile the kernel with:

csh -c '( cd /sys/compile/BEN; make || make || make || reboot ) &'

in my /etc/rc.local.  Any better ideas?  I will be glad to supply more
information to anybody who is interested in helping me.

Thank you!
-- 
Benjamin Z. Goldsteen