When I compile a simple tapset, I get
root@domU-12-31-39-14-F0-B3:~/tapset# stap --vp 0001 m2.stap
In file included from /tmp/stap48rJgj/stap_012a6d41efc4903a84d9ebac5d381d79_3539.c:56:0:
/usr/share/systemtap/runtime/stack.c:98:2: error: unknown field ‘warning’ specified in initializer
/usr/share/systemtap/runtime/stack.c:98:2: error: initialization from incompatible pointer type [-Werror]
/usr/share/systemtap/runtime/stack.c:98:2: error: (near initialization for ‘print_stack_ops.address’) [-Werror]
/usr/share/systemtap/runtime/stack.c:99:2: error: unknown field ‘warning_symbol’ specified in initializer
/usr/share/systemtap/runtime/stack.c:99:2: error: initialization from incompatible pointer type [-Werror]
/usr/share/systemtap/runtime/stack.c:99:2: error: (near initialization for ‘print_stack_ops.stack’) [-Werror]
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stap48rJgj/stap_012a6d41efc4903a84d9ebac5d381d79_3539.o] Error 1
make: *** [_module_/tmp/stap48rJgj] Error 2
Pass 4: compiled C into "stap_012a6d41efc4903a84d9ebac5d381d79_3539.ko" in 2960usr/1030sys/4613real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.
The tapset is:
root@domU-12-31-39-14-F0-B3:~/tapset# stap --vp 0001 m2.stap
In file included from /tmp/stap48rJgj/stap_012a6d41efc4903a84d9ebac5d381d79_3539.c:56:0:
/usr/share/systemtap/runtime/stack.c:98:2: error: unknown field ‘warning’ specified in initializer
/usr/share/systemtap/runtime/stack.c:98:2: error: initialization from incompatible pointer type [-Werror]
/usr/share/systemtap/runtime/stack.c:98:2: error: (near initialization for ‘print_stack_ops.address’) [-Werror]
/usr/share/systemtap/runtime/stack.c:99:2: error: unknown field ‘warning_symbol’ specified in initializer
/usr/share/systemtap/runtime/stack.c:99:2: error: initialization from incompatible pointer type [-Werror]
/usr/share/systemtap/runtime/stack.c:99:2: error: (near initialization for ‘print_stack_ops.stack’) [-Werror]
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stap48rJgj/stap_012a6d41efc4903a84d9ebac5d381d79_3539.o] Error 1
make: *** [_module_/tmp/stap48rJgj] Error 2
Pass 4: compiled C into "stap_012a6d41efc4903a84d9ebac5d381d79_3539.ko" in 2960usr/1030sys/4613real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.
The following upstream bug: http://comments.gmane.org/gmane.linux.systemtap/17948
points to an upstream fix, though I have not yet tested that.
I just compiled a package with the fixing commit cherrypicked, and it worked. It did require some extra patching to get around variable- set-but- not-used errors though.