2001-07-25 18:09:31

by Leif Sawyer

[permalink] [raw]
Subject: Sparc-64 kernel build fails on version.h during 'make oldconfig'

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


For some reason, include/linux/version.h is not being built for this
procedure, however:
cp ../oldlinux/.config .
make menuconfig
make dep

works perfectly.

changing the Makefile rule for oldconfig thusly:

oldconfig: /include/linux/version.h symlinks

makes it nice and peachy.

Is there a reason that this is not done? ( also, xconfig, config are the
same as oldconfig....)



--
Leif Sawyer -- Pi@4398680
[email protected] || [email protected] || internic: LS2540
(907) 868 - 0116 || ICQ - 3749190 || http://home.gci.net/~leif
Network & Security Engineer -- General Communication Inc.
PGP Fingerprint: 77 C8 34 B8 FD BC C6 32 5F FE 93 4B AE 6C F7 4E
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT d+ s: a C+++(++)$ US++++$ UL++++$ P+++ L++(+++) E---
W+++ N+ o+ K w O- M- V PS+ PE Y+ PGP(+) t+@ 5- X R- tv b++(+++)
DI++++ D++ G+ e(+)* h-- r++ y+ PP++++ HH++++ A19 NT{--}
------END GEEK CODE BLOCK------
Decode it! http://www.ebb.org/ungeek/




2001-07-25 22:35:20

by David Miller

[permalink] [raw]
Subject: Re: Sparc-64 kernel build fails on version.h during 'make oldconfig'


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.

If you cannot simply do:

cp arch/sparc64/defconfig .config
make oldconfig; make dep; make clean; make vmlinux; make modules

Then something is truly screwed on your machine. Watch
for other errors in the make logs if it fails. I have a
strange feeling that one of the make sub-shells died on
you or something.

Later,
David S. Miller
[email protected]

2001-07-26 01:46:04

by Keith Owens

[permalink] [raw]
Subject: Re: Sparc-64 kernel build fails on version.h during 'make oldconfig'

On Wed, 25 Jul 2001 09:39:46 -0800,
Leif Sawyer <[email protected]> wrote:
>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

Ignore it, the kernel build design is wrong. make dep is supposed to
pick up all dependencies on included files but, at the time make dep is
run, generated files have not been created yet. make dep issues lots
of spurious warning and error messages. The 2.5 makefile rewrite fixes
the design. This is not a failure condition, make dep keeps going.

I have no idea why udf_fs_sb.h includes versions.h, it does not use it.
I will follow up with the UDF group.

2001-07-26 04:42:56

by Thorsten Kukuk

[permalink] [raw]
Subject: Re: Sparc-64 kernel build fails on version.h during 'make oldconfig'

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/ [email protected]
SuSE GmbH Deutschherrenstr. 15-19 D-90429 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B

2001-07-26 08:58:22

by Andreas Schwab

[permalink] [raw]
Subject: Re: Sparc-64 kernel build fails on version.h during 'make oldconfig'

Thorsten Kukuk <[email protected]> writes:

|> 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

This will still fail with parallel builds. Better make the dependency of
archdep on version.h explicit.

Andreas.

--
Andreas Schwab "And now for something
SuSE Labs completely different."
[email protected]
SuSE GmbH, Schanz?ckerstr. 10, D-90443 N?rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5