This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: systemtap test suite compilation failed: runtime/vma.c :133:21: error: pointer targets in initialization differ in signedness
- From: Will Newton <will dot newton at linaro dot org>
- To: Naresh Kamboju <naresh dot kamboju at linaro dot org>
- Cc: systemtap at sourceware dot org, "Frank Ch. Eigler" <fche at redhat dot com>, William Cohen <wcohen at redhat dot com>, Milosz Wasilewski <milosz dot wasilewski at linaro dot org>, Linaro Toolchain <linaro-toolchain at lists dot linaro dot org>
- Date: Mon, 3 Feb 2014 09:16:48 +0000
- Subject: Re: systemtap test suite compilation failed: runtime/vma.c :133:21: error: pointer targets in initialization differ in signedness
- Authentication-results: sourceware.org; auth=none
- References: <CA+G9fYtc+BkcSOv_K94CpSAbusBoAvBoRrsbN05P8xBPyCT5OQ at mail dot gmail dot com>
On 3 February 2014 07:30, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
> Hi,
>
> The systemtap test suite compilation failed with below error.
>
> ARCH: arm
> ---------------
> kernel location:
> kernel version: 3.13.0-1-linaro-arndale
> systemtap location: /usr/local/bin/stap
> systemtap version: version 2.5/0.157, non-git sources
> gcc location: /usr/bin/gcc
> gcc version: gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
>
>
>
> **** failed systemtap kernel-devel smoke test:
>
> In file included from /usr/local/share/systemtap/runtime/sym.c:16:0,
> from /usr/local/share/systemtap/runtime/linux/runtime.h:198,
> from /usr/local/share/systemtap/runtime/runtime.h:24,
> from /tmp/stapvEzrD5/stap_f7468ebd0051d533d2bae853173fe5a7_892_src.c:24:
> /usr/local/share/systemtap/runtime/vma.c: In function '_stp_vma_mmap_cb':
> /usr/local/share/systemtap/runtime/vma.c:133:21: error: pointer targets in
> initialization differ in signedness [-Werror=pointer-sign]
> const char *name = (dentry != NULL) ? dentry->d_name.name : NULL;
> ^
> cc1: all warnings being treated as errors
> make[4]: ***
> [/tmp/stapvEzrD5/stap_f7468ebd0051d533d2bae853173fe5a7_892_src.o] Error 1
> make[3]: *** [_module_/tmp/stapvEzrD5] Error 2
> WARNING: kbuild exited with status: 2
> Pass 4: compilation failed. [man error::pass4]
>
> **** aborting testing.
>
> Please let me know if you need more information.
The kernel has lots of these errors, but disables the warning explicitly:
# disable pointer signed / unsigned warnings in gcc 4.0
KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
--
Will Newton
Toolchain Working Group, Linaro