public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/11940] New: Compile error when using global variables on 2.6.36
@ 2010-08-23 16:36 dsmith at redhat dot com
  2010-08-23 16:37 ` [Bug runtime/11940] " dsmith at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dsmith at redhat dot com @ 2010-08-23 16:36 UTC (permalink / raw)
  To: systemtap

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2156 bytes --]

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug runtime/11940] Compile error when using global variables on 2.6.36
  2010-08-23 16:36 [Bug runtime/11940] New: Compile error when using global variables on 2.6.36 dsmith at redhat dot com
@ 2010-08-23 16:37 ` dsmith at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: dsmith at redhat dot com @ 2010-08-23 16:37 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|systemtap at sources dot    |dsmith at redhat dot com
                   |redhat dot com              |
             Status|NEW                         |ASSIGNED


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-23 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 16:36 [Bug runtime/11940] New: Compile error when using global variables on 2.6.36 dsmith at redhat dot com
2010-08-23 16:37 ` [Bug runtime/11940] " dsmith at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).