Skip to contentSkip to conversation

Compile time error "error: call to ‘__compiletime_assert_196’"

DISCUSSION Alex Martin 2 participants 2 messages Jul 6, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,I get following error during compilation.Compiling on Ubuntu 16.04kernel version 4.19.57 xenomai 3.0.9 Alex
-------------====== making target debian/stamp/build/kernel [new prereqs: vars]====== This is kernel package version 13.018.
restore_upstream_debianization

test ! -f scripts/package/builddeb.kpkg-dist ||    mv -f scripts/package/builddeb.kpkg-dist scripts/package/builddeb
test ! -f scripts/package/Makefile.kpkg-dist ||    mv -f scripts/package/Makefile.kpkg-dist scripts/package/Makefile

/usr/bin/make -j5 EXTRAVERSION=-xenomai-3.0.9  ARCH=x86_64 \
             bzImage
make[1]: Entering directory '/home/user1/src/linux-4.19.57'
scripts/kconfig/conf  --syncconfig Kconfig
  DESCEND  objtool
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      kernel/xenomai/rtdm/core.o
  CC      kernel/xenomai/posix/thread.o
  CC      kernel/xenomai/rtdm/device.o
  CC      kernel/xenomai/posix/timerfd.o
  CC      kernel/xenomai/rtdm/drvlib.o
In file included from ./include/trace/define_trace.h:96:0,
                 from ./include/trace/events/cobalt-posix.h:1068,
                 from kernel/xenomai/posix/thread.c:33:
./include/trace/events/cobalt-posix.h: In function ‘trace_event_define_fields_cobalt_void’:
./include/linux/compiler.h:348:38: error: call to ‘__compiletime_assert_196’ declared with attribute error: BUILD_BUG_ON failed: 0 <= 0 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                      ^
./include/trace/trace_events.h:455:2: note: in definition of macro ‘DECLARE_EVENT_CLASS’
  tstruct;       \
  ^
./include/trace/events/cobalt-posix.h:189:2: note: in expansion of macro ‘TP_STRUCT__entry’
  TP_STRUCT__entry(
  ^
./include/linux/compiler.h:336:2: note: in expansion of macro ‘__compiletime_assert’ __compiletime_assert(condition, msg, prefix, suffix)
  ^
./include/linux/compiler.h:348:2: note: in expansion of macro ‘_compiletime_assert’ _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^
./include/linux/build_bug.h:45:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^
./include/linux/build_bug.h:69:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
  ^
./include/trace/trace_events.h:425:3: note: in expansion of macro ‘BUILD_BUG_ON’
   BUILD_BUG_ON(len <= 0);     \
   ^
./include/trace/events/cobalt-posix.h:190:3: note: in expansion of macro ‘__array’
   __array(char, dummy, 0)
   ^
  CC      kernel/cpu.o
scripts/Makefile.build:303: recipe for target 'kernel/xenomai/posix/thread.o' failed
make[4]: *** [kernel/xenomai/posix/thread.o] Error 1
make[4]: *** Waiting for unfinished jobs....
  CC      kernel/xenomai/rtdm/fd.o
scripts/Makefile.build:544: recipe for target 'kernel/xenomai/posix' failed
make[3]: *** [kernel/xenomai/posix] Error 2
make[3]: *** Waiting for unfinished jobs....
  CC      kernel/xenomai/rtdm/wrappers.o
  CC      kernel/exit.o
  CC      kernel/softirq.o
  AR      kernel/xenomai/rtdm/built-in.a
scripts/Makefile.build:544: recipe for target 'kernel/xenomai' failed
make[2]: *** [kernel/xenomai] Error 2
make[2]: *** Waiting for unfinished jobs....
Makefile:1044: recipe for target 'kernel' failed
make[1]: *** [kernel] Error 2
make[1]: *** Waiting for unfinished jobs....
----------------------------

#2 lore raw
Quoted 1 line · Alex Martin via Xenomai

Hi,I get following error during compilation.Compiling on Ubuntu 16.04kernel version 4.19.57 xenomai 3.0.9

You need git master for 4.19 support.

Jan

Quoted 69 lines

Alex
-------------====== making target debian/stamp/build/kernel [new prereqs: vars]====== This is kernel package version 13.018.
restore_upstream_debianization

test ! -f scripts/package/builddeb.kpkg-dist ||    mv -f scripts/package/builddeb.kpkg-dist scripts/package/builddeb
test ! -f scripts/package/Makefile.kpkg-dist ||    mv -f scripts/package/Makefile.kpkg-dist scripts/package/Makefile

/usr/bin/make -j5 EXTRAVERSION=-xenomai-3.0.9  ARCH=x86_64 \
             bzImage
make[1]: Entering directory '/home/user1/src/linux-4.19.57'
scripts/kconfig/conf  --syncconfig Kconfig
  DESCEND  objtool
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      kernel/xenomai/rtdm/core.o
  CC      kernel/xenomai/posix/thread.o
  CC      kernel/xenomai/rtdm/device.o
  CC      kernel/xenomai/posix/timerfd.o
  CC      kernel/xenomai/rtdm/drvlib.o
In file included from ./include/trace/define_trace.h:96:0,
                 from ./include/trace/events/cobalt-posix.h:1068,
                 from kernel/xenomai/posix/thread.c:33:
./include/trace/events/cobalt-posix.h: In function ‘trace_event_define_fields_cobalt_void’:
./include/linux/compiler.h:348:38: error: call to ‘__compiletime_assert_196’ declared with attribute error: BUILD_BUG_ON failed: 0 <= 0 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                      ^
./include/trace/trace_events.h:455:2: note: in definition of macro ‘DECLARE_EVENT_CLASS’
  tstruct;       \
  ^
./include/trace/events/cobalt-posix.h:189:2: note: in expansion of macro ‘TP_STRUCT__entry’
  TP_STRUCT__entry(
  ^
./include/linux/compiler.h:336:2: note: in expansion of macro ‘__compiletime_assert’ __compiletime_assert(condition, msg, prefix, suffix)
  ^
./include/linux/compiler.h:348:2: note: in expansion of macro ‘_compiletime_assert’ _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^
./include/linux/build_bug.h:45:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^
./include/linux/build_bug.h:69:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
  ^
./include/trace/trace_events.h:425:3: note: in expansion of macro ‘BUILD_BUG_ON’
   BUILD_BUG_ON(len <= 0);     \
   ^
./include/trace/events/cobalt-posix.h:190:3: note: in expansion of macro ‘__array’
   __array(char, dummy, 0)
   ^
  CC      kernel/cpu.o
scripts/Makefile.build:303: recipe for target 'kernel/xenomai/posix/thread.o' failed
make[4]: *** [kernel/xenomai/posix/thread.o] Error 1
make[4]: *** Waiting for unfinished jobs....
  CC      kernel/xenomai/rtdm/fd.o
scripts/Makefile.build:544: recipe for target 'kernel/xenomai/posix' failed
make[3]: *** [kernel/xenomai/posix] Error 2
make[3]: *** Waiting for unfinished jobs....
  CC      kernel/xenomai/rtdm/wrappers.o
  CC      kernel/exit.o
  CC      kernel/softirq.o
  AR      kernel/xenomai/rtdm/built-in.a
scripts/Makefile.build:544: recipe for target 'kernel/xenomai' failed
make[2]: *** [kernel/xenomai] Error 2
make[2]: *** Waiting for unfinished jobs....
Makefile:1044: recipe for target 'kernel' failed
make[1]: *** [kernel] Error 2
make[1]: *** Waiting for unfinished jobs....
----------------------------