This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/9738] New: Running a stap script throws up compilation error


[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]