This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: SystemTap + Android | Compiling Script | ERROR
> What's going on here is that some linux kernels have a vzalloc()
> function and some don't. We attempt to use the kernel's vzalloc()
> function if available. If it isn't available, we roll our own.
>
> In your case, the android kernel's include/linux/vmalloc.h file declared
> a vzalloc() function but the systemtap build process didn't find it and
> tried to use its own version.
>
> Does the script you are using to run systemtap use the '-r BUILD_TREE'
> option? I ask because it might be that your host kernel doesn't have a
> vzalloc() function but your android kernel does and systemtap is looking
> in the wrong place.
>
No my script doesn’t use `-r BUILD_TREE` option.
I’m using the arm-linux-androideabi-gcc compiler from android’s ndk
toolchain, so I would like to assume that it’s linker would
automatically search through the required android kernel’s libraries
and headers and find the required definitions.
This is a strange behaviour.
Any possible environment variables I need to set, for the compiler to
look at the correct place?
-Ayush