public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* error in compiling the simplest script for latest git source
@ 2008-05-15 11:10 Wenji Huang
  2008-05-15 11:11 ` Ananth N Mavinakayanahalli
  2008-05-15 15:56 ` Srinivasa DS
  0 siblings, 2 replies; 5+ messages in thread
From: Wenji Huang @ 2008-05-15 11:10 UTC (permalink / raw)
  To: systemtap

Hi,

Found the simple script couldn't be compiled in latest git source.

[root@dhcp-beijing-cdc-10-182-120-226 systemtap]# stap -vve 'probe begin
{log("hello")}'

SystemTap translator/driver (version 0.7/0.127 git branch master, commit
58d21f7e)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Created temporary directory "/tmp/stap0Ccmlg"
Searched '/usr/local/share/systemtap/tapset/x86_64/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 41
Pass 1: parsed user script and 43 library script(s) in
360usr/30sys/384real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0
global(s) in 0usr/0sys/8real ms.
Pass 3: translated to C into
"/tmp/stap0Ccmlg/stap_25e525b9ddd3bd8ab6a8d3bb082aa875_246.c" in
30usr/20sys/48real ms.
Running make -C "/lib/modules/2.6.26-rc2/build" M="/tmp/stap0Ccmlg"
modules >/dev/null
In file included from
/usr/local/share/systemtap/runtime/transport/transport.c:22,
                  from /usr/local/share/systemtap/runtime/print.c:17,
                  from /usr/local/share/systemtap/runtime/runtime.h:82,
                  from
/tmp/stap0Ccmlg/stap_25e525b9ddd3bd8ab6a8d3bb082aa875_246.c:41:
/usr/local/share/systemtap/runtime/transport/symbols.c: In function
'_stp_load_module_symbols':
/usr/local/share/systemtap/runtime/transport/symbols.c:407: error:
dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/symbols.c:425: error:
dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/symbols.c:427: error:
dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/symbols.c:456: error:
dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/symbols.c:457: error:
dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/symbols.c:460: error:
dereferencing pointer to incomplete type
make[1]: ***
[/tmp/stap0Ccmlg/stap_25e525b9ddd3bd8ab6a8d3bb082aa875_246.o] Error 1
make: *** [_module_/tmp/stap0Ccmlg] Error 2
Pass 4: compiled C into "stap_25e525b9ddd3bd8ab6a8d3bb082aa875_246.ko"
in 2140usr/1260sys/3400real ms.
Pass 4: compilation failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stap0Ccmlg

Regards,
Wenji

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

* Re: error in compiling the simplest script for latest git source
  2008-05-15 11:10 error in compiling the simplest script for latest git source Wenji Huang
@ 2008-05-15 11:11 ` Ananth N Mavinakayanahalli
  2008-05-16 15:28   ` WENJI.HUANG
  2008-05-15 15:56 ` Srinivasa DS
  1 sibling, 1 reply; 5+ messages in thread
From: Ananth N Mavinakayanahalli @ 2008-05-15 11:11 UTC (permalink / raw)
  To: Wenji Huang; +Cc: systemtap

On Thu, May 15, 2008 at 05:41:29PM +0800, Wenji Huang wrote:
> Hi,
>
> Found the simple script couldn't be compiled in latest git source.
>
> [root@dhcp-beijing-cdc-10-182-120-226 systemtap]# stap -vve 'probe begin
> {log("hello")}'
>
> SystemTap translator/driver (version 0.7/0.127 git branch master, commit
> 58d21f7e)

Are you sure your tree is correct 'cos I get...

[ananth@thinktux systemtap]$ git show 58d21f7e
fatal: ambiguous argument '58d21f7e': unknown revision or path not in
the working tree.

The latest commit in the tree I have is
c3799d720b60bd74a60de4addcd0d77a90f7842a and your script works just
fine.



Ananth

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

* Re: error in compiling the simplest script for latest git source
  2008-05-15 11:10 error in compiling the simplest script for latest git source Wenji Huang
  2008-05-15 11:11 ` Ananth N Mavinakayanahalli
@ 2008-05-15 15:56 ` Srinivasa DS
  1 sibling, 0 replies; 5+ messages in thread
From: Srinivasa DS @ 2008-05-15 15:56 UTC (permalink / raw)
  To: Wenji Huang; +Cc: systemtap

Wenji Huang wrote:

> Running make -C "/lib/modules/2.6.26-rc2/build" M="/tmp/stap0Ccmlg"
> modules >/dev/null
> In file included from
> /usr/local/share/systemtap/runtime/transport/transport.c:22,
>                  from /usr/local/share/systemtap/runtime/print.c:17,
>                  from /usr/local/share/systemtap/runtime/runtime.h:82,
>                  from
> /tmp/stap0Ccmlg/stap_25e525b9ddd3bd8ab6a8d3bb082aa875_246.c:41:
> /usr/local/share/systemtap/runtime/transport/symbols.c: In function
> '_stp_load_module_symbols':
> /usr/local/share/systemtap/runtime/transport/symbols.c:407: error:
> dereferencing pointer to incomplete type
> /usr/local/share/systemtap/runtime/transport/symbols.c:425: error:
> dereferencing pointer to incomplete type
> /usr/local/share/systemtap/runtime/transport/symbols.c:427: error:
> dereferencing pointer to incomplete type
> /usr/local/share/systemtap/runtime/transport/symbols.c:456: error:
> dereferencing pointer to incomplete type
> /usr/local/share/systemtap/runtime/transport/symbols.c:457: error:
> dereferencing pointer to incomplete type
> /usr/local/share/systemtap/runtime/transport/symbols.c:460: error:
> dereferencing pointer to incomplete type
> make[1]: ***
> [/tmp/stap0Ccmlg/stap_25e525b9ddd3bd8ab6a8d3bb082aa875_246.o] Error 1
> make: *** [_module_/tmp/stap0Ccmlg] Error 2
> Pass 4: compiled C into "stap_25e525b9ddd3bd8ab6a8d3bb082aa875_246.ko"
> in 2140usr/1260sys/3400real ms.
> Pass 4: compilation failed.  Try again with more '-v' (verbose) options.
> Running rm -rf /tmp/stap0Ccmlg

I have opened bug#6510 for this issue.

Thanks
  Srinivasa DS

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

* Re: error in compiling the simplest script for latest git source
  2008-05-15 11:11 ` Ananth N Mavinakayanahalli
