From: William Cohen <wcohen@redhat.com>
To: Da Zheng <zhengda1936@gmail.com>
Cc: "Turgis, Frederic" <f-turgis@ti.com>,
"systemtap@sourceware.org" <systemtap@sourceware.org>
Subject: Re: error to run systemtap in an ARM platform
Date: Mon, 18 Jul 2011 20:10:00 -0000 [thread overview]
Message-ID: <4E249307.5050003@redhat.com> (raw)
In-Reply-To: <4E24831E.1000005@gmail.com>
On 07/18/2011 03:01 PM, Da Zheng wrote:
> Hi,
>
> I got another problem. I tried to compile the example desktop.stp in the website, but failed.
Do you have a pointer to where you got the desktop.stp script? Is that disktop.stp in the systemtap examples?
Did you compile your kernel with the debug information available?
CONFIG_DEBUG_INFO=y
Also from what I recall some kernel can just include file and line number information, with
CONFIG_DEBUG_INFO_REDUCED. That is turned off in the kernel .config?
I tried compiling disktop.stp on my machine and got:
export KERNEL_SRC=/home/wcohen/stuff/efikamx/kernel/linux-kernel
stap -a arm -B CROSS_COMPILE=armv7hl-redhat-linux-gnueabi- -r $KERNEL_SRC -m disktop disktop.stp
WARNING: kernel release/architecture mismatch with host forces last-pass 4.
In file included from /tmp/stapt1iKiI/disktop.c:4908:0:
/tmp/stapt1iKiI/stap-symbols.h:89496:1: error: large integer implicitly truncated to unsigned type [-Werror=overflow]
cc1: all warnings being treated as errors.
>
> $ stap --vp 01 -a arm -r /build/tegra2_seaboard/tmp/portage/sys-kernel/chromeos-kernel-9999/work/chromeos-kernel-9999/build/tegra2_seaboard -p 4 -B CROSS_COMPILE=armv7a-cros-linux-gnueabi- -k desktop.stp
> semantic error: failed to retrieve return value location for vfs_read (/build/tegra2_seaboard/tmp/portage/sys-kernel/chromeos-kernel-9999/work/chromeos-kernel-9999/fs/read_write.c): identifier '$return' at desktop.stp:19:7
> source: if ($return>0) {
> ^
> semantic error: failed to retrieve return value location for vfs_write (/build/tegra2_seaboard/tmp/portage/sys-kernel/chromeos-kernel-9999/work/chromeos-kernel-9999/fs/read_write.c): identifier '$return' at :29:7
> source: if ($return>0) {
> ^
> Pass 2: analyzed script: 6 probe(s), 38 function(s), 10 embed(s), 5 global(s) using 171832virt/76644res/3076shr kb, in 570usr/60sys/633real ms.
> Pass 2: analysis failed. Try again with another '--vp 01' option.
> Keeping temporary directory "/tmp/stapqT2qvo"
>
> At first, I thought the bug might be fixed in the latest version, so I download the code from the git repository, built it, but still got the same error. I checked tapset/xxx/*.stp, but I didn't find scripts mention sys_read or sys_write. How do I fix this error?
>
> BTW, I think the latest version in the git repository has another bug.
> If I run ./configure; make, I get
> cscommon.h:7:17: error: ssl.h: No such file or directory
> I don't know what I should install to have ssl.h
> I already have
> /usr/include/nss/ssl.h
> /usr/include/openssl/ssl.h
>
> It can be compiled if I use --disable-server. However, in my cross compiling environment, even though I have already used --disable-server, I still get the same compilation error.
>
> Thanks,
> Da
You do a "make distclean" and "configure ..." on your cross compiling machine to get rid of the dependencies in .deps. I think that be stale and the reason why you are gitting that error.
-Will
next prev parent reply other threads:[~2011-07-18 20:10 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-15 0:58 Da Zheng
2011-07-15 9:43 ` Mark Wielaard
2011-07-15 20:00 ` Da Zheng
2011-07-15 20:15 ` Frank Ch. Eigler
[not found] ` <4E20A714.9020404@gmail.com>
2011-07-15 20:50 ` Frank Ch. Eigler
2011-07-15 20:46 ` William Cohen
2011-07-15 21:29 ` Da Zheng
2011-07-16 0:23 ` Turgis, Frederic
2011-07-18 14:13 ` William Cohen
2011-07-18 19:02 ` Da Zheng
2011-07-18 20:10 ` William Cohen [this message]
2011-07-18 20:18 ` William Cohen
2011-07-18 20:41 ` Da Zheng
2011-07-23 22:56 ` Zheng Da
2011-07-24 1:57 ` Frank Ch. Eigler
2011-07-24 16:10 ` Frank Ch. Eigler
2011-07-25 10:04 ` Mark Wielaard
2011-07-25 19:34 ` Da Zheng
2011-07-25 15:46 ` William Cohen
2011-07-25 19:36 ` Da Zheng
2011-07-25 20:46 ` Mark Wielaard
2011-07-25 17:17 ` William Cohen
2011-07-25 19:56 ` Da Zheng
2011-07-26 14:03 ` William Cohen
2011-07-26 17:47 ` Da Zheng
2011-07-19 11:38 ` Turgis, Frederic
2011-07-18 14:00 ` William Cohen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E249307.5050003@redhat.com \
--to=wcohen@redhat.com \
--cc=f-turgis@ti.com \
--cc=systemtap@sourceware.org \
--cc=zhengda1936@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).