public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/9738] New: Running a stap script throws up compilation error
@ 2009-01-13 10:31 mahesh at linux dot vnet dot ibm dot com
  2009-01-13 11:49 ` [Bug translator/9738] " wenji dot huang at oracle dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: mahesh at linux dot vnet dot ibm dot com @ 2009-01-13 10:31 UTC (permalink / raw)
  To: systemtap

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

[salgaonkarm@mars systemtap]$ ./stap -V
SystemTap translator/driver (version 0.8/0.138 git branch master, commit aa5951be)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
[salgaonkarm@mars systemtap]$ sudo ./stap -k -vv -e 'probe
kernel.function("do_settimeofday"){printf("%u\n",$xtime->tv_sec)}'
SystemTap translator/driver (version 0.8/0.138 git branch master, commit aa5951be)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: i686 release: 2.6.27.9-159.fc10.i686
Created temporary directory "/tmp/stapu0EBq0"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 45
Pass 1: parsed user script and 47 library script(s) in 230usr/0sys/259real ms.
probe do_settimeofday@kernel/time/timekeeping.c:131 kernel reloc=.dynamic
section=.text pc=0xc0443208
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in
290usr/280sys/566real ms.
probe_1383 locks nothing
dump_unwindsyms kernel index=0 base=0xc0400000
Found build-id in kernel, length 20, end at 0xc06acbbc
Pass 3: translated to C into "/tmp/stapu0EBq0/stap_16672.c" in
290usr/380sys/680real ms.
Running make -C "/lib/modules/2.6.27.9-159.fc10.i686/build" M="/tmp/stapu0EBq0"
modules >/dev/null
cc1: warnings being treated as errors
/tmp/stapu0EBq0/stap_16672.c: In function ‘function__dwarf_tvar_get_xtime_0’:
/tmp/stapu0EBq0/stap_16672.c:144: error: integer constant is too large for
‘long’ type
/tmp/stapu0EBq0/stap_16672.c:144: error: large integer implicitly truncated to
unsigned type
make[1]: *** [/tmp/stapu0EBq0/stap_16672.o] Error 1
make: *** [_module_/tmp/stapu0EBq0] Error 2
Pass 4: compiled C into "stap_16672.ko" in 1670usr/360sys/2301real ms.
Pass 4: compilation failed.  Try again with another '--vp 0001' option.
Keeping temporary directory "/tmp/stapu0EBq0"
[salgaonkarm@mars systemtap]$ uname -a
Linux mars.in.ibm.com 2.6.27.9-159.fc10.i686 #1 SMP Tue Dec 16 15:12:04 EST 2008
i686 i686 i386 GNU/Linux
[salgaonkarm@mars systemtap]$ cat /etc/redhat-release 
Fedora release 10 (Cambridge)
[salgaonkarm@mars systemtap]$


/tmp/stapu0EBq0/stap_16672.c:144:
s0 = ({ static unsigned long addr = 0; if (addr==0) addr = _stp_module_relocate
("kernel","_stext",0xffffffff400f6618); addr; });


The script works fine on ppc64. Looks like problem occurs only on 32 bit platform.

-- 
           Summary: Running a stap script throws up compilation error
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mahesh at linux dot vnet dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=9738

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

end of thread, other threads:[~2010-03-09 19:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-13 10:31 [Bug translator/9738] New: Running a stap script throws up compilation error mahesh at linux dot vnet dot ibm dot com
2009-01-13 11:49 ` [Bug translator/9738] " wenji dot huang at oracle dot com
2009-01-13 12:24 ` mahesh at linux dot vnet dot ibm dot com
2009-01-13 12:35 ` wenji dot huang at oracle dot com
2009-01-13 18:16 ` fche at redhat dot com
2009-01-14  5:14 ` wenji dot huang at oracle dot com
2009-01-15 10:12 ` mahesh at linux dot vnet dot ibm dot com
2009-01-15 16:57 ` mahesh at linux dot vnet dot ibm dot com
2009-01-16  8:24 ` mahesh at linux dot vnet dot ibm dot com
2009-01-16  9:49 ` wenji dot huang at oracle dot com
2009-01-16 16:25 ` mjw at redhat dot com
2009-11-06 12:09 ` mjw at redhat dot com
2010-02-26  2:18 ` fche at redhat dot com
2010-03-09 19:03 ` fche 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).