@ 2008-05-16 15:28   ` WENJI.HUANG
  2008-05-16 15:28     ` WENJI.HUANG
  0 siblings, 1 reply; 5+ messages in thread
From: WENJI.HUANG @ 2008-05-16 15:28 UTC (permalink / raw)
  To: ananth; +Cc: systemtap

> On Thu, May 15, 2008 at 05:41:29PM +0800, Wenji Huang wrote:
> > Hi,
> >
> > Found the simple script couldn't be compiled in latest git source.
> >
> > [root@dhcp-beijing-cdc-10-182-120-226 systemtap]# stap -vve 'probe begin
> > {log("hello")}'
> >
> > SystemTap translator/driver (version 0.7/0.127 git branch master, commit
> > 58d21f7e)
> 
> Are you sure your tree is correct 'cos I get...

Sorry, a little problem in cut+copy. Now re-paste:

It's in my x86 box(2.6.26-rc2).

[root@dhcp-beijing-cdc-10-182-120-233 learn]# stap -vve 'probe begin {log("hello")}'
SystemTap translator/driver (version 0.7/0.131 git branch master, commit c3799d72)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Created temporary directory "/tmp/stapHRx52D"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 40
Pass 1: parsed user script and 42 library script(s) in 380usr/20sys/400real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in 0usr/0sys/8real ms.
Pass 3: translated to C into "/tmp/stapHRx52D/stap_6e883adb0017f089cbfc98cb0ed02c88_228.c" in 40usr/1                  0sys/44real ms.
Running make -C "/lib/modules/2.6.26-rc2/build" M="/tmp/stapHRx52D" modules >/dev/null
In file included from /usr/local/share/systemtap/runtime/transport/transport.c:22,
                 from /usr/local/share/systemtap/runtime/print.c:17,
                 from /usr/local/share/systemtap/runtime/runtime.h:82,
                 from /tmp/stapHRx52D/stap_6e883adb0017f089cbfc98cb0ed02c88_228.c:41:
/usr/local/share/systemtap/runtime/transport/symbols.c: In function '_stp_load_module_symbols':
/usr/local/share/systemtap/runtime/transport/symbols.c:407: error: dereferencing pointer to incomplet                  e type
/usr/local/share/systemtap/runtime/transport/symbols.c:425: error: dereferencing pointer to incomplet                  e type
/usr/local/share/systemtap/runtime/transport/symbols.c:427: error: dereferencing pointer to incomplet                  e type
/usr/local/share/systemtap/runtime/transport/symbols.c:456: error: dereferencing pointer to incomplet                  e type
/usr/local/share/systemtap/runtime/transport/symbols.c:457: error: dereferencing pointer to incomplet                  e type
/usr/local/share/systemtap/runtime/transport/symbols.c:460: error: dereferencing pointer to incomplet                  e type
make[1]: *** [/tmp/stapHRx52D/stap_6e883adb0017f089cbfc98cb0ed02c88_228.o] Error 1
make: *** [_module_/tmp/stapHRx52D] Error 2
Pass 4: compiled C into "stap_6e883adb0017f089cbfc98cb0ed02c88_228.ko" in 1620usr/1060sys/2688real ms                  .
Pass 4: compilation failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapHRx52D

Best regards
Wenji

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

* Re: error in compiling the simplest script for latest git source
  2008-05-16 15:28   ` WENJI.HUANG
@ 2008-05-16 15:28     ` WENJI.HUANG
  0 siblings, 0 replies; 5+ messages in thread
From: WENJI.HUANG @ 2008-05-16 15:28 UTC (permalink / raw)
  To: ananth; +Cc: systemtap

Hi,

I guess the commit in upstream caused the problem:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a58730c42174672fe0012a4edbe3e38f94ef2bad

module: make module_sect_attrs private to kernel/module.c

Regards,
Wenji

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

end of thread, other threads:[~2008-05-15 16:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-15 11:10 error in compiling the simplest script for latest git source Wenji Huang
2008-05-15 11:11 ` Ananth N Mavinakayanahalli
2008-05-16 15:28   ` WENJI.HUANG
2008-05-16 15:28     ` WENJI.HUANG
2008-05-15 15:56 ` Srinivasa DS

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