2006-03-17 02:35:22

by David Lang

[permalink] [raw]
Subject: uml build problem 2.6.15.6/2.6.16rc6

I'm attempting to build a UML kernel on both versions (same starting
config before make ARCH-um oldconfig) and I get the following error on
2.6.16rc6 (similar errors on 2.6.15.6)

this is on a dual Opteron system with a debian 3.1 64bit build

# make ARCH=um -j8
SYMLINK arch/um/include/kern_constants.h
SYMLINK arch/um/include/sysdep
CHK include/linux/version.h
scripts/kconfig/conf -s arch/um/Kconfig
#
# using defaults found in .config
#
.config:11:warning: trying to assign nonexistent symbol HZ
CHK arch/um/include/uml-config.h
UPD arch/um/include/uml-config.h
SPLIT include/linux/autoconf.h -> include/config/*
CC arch/um/kernel/asm-offsets.s
In file included from include/asm/timex.h:14,
from include/linux/timex.h:61,
from include/linux/sched.h:11,
from arch/um/include/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
include/asm/processor.h:70: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
include/asm/processor.h:70: error: requested alignment is not a constant
include/asm/processor.h:225: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
include/asm/processor.h:225: error: requested alignment is not a constant
In file included from include/linux/sched.h:12,
from arch/um/include/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
include/linux/jiffies.h:18:5: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:20:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:22:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:24:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:26:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:28:7: warning: "CONFIG_HZ" is not defined

many for errors follow in jiffies.h related to CONFIG_HZ

include/linux/jiffies.h:410:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:410:6: division by zero in #if
include/linux/jiffies.h: In function `jiffies_64_to_clock_t':
include/linux/jiffies.h:411: error: `CONFIG_HZ' undeclared (first use in
this function)
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:42,
from include/linux/sched.h:20,
from arch/um/include/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
(first use in this function)
In file included from include/linux/slab.h:97,
from include/linux/percpu.h:4,
from include/linux/sched.h:34,
from arch/um/include/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
include/linux/kmalloc_sizes.h:5:5: warning: "CONFIG_X86_L1_CACHE_SHIFT" is
not defined
include/linux/kmalloc_sizes.h:9:5: warning: "CONFIG_X86_L1_CACHE_SHIFT" is
not defined
In file included from arch/um/kernel/asm-offsets.c:1:
arch/um/include/sysdep/kernel-offsets.h: In function `foo':
arch/um/include/sysdep/kernel-offsets.h:22: error: structure has no member
named `mode'
In file included from arch/um/include/sysdep/kernel-offsets.h:24,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/common-offsets.h:3: error: structure has no member named
`regs'
make[1]: *** [arch/um/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2



--
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.
-- C.A.R. Hoare


2006-03-17 19:01:39

by David Lang

[permalink] [raw]
Subject: Re: uml build problem 2.6.15.6/2.6.16rc6

On Thu, 16 Mar 2006, David Lang wrote:

> I'm attempting to build a UML kernel on both versions (same starting config
> before make ARCH-um oldconfig) and I get the following error on 2.6.16rc6
> (similar errors on 2.6.15.6)

my bad, I had done
make ARCH=um clean
make ARCH=um oldconfig
make ARCH=um -j8

but I hadn't done
make ARCH=um mrproper

doing that and then pulling in the old config and going from there seems
to be working.

David Lang

--
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.
-- C.A.R. Hoare