Re: Linux 2.6.28-rc1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alistair John Strachan
Date: Friday, October 24, 2008 - 5:52 am

On Friday 24 October 2008 12:45:04 Rafael J. Wysocki wrote:

This should reproduce it (whether or not it's a use-case we care about is 
another matter). First, make sure your include/asm symlink has been removed, 
then execute the following sequence:

git reset --hard v2.6.27 ; git clean -d -f
git status ("Nothing to commit")

cp /path/to/config .config
make oldconfig prepare
git clean -d -f ; git reset --hard
git status ("Nothing to commit")

Observe at this point that include/asm is valid and points to include/asm-x86, 
despite the clean and reset (I guess this file is being ignored). Now:

git reset --hard v2.6.28-rc1 (Or whatever other method you might choose)
git clean -d -f (Removes include/asm-x86)

Observe at this point that include/asm is now invalid, and still points to the 
removed include/asm-x86 directory.

cp /path/to/config .config
make oldconfig prepare

Should fail at this point:

scripts/kconfig/conf -o arch/x86/Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf -s arch/x86/Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  CC      kernel/bounds.s
  GEN     include/linux/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/asm/asm-offsets.h
/bin/sh: include/asm/asm-offsets.h: No such file or directory
make[2]: *** [include/asm/asm-offsets.h] Error 1
make[1]: *** [prepare0] Error 2
make: *** [prepare] Error 2

Can you confirm?

I checked out Makefile and I believe it occurs because the current checks only 
make sure a symlink exists, and if it does exist that its target matches up 
with the selected architecture. It doesn't actually check the destination of 
the symlink is valid.

I'd suggest that it should do that too, and if the destination doesn't exist, 
re-write the symlink when it does "mkdir include/asm-x86" further down, but 
I'm not a kbuild expert.

-- 
Cheers,
Alistair.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux 2.6.28-rc1, Linus Torvalds, (Thu Oct 23, 9:10 pm)
Re: Linux 2.6.28-rc1, Roland Dreier, (Thu Oct 23, 9:14 pm)
Re: Linux 2.6.28-rc1, Alistair John Strachan, (Fri Oct 24, 4:24 am)
Re: Linux 2.6.28-rc1, Rafael J. Wysocki, (Fri Oct 24, 4:45 am)
Re: Linux 2.6.28-rc1, Alistair John Strachan, (Fri Oct 24, 5:52 am)
Re: Linux 2.6.28-rc1, Alexey Dobriyan, (Fri Oct 24, 6:13 am)
git-clean [Was: Linux 2.6.28-rc1], Björn, (Fri Oct 24, 7:56 am)
Re: Linux 2.6.28-rc1, Linus Torvalds, (Fri Oct 24, 8:17 am)
Re: Linux 2.6.28-rc1, Matt Mackall, (Fri Oct 24, 10:09 am)
Re: Linux 2.6.28-rc1, Matt Mackall, (Fri Oct 24, 10:54 am)
Re: Linux 2.6.28-rc1, Randy Dunlap, (Fri Oct 24, 10:57 am)
Re: Linux 2.6.28-rc1, Fenghua Yu, (Fri Oct 24, 11:05 am)
Re: Linux 2.6.28-rc1, Greg KH, (Fri Oct 24, 11:08 am)
Re: Linux 2.6.28-rc1, Matt Mackall, (Fri Oct 24, 11:11 am)
Re: Linux 2.6.28-rc1, Sam Ravnborg, (Fri Oct 24, 12:15 pm)
Re: Linux 2.6.28-rc1, Sam Ravnborg, (Fri Oct 24, 12:22 pm)
nf_conntrack oopes on parisc/smp (was Re: Linux 2.6.28-rc1), Domenico Andreoli, (Fri Oct 24, 3:28 pm)
Re: Linux 2.6.28-rc1, David Miller, (Fri Oct 24, 3:31 pm)
Re: Linux 2.6.28-rc1, Sam Ravnborg, (Fri Oct 24, 3:51 pm)
Re: Linux 2.6.28-rc1, Tony Vroon, (Fri Oct 24, 3:53 pm)
Re: Linux 2.6.28-rc1, Arjan van de Ven, (Fri Oct 24, 4:01 pm)
Re: Linux 2.6.28-rc1, Alistair John Strachan, (Fri Oct 24, 4:44 pm)
Re: Linux 2.6.28-rc1, Tony Vroon, (Sun Oct 26, 6:17 am)
Re: 2.6.28-rc1: NVRAM being corrupted on ppc64 preventing ..., Benjamin Herrenschmidt, (Fri Oct 31, 4:31 am)