From owner-freebsd-current Wed Aug 13 01:21:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA03957 for current-outgoing; Wed, 13 Aug 1997 01:21:29 -0700 (PDT) Received: from gw.itfs.nsk.su (gw.itfs.nsk.su [193.124.36.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id BAA03944 for ; Wed, 13 Aug 1997 01:21:11 -0700 (PDT) Received: from itfs.UUCP (uucp@localhost) by gw.itfs.nsk.su (8.6.12/8.6.12) with UUCP id PAA10610 for current@freebsd.org; Wed, 13 Aug 1997 15:20:52 +0700 Received: by itfs.nsk.su; Wed, 13 Aug 97 15:11:49 +0700 (NST) Received: (from daemon@localhost) by news.itfs.nsk.su (8.7.5/8.6.12) id PAA18029; Wed, 13 Aug 1997 15:08:18 +0700 (NSD) From: nnd@itfs.nsk.su To: current@freebsd.org Subject: Re: Make and SMP - what can be done ? Date: 13 Aug 1997 08:08:16 GMT Message-ID: <5srq1g$b4e@news.itfs.nsk.su> References: <199708130432.VAA06415@silvia.HIP.Berkeley.EDU> Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Satoshi Asami wrote: > * You've touched on a topic dear to my heart! I took a stab at this once > * and gave up for lack of knowledge of the .mk system and its subltlies. > Amen to the first sentence! I haven't tried looking into this yet, I > might try after the "new world" dust settles as I'm quite interested > in this area. > * I added JMAKEFLAGS= -j12 to /etc/make.conf, then added JMAKEFLAGS > * to some of the lower level Makefiles, like the ones for libraries. > * This worked nicely. I found other Makefiles that just needed a little > * more work on the dependancies, they sometimes need to be more explicit > * in a parallel world. Things with YACC & LEX passes die horribly. My first result from some experiments in this area was just sended as a PR about inconsistent make behavior - it treats -j12 flags differently in various command line positions - i.e. before or after some variable definitions. I doubght that this is "a feature" and not "a plain bug", so I hope that somebody will observe and commit applied to PR fix. P.S. Looking at make's work with -j12 flag gives me strange feelings about intentions of author(s) of such an "extension" to traditional make behavior ;-) Is there any papers/READMEs on this topic ? P.P.S. Due to the fact that majority of Makefiles expect traditional make behavior and work with "make -j12" only by incident (:-) can we consider "make -j12" behavior as "undefined" in some areas and make it more "compatible" with traditional make - f.e. to make command line supplied targets evaluation strictly sequentional ? Or will this make us "unreasonably uncompatible" ? (with what ?) N.Dudorov