<div dir="ltr">Hello,<div><br></div><div>When trying to build lttng modules i am getting this error. Cross compiler for mips and Arch = mips is used in makefile.</div><div><br></div><div>Linux kernel version 2.6.32.27</div>
<div><br></div><div><br></div><div><div>make -C /home/shkumar/Development_Merge/NewOCT/OCTEON_SDK/octeon_sdk/OCTEON-SDK/linux/kernel_2.6/linux M=/home/shkumar/lttng-tools/lttngmod/lttng-modules modules ARCH=mips CROSS_COMPILE=mips64-octeon-linux-gnu-</div>
<div>make[1]: Entering directory `/home/shkumar/Development_Merge/NewOCT/OCTEON_SDK/octeon_sdk/OCTEON-SDK/linux/kernel_2.6/linux'</div><div> CC [M] /home/shkumar/lttng-tools/lttngmod/lttng-modules/lttng-ring-buffer-client-discard.o</div>
<div>In file included from /home/shkumar/lttng-tools/lttngmod/lttng-modules/wrapper/ringbuffer/config.h:1,</div><div> from /home/shkumar/lttng-tools/lttngmod/lttng-modules/lttng-tracer-core.h:35,</div><div>
from /home/shkumar/lttng-tools/lttngmod/lttng-modules/lttng-tracer.h:39,</div><div> from /home/shkumar/lttng-tools/lttngmod/lttng-modules/lttng-ring-buffer-client-discard.c:24:</div><div>/home/shkumar/lttng-tools/lttngmod/lttng-modules/wrapper/ringbuffer/../../lib/ringbuffer/config.h: In function 'lib_ring_buffer_align':</div>
<div>/home/shkumar/lttng-tools/lttngmod/lttng-modules/wrapper/ringbuffer/../../lib/ringbuffer/config.h:266: error: bit-field '<anonymous>' width not an integer constant</div><div>make[2]: *** [/home/shkumar/lttng-tools/lttngmod/lttng-modules/lttng-ring-buffer-client-discard.o] Error 1</div>
<div>make[1]: *** [_module_/home/shkumar/lttng-tools/lttngmod/lttng-modules] Error 2</div><div>make[1]: Leaving directory `/home/shkumar/Development_Merge/NewOCT/OCTEON_SDK/octeon_sdk/OCTEON-SDK/linux/kernel_2.6/linux'</div>
<div>make: *** [default] Error 2</div></div><div><br></div><div>How do i fix this?</div><div><br></div><div>Skumar.</div></div>