This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/11940] New: Compile error when using global variables on 2.6.36
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 23 Aug 2010 16:35:44 -0000
- Subject: [Bug runtime/11940] New: Compile error when using global variables on 2.6.36
- Reply-to: sourceware-bugzilla at sourceware dot org
Reported by Wenji Huang on the mailing list:
<http://sources.redhat.com/ml/systemtap/2010-q3/msg00262.html>
The problem comes from the following kernel commit
param: use ops in struct kernel_param, rather than get and set fns directly
author Rusty Russell <rusty@rustcorp.com.au>
Thu, 12 Aug 2010 05:04:12 +0000 (23:04 -0600)
committer Rusty Russell <rusty@rustcorp.com.au>
Wed, 11 Aug 2010 13:34:13 +0000 (22:34 +0930)
commit 9bbb9e5a33109b2832e2e63dcc7a132924ab374b
Any script that uses a global variable will fail to compile on any architecture.
The following error happens on 2.6.36-0.7.rc2.git0.fc15.x86_64 and
2.6.36-0.7.rc2.git0.fc15.i686.PAE.
# stap -ve 'global foo=1; probe begin {printf("%d\n", foo) }'
Pass 1: parsed user script and 74 library script(s) using
87796virt/21820res/2420shr kb, in 200usr/140sys/746real ms.
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 1 global(s)
using 88192virt/22492res/2616shr kb, in 10usr/0sys/8real ms.
Pass 3: translated to C into
"/tmp/stapB6VlnS/stap_c41d8f731af4f77e07591d4a7db6d5b2_718.c" using
88192virt/22776res/2884shr kb, in 0usr/0sys/4real ms.
/tmp/stapB6VlnS/stap_c41d8f731af4f77e07591d4a7db6d5b2_718.c:467:1: error:
?param_ops_int64_t? undeclared here (not in a function)
make[1]: *** [/tmp/stapB6VlnS/stap_c41d8f731af4f77e07591d4a7db6d5b2_718.o] Error 1
make: *** [_module_/tmp/stapB6VlnS] Error 2
Pass 4: compiled C into "stap_c41d8f731af4f77e07591d4a7db6d5b2_718.ko" in
4280usr/2650sys/8223real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.
--
Summary: Compile error when using global variables on 2.6.36
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: dsmith at redhat dot com
CC: wenji dot huang at oracle dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11940
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.