From owner-freebsd-bugs Sun Jul 1 12:20:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0661037B401 for ; Sun, 1 Jul 2001 12:20:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f61JK3A82020; Sun, 1 Jul 2001 12:20:03 -0700 (PDT) (envelope-from gnats) Date: Sun, 1 Jul 2001 12:20:03 -0700 (PDT) Message-Id: <200107011920.f61JK3A82020@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: i386/28562: assym.s: No such file or directory Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/28562; it has been noted by GNATS. From: Peter Pentchev To: freebsd-gnats-submit@FreeBSD.org Cc: FUJISHIMA Satsuki Subject: Re: i386/28562: assym.s: No such file or directory Date: Sun, 1 Jul 2001 22:16:51 +0300 On Sun, Jul 01, 2001 at 11:40:04AM -0700, FUJISHIMA Satsuki wrote: > The following reply was made to PR i386/28562; it has been noted by GNATS. > > From: FUJISHIMA Satsuki > To: kaz@kobe1995.net > Cc: FreeBSD-gnats-submit@freebsd.org > Subject: Re: i386/28562: assym.s: No such file or directory > Date: Mon, 02 Jul 2001 03:36:36 +0900 > > At Sun, 1 Jul 2001 11:55:32 +0900 (JST), > kaz@kobe1995.net wrote: > > Can't make my kernel. Costomize my kernel configuratoin file > > "KOBE" as below. And "config KOBE","cd ../../compile/KOBE", > > "make -DNO_MODULES depend all",then failed as > > Do not run depend and all on one make. > assym.s is made during make depend. > > # make depend > cc -c -O -pipe -march=i686 -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 ../../i386/i386/genassym.c > sh ../../kern/genassym.sh genassym.o > assym.s > > The proper way is: > make -DNO_MODULES depend && make -DNO_MODULES all That's correct. To expand a bit more: The 'depend' target creates the dependency tree for source files - which source file should be compiled under what conditions. It creates a file, usually named '.depend', and a couple of other files. The '.depend' file is read by make(1) at the very start, and is NOT reread when make(1) moves on to the next target specified on the command line. Thus, any changes to the '.depend' file made in the first target, cannot possibly take effect in the second - which is where make(1) finds out that something depends on assym.s, and that it has not recorded any dependency information for that file. In short, yes, the 'depend' target should be invoked separately from anything else. You can run 'make all install reinstall', or however many more targets you want to queue up, but the 'make depend' should be run before that. G'luck, Peter -- I am the thought you are now thinking. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message