public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* 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

* Re: systemtap test suite compilation failed: runtime/vma.c :133:21: error: pointer targets in initialization differ in signedness
  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 19:13   ` David Smith
  2014-02-04 11:28     ` Naresh Kamboju
  0 siblings, 1 reply; 4+ messages in thread
From: David Smith @ 2014-02-03 19:13 UTC (permalink / raw)
  To: Naresh Kamboju, systemtap
  Cc: Frank Ch. Eigler, William Cohen, Milosz Wasilewski, linaro-toolchain

On 02/03/2014 01:38 AM, Naresh Kamboju wrote:
> Re-sending it as plan-text mode. (sorry)
> 
>> **** 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;
>> ^

I'm not sure why you are seeing this error but I'm not, but I committed
a cast that should fix it.

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)

^ 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
  2014-02-03 19:13   ` David Smith
@ 2014-02-04 11:28     ` Naresh Kamboju
  0 siblings, 0 replies; 4+ messages in thread
From: Naresh Kamboju @ 2014-02-04 11:28 UTC (permalink / raw)
  To: David Smith
  Cc: systemtap, Frank Ch. Eigler, William Cohen, Milosz Wasilewski,
	linaro-toolchain

On 4 February 2014 00:43, David Smith <dsmith@redhat.com> wrote:
> On 02/03/2014 01:38 AM, Naresh Kamboju wrote:
>> Re-sending it as plan-text mode. (sorry)
>>
>>> **** 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;
>>> ^
>
> I'm not sure why you are seeing this error but I'm not, but I committed
> a cast that should fix it.

David Smith,
Thanks for your fix "Compile fix for runtime/vma.c"
Now things are looking fine.

-Naresh Kamboju


>
> --
> David Smith
> dsmith@redhat.com
> Red Hat
> http://www.redhat.com
> 256.217.0141 (direct)
> 256.837.0057 (fax)

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

end of thread, other threads:[~2014-02-04 11:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [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 19:13   ` David Smith
2014-02-04 11:28     ` Naresh Kamboju
2014-02-03  9:16 ` Will Newton

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