Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] 2.6.29-rc7-lttng-0.110 broken with CONFIG_SLUB
@ 2009-03-16 18:22 Josh Boyer
  2009-03-16 19:44 ` Mathieu Desnoyers
  0 siblings, 1 reply; 14+ messages in thread
From: Josh Boyer @ 2009-03-16 18:22 UTC (permalink / raw)


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



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

end of thread, other threads:[~2009-03-17  8:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-16 18:22 [ltt-dev] 2.6.29-rc7-lttng-0.110 broken with CONFIG_SLUB Josh Boyer
2009-03-16 19:44 ` Mathieu Desnoyers
2009-03-16 20:01   ` Josh Boyer
2009-03-16 20:25     ` Mathieu Desnoyers
2009-03-16 20:58       ` Josh Boyer
2009-03-16 21:53         ` Mathieu Desnoyers
2009-03-16 22:05           ` Josh Boyer
2009-03-16 23:11             ` [ltt-dev] [PATCH] kernel/irq/handle.c fix kstat_irqs_cpu and irq_to_desc symbols Mathieu Desnoyers
2009-03-16 23:52               ` Thomas Gleixner
2009-03-17  0:08                 ` [ltt-dev] [PATCH] kernel/irq/handle.c fix kstat_irqs_cpu and irq_to_desc symbols v2 Mathieu Desnoyers
2009-03-17  0:34                   ` Josh Boyer
2009-03-17  8:29                   ` Thomas Gleixner
2009-03-16 20:47     ` [ltt-dev] 2.6.29-rc7-lttng-0.110 broken with CONFIG_SLUB Mathieu Desnoyers
2009-03-16 21:01       ` Josh Boyer

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