[ltt-dev] 2.6.29-rc7-lttng-0.110 broken with CONFIG_SLUB
Josh Boyer
jwboyer at linux.vnet.ibm.com
Mon Mar 16 14:22:27 EDT 2009
Hi All,
I was attempting to build a simple ppc64_defconfig using
the latest LTTng tag from git. When doing a:
make ppc64_defconfig
make
I get the error below.
Looking at it a bit, it seems that 6ff4cecc57ea21004e1f0b15cb1319b52110bbd3
adds a "#include <asm/time.h>" to the arch/powerpc/include/asm/timex.h file.
This explodes because it is included before CLOCK_TICK_RATE is defined in
that file, and the include dependencies when CONFIG_SLUB is set eventually
cause this missing define to produce the error.
I tried moving the #include <asm/time.h> below the CLOCK_TICK_RATE
definition, but it just breaks the build at a later point.
Has LTTng been built with CONFIG_SLUB before? I'll note that this isn't
even into the LTTng parts yet and it's causing problems. I'd eventually
like to use this on an embedded board such as
arch/powerpc/configs/44x/sequioa_defconfig, however for this report I
thought I'd use a pretty common config like ppc64_defconfig.
josh
[jwboyer at yoda linux-2.6]$ make
scripts/kconfig/conf -s arch/powerpc/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-powerpc
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/powerpc/kernel/asm-offsets.s
In file included from include/linux/ktime.h:25,
from include/linux/timer.h:5,
from include/linux/workqueue.h:8,
from include/linux/slub_def.h:11,
from include/linux/slab.h:153,
from include/linux/percpu.h:5,
from /home/jwboyer/src/linux-2.6/arch/powerpc/include/asm/time.h:18,
from /home/jwboyer/src/linux-2.6/arch/powerpc/include/asm/timex.h:10,
from include/linux/timex.h:170,
from include/linux/sched.h:54,
from arch/powerpc/kernel/asm-offsets.c:17:
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
make[1]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
[jwboyer at yoda linux-2.6]$
More information about the lttng-dev
mailing list