* Re: systemtap test suite compilation failed: runtime/vma.c :133:21: error: pointer targets in initialization differ in signedness
[not found] <CA+G9fYtc+BkcSOv_K94CpSAbusBoAvBoRrsbN05P8xBPyCT5OQ@mail.gmail.com>
@ 2014-02-03 7:38 ` Naresh Kamboju
2014-02-03 19:13 ` David Smith
2014-02-03 9:16 ` Will Newton
1 sibling, 1 reply; 4+ messages in thread
From: Naresh Kamboju @ 2014-02-03 7:38 UTC (permalink / raw)
To: systemtap
Cc: Frank Ch. Eigler, William Cohen, Milosz Wasilewski, linaro-toolchain
Re-sending it as plan-text mode. (sorry)
On 3 February 2014 13:00, 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.
>
> Best regards
> Naresh kamboju
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: systemtap test suite compilation failed: runtime/vma.c :133:21: error: pointer targets in initialization differ in signedness
[not found] <CA+G9fYtc+BkcSOv_K94CpSAbusBoAvBoRrsbN05P8xBPyCT5OQ@mail.gmail.com>
2014-02-03 7:38 ` systemtap test suite compilation failed: runtime/vma.c :133:21: error: pointer targets in initialization differ in signedness Naresh Kamboju
@ 2014-02-03 9:16 ` Will Newton
1 sibling, 0 replies; 4+ messages in thread
From: Will Newton @ 2014-02-03 9:16 UTC (permalink / raw)
To: Naresh Kamboju
Cc: systemtap, Frank Ch. Eigler, William Cohen, Milosz Wasilewski,
Linaro Toolchain
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
^ permalink raw reply [flat|nested] 4+ messages in thread