[ltt-dev] 2.6.29-rc7-lttng-0.110 broken with CONFIG_SLUB

Mathieu Desnoyers compudj at krystal.dyndns.org
Mon Mar 16 15:44:59 EDT 2009


* Josh Boyer (jwboyer at linux.vnet.ibm.com) wrote:
> 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.
> 

Hi Josh,

Yes, LTTng has been tested with slub, but not for the powerpc64
cross-build. Thanks for the report, this is actually a header circular
dependency I caused. It should be fixed in LTTng 0.111.

I'll have to update my powerpc64 cross compiler to test it, because I am
stucked with a broken gcc 4.1. Please tell me if 0.111 fixes the problem
for you or if you encounter other problems.

Thanks,

Mathieu

> 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]$
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list