Re: Sparc-64 kernel build fails on version.h during 'make oldconfig'

Thorsten Kukuk (kukuk@suse.de)
Thu, 26 Jul 2001 06:42:37 +0200


On Wed, Jul 25, David S. Miller wrote:

>
> Leif Sawyer writes:
> > When 'bootstrapping' a new kernel:
> >
> > cp ../oldlinux/.config .
> > make oldconfig
> > make dep
> > ...
> > /usr/src/linux/include/linux/udf_fs_sb.h:22: linux/version.h: No such file
> > or directory
>
> Something is terribly wrong with either your system tools or
> this ".config" you are using.

No, I send you and on the sparclinux list already a patch for
this 2 weeks ago. The problem is, that make dep will build at first
sparc specific programs (archdep) which needs linux/version.h, but
make dep does create linux/version.h only after building this tools. The
following patch solved the problem for me:

--- linux/Makefile
+++ linux/Makefile 2001/05/21 12:57:07
@@ -440,7 +440,7 @@
sums:
find . -type f -print | sort | xargs sum > .SUMS

-dep-files: scripts/mkdep archdep include/linux/version.h
+dep-files: include/linux/version.h scripts/mkdep archdep
scripts/mkdep -- init/*.c > .depend
scripts/mkdep -- `find $(FINDHPATH) -name SCCS -prune -o -follow -name \
*.h ! -name modversions.h -print` > .hdepend
$(MAKE) $(patsubst %,_sfdep_%,$(SUBDIRS)) _FASTDEP_ALL_SUB_DIRS="$(SUBDI
RS)"

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE GmbH            Deutschherrenstr. 15-19       D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/