Making kernel dependencies

Making kernel dependencies

Post by Wesley Am » Tue, 01 Apr 2003 09:20:45



I'm getting an error when I execute 'make dep', after downloading the
2.4.20 kernel source, and executing 'make config'.  The error is:

*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.

debian:/usr/src/linux-2.4.20# make -f Makefile dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
scripts/mkdep scripts/mkdep.c
make[1]: Entering directory `/usr/src/linux-2.4.20/arch/i386/boot'
make[1]: *** No rule to make target `dep'.  Stop.
make[1]: Leaving directory `/usr/src/linux-2.4.20/arch/i386/boot'
make: *** [archdep] Error 2

When I examine the makefile in /usr/src/linux-2.4.20/arch/i386/boot,
'dep:' is indeed an 'empty' target, i.e., there's no rule to make it.
How do I successfully make the dependencies?

Regards,
Wesley Aman

 
 
 

Making kernel dependencies

Post by Paul Kimot » Thu, 03 Apr 2003 06:39:59




> I'm getting an error when I execute 'make dep', after downloading the
> 2.4.20 kernel source, and executing 'make config'.  The error is:

> *** End of Linux kernel configuration.
> *** Check the top-level Makefile for additional configuration.
> *** Next, you must run 'make dep'.

> debian:/usr/src/linux-2.4.20# make -f Makefile dep
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
> scripts/mkdep scripts/mkdep.c
> make[1]: Entering directory `/usr/src/linux-2.4.20/arch/i386/boot'
> make[1]: *** No rule to make target `dep'.  Stop.
> make[1]: Leaving directory `/usr/src/linux-2.4.20/arch/i386/boot'
> make: *** [archdep] Error 2

> When I examine the makefile in /usr/src/linux-2.4.20/arch/i386/boot,
> 'dep:' is indeed an 'empty' target, i.e., there's no rule to make it.

(This seems to be normal.)  But it has no dependencies, either, so it must
be up-to-date, right?

Have you tried running "make dep" rather than "make -f Makefile dep"?

--
Paul Kimoto
This message was originally posted on Usenet in plain text.  Any images,
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.

 
 
 

Making kernel dependencies

Post by Wesley Am » Fri, 04 Apr 2003 23:46:42





> > I'm getting an error when I execute 'make dep', after downloading the
> > 2.4.20 kernel source, and executing 'make config'.  The error is:

> > *** End of Linux kernel configuration.
> > *** Check the top-level Makefile for additional configuration.
> > *** Next, you must run 'make dep'.

> > debian:/usr/src/linux-2.4.20# make -f Makefile dep
> > gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
> > scripts/mkdep scripts/mkdep.c
> > make[1]: Entering directory `/usr/src/linux-2.4.20/arch/i386/boot'
> > make[1]: *** No rule to make target `dep'.  Stop.
> > make[1]: Leaving directory `/usr/src/linux-2.4.20/arch/i386/boot'
> > make: *** [archdep] Error 2

> > When I examine the makefile in /usr/src/linux-2.4.20/arch/i386/boot,
> > 'dep:' is indeed an 'empty' target, i.e., there's no rule to make it.

> (This seems to be normal.)  But it has no dependencies, either, so it must
> be up-to-date, right?

> Have you tried running "make dep" rather than "make -f Makefile dep"?

The problem turned out to be a defective 'make' in /usr/local/bin,
which was invoked before the 'make' in /usr/bin.

Wesley Aman