public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Sparc-64 kernel build fails on version.h during 'make oldconfig'
@ 2001-07-25 17:39 Leif Sawyer
  2001-07-25 22:35 ` David S. Miller
  2001-07-26  1:45 ` Keith Owens
  0 siblings, 2 replies; 5+ messages in thread
From: Leif Sawyer @ 2001-07-25 17:39 UTC (permalink / raw)
  To: linux-kernel

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
leif@gci.net  ||  lsawyer@gci.com  ||  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/




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Sparc-64 kernel build fails on version.h during 'make oldconfig'
  2001-07-25 17:39 Sparc-64 kernel build fails on version.h during 'make oldconfig' Leif Sawyer
@ 2001-07-25 22:35 ` David S. Miller
  2001-07-26  4:42   ` Thorsten Kukuk
  2001-07-26  1:45 ` Keith Owens
  1 sibling, 1 reply; 5+ messages in thread
From: David S. Miller @ 2001-07-25 22:35 UTC (permalink / raw)
  To: Leif Sawyer; +Cc: linux-kernel


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
davem@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Sparc-64 kernel build fails on version.h during 'make oldconfig'
  2001-07-25 17:39 Sparc-64 kernel build fails on version.h during 'make oldconfig' Leif Sawyer
  2001-07-25 22:35 ` David S. Miller
@ 2001-07-26  1:45 ` Keith Owens
  1 sibling, 0 replies; 5+ messages in thread
From: Keith Owens @ 2001-07-26  1:45 UTC (permalink / raw)
  To: Leif Sawyer; +Cc: linux-kernel

On Wed, 25 Jul 2001 09:39:46 -0800, 
Leif Sawyer <lsawyer@gci.com> 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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Sparc-64 kernel build fails on version.h during 'make oldconfig'
  2001-07-25 22:35 ` David S. Miller
@ 2001-07-26  4:42   ` Thorsten Kukuk
  2001-07-26  8:58     ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Kukuk @ 2001-07-26  4:42 UTC (permalink / raw)
  To: David S. Miller; +Cc: Leif Sawyer, linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Sparc-64 kernel build fails on version.h during 'make oldconfig'
  2001-07-26  4:42   ` Thorsten Kukuk
@ 2001-07-26  8:58     ` Andreas Schwab
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Schwab @ 2001-07-26  8:58 UTC (permalink / raw)
  To: Thorsten Kukuk; +Cc: David S. Miller, Leif Sawyer, linux-kernel

Thorsten Kukuk <kukuk@suse.de> 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."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-07-26  8:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-25 17:39 Sparc-64 kernel build fails on version.h during 'make oldconfig' Leif Sawyer
2001-07-25 22:35 ` David S. Miller
2001-07-26  4:42   ` Thorsten Kukuk
2001-07-26  8:58     ` Andreas Schwab
2001-07-26  1:45 ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox