Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: jwboyer@linux.vnet.ibm.com (Josh Boyer)
Subject: [ltt-dev] 2.6.29-rc7-lttng-0.110 broken with CONFIG_SLUB
Date: Mon, 16 Mar 2009 14:22:27 -0400	[thread overview]
Message-ID: <20090316182227.GA2444@yoda.jdub.homelinux.org> (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]$



             reply	other threads:[~2009-03-16 18:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 18:22 Josh Boyer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090316182227.GA2444@yoda.jdub.homelinux.org \
    --to=jwboyer@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox