*BSD News Article 78406


Return to BSD News archive

#! rnews 1853 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!viper.inow.com!ns1.aplatform.com!ns2.mainstreet.net!news.PBI.net!news.mathworks.com!newsfeed.internetmci.com!netnews.nwnet.net!news.u.washington.edu!root
From: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: mfs & /tmp vs /var/tmp
Date: Mon, 16 Sep 1996 15:18:04 -0700
Organization: Applied Physics Lab
Lines: 36
Message-ID: <323DD21C.41C67EA6@troutmask.apl.washington.edu>
References: <51khmp$stj@yama.mcc.ac.uk>
NNTP-Posting-Host: troutmask.apl.washington.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b6 (X11; I; FreeBSD 2.1.5-RELEASE i386)

Ian Pallfreeman wrote:
> 
> Since I'm struggling to get a "make world" in /usr/src to complete without
> errors I thought it would be nice to speed up my compiles by building a kernel
> with mfs on /tmp. Not a lot happened, then I found P_tmpdir in stdio.h is set
> to /var/tmp. Rather defeats the point, I'd say. This is 2.2-CURRENT of Sep 15.

First, if you have the memory to create a mfs, then you should be able
to specify
-pipe in the CLFAGS variable contained in /etc/make.conf.  This should
remove the
need for a mfs unless /usr/obj is a symlink pointing to a directory on
the mfs
(which I doubt).


According to my version of stdio.h:

/* System V/ANSI C; this is the wrong way to do this, do *not* use
these. */
#ifndef _ANSI_SOURCE
#define P_tmpdir        "/var/tmp/"
#endif

I doubt this is your problem.  You might try setting the TMPDIR
environmental
variable to your mfs which gcc will honor; e.g,

setenv TMPDIR /tmp


-- 
Steve

finger kargl@troutmask.apl.washington.edu
http://troutmask.apl.washington.edu/~kargl/sgk.html