compile failure with get_user_asm()

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

compile failure with get_user_asm()

Badari Pulavarty
Hi,

I just updated my systemtap sources & tests and I am not able to
compile systemtap modules anymore.

I reported this to Hien earlier. Hien, do you have a fix for it ?

Thanks,
Badari

...
Pass 3: translated to C into "/tmp/stapIEkDNS/stap_28380.c"
Running make -C "/lib/modules/2.6.15-20060103193109-ppc64/build"
M="/tmp/stapIEkDNS" modules
make: Entering directory `/usr/src/linux-2.6.15-20060103193109'
  CC [M]  /tmp/stapIEkDNS/stap_28380.o
/tmp/stapIEkDNS/stap_28380.c:921:54: error: macro "__get_user_asm"
passed 5 arguments, but takes just 4
/tmp/stapIEkDNS/stap_28380.c: In function 'function_kernel_string':
/tmp/stapIEkDNS/stap_28380.c:921: error: '__get_user_asm' undeclared
(first use in this function)
/tmp/stapIEkDNS/stap_28380.c:921: error: (Each undeclared identifier is
reported only once
/tmp/stapIEkDNS/stap_28380.c:921: error: for each function it appears
in.)
/tmp/stapIEkDNS/stap_28380.c:921:54: error: macro "__get_user_asm"
passed 5 arguments, but takes just 4
/tmp/stapIEkDNS/stap_28380.c:921:54: error: macro "__get_user_asm"
passed 5 arguments, but takes just 4
/tmp/stapIEkDNS/stap_28380.c:921:54: error: macro "__get_user_asm"
passed 5 arguments, but takes just 4
make[1]: *** [/tmp/stapIEkDNS/stap_28380.o] Error 1
make: *** [_module_/tmp/stapIEkDNS] Error 2
make: Leaving directory `/usr/src/linux-2.6.15-20060103193109'
Pass 4: compiled into "stap_28380.ko"
Pass 4: compilation failed.  Try again with '-v' (verbose) option.
Running rm -rf /tmp/stapIEkDNS



Reply | Threaded
Open this post in threaded view
|

Re: compile failure with get_user_asm()

Frank Ch. Eigler

Badari Pulavarty <[hidden email]> writes:

> I just updated my systemtap sources & tests and I am not able to
> compile systemtap modules anymore. [...]
> make: Entering directory `/usr/src/linux-2.6.15-20060103193109'
>   CC [M]  /tmp/stapIEkDNS/stap_28380.o
> /tmp/stapIEkDNS/stap_28380.c:921:54: error: macro "__get_user_asm"
> passed 5 arguments, but takes just 4
> [...]

The only place in systemtap sources that refers to __get_user_asm is
in <runtime/loc2c-runtime.h>, which suffered no changes since October.
Perhaps the change is more in your kernel than in systemtap.  What is
the declaration of __get_user_asm in your kernel/arch?


- FChE

Reply | Threaded
Open this post in threaded view
|

Re: compile failure with get_user_asm()

Hien Nguyen
In reply to this post by Badari Pulavarty
Badari,

I posted a patch in this BZ
http://sourceware.org/bugzilla/show_bug.cgi?id=2076

You can try to apply the patch  to the file
/usr/local/share/systemtap/runtime/loc2c-runtime.h

I am going to check the fix sometime later.

Hien.
Badari Pulavarty wrote:

>Hi,
>
>I just updated my systemtap sources & tests and I am not able to
>compile systemtap modules anymore.
>
>I reported this to Hien earlier. Hien, do you have a fix for it ?
>
>Thanks,
>Badari
>
>...
>Pass 3: translated to C into "/tmp/stapIEkDNS/stap_28380.c"
>Running make -C "/lib/modules/2.6.15-20060103193109-ppc64/build"
>M="/tmp/stapIEkDNS" modules
>make: Entering directory `/usr/src/linux-2.6.15-20060103193109'
>  CC [M]  /tmp/stapIEkDNS/stap_28380.o
>/tmp/stapIEkDNS/stap_28380.c:921:54: error: macro "__get_user_asm"
>passed 5 arguments, but takes just 4
>/tmp/stapIEkDNS/stap_28380.c: In function 'function_kernel_string':
>/tmp/stapIEkDNS/stap_28380.c:921: error: '__get_user_asm' undeclared
>(first use in this function)
>/tmp/stapIEkDNS/stap_28380.c:921: error: (Each undeclared identifier is
>reported only once
>/tmp/stapIEkDNS/stap_28380.c:921: error: for each function it appears
>in.)
>/tmp/stapIEkDNS/stap_28380.c:921:54: error: macro "__get_user_asm"
>passed 5 arguments, but takes just 4
>/tmp/stapIEkDNS/stap_28380.c:921:54: error: macro "__get_user_asm"
>passed 5 arguments, but takes just 4
>/tmp/stapIEkDNS/stap_28380.c:921:54: error: macro "__get_user_asm"
>passed 5 arguments, but takes just 4
>make[1]: *** [/tmp/stapIEkDNS/stap_28380.o] Error 1
>make: *** [_module_/tmp/stapIEkDNS] Error 2
>make: Leaving directory `/usr/src/linux-2.6.15-20060103193109'
>Pass 4: compiled into "stap_28380.ko"
>Pass 4: compilation failed.  Try again with '-v' (verbose) option.
>Running rm -rf /tmp/stapIEkDNS
>
>
>
>
>  
>


Reply | Threaded
Open this post in threaded view
|

Re: compile failure with get_user_asm()

Badari Pulavarty
On Mon, 2006-01-09 at 12:48 -0800, Hien Nguyen wrote:

> Badari,
>
> I posted a patch in this BZ
> http://sourceware.org/bugzilla/show_bug.cgi?id=2076
>
> You can try to apply the patch  to the file
> /usr/local/share/systemtap/runtime/loc2c-runtime.h
>
> I am going to check the fix sometime later.
>
> Hien.

Thanks. It works.

Thanks,
Badari