From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17134 invoked by alias); 18 Jul 2011 20:10:09 -0000 Received: (qmail 17124 invoked by uid 22791); 18 Jul 2011 20:10:06 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Jul 2011 20:09:46 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6IK9iVs031891 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 18 Jul 2011 16:09:44 -0400 Received: from [10.11.231.236] (deploy7.rdu.redhat.com [10.11.231.236]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p6IK9hmO008510; Mon, 18 Jul 2011 16:09:44 -0400 Message-ID: <4E249307.5050003@redhat.com> Date: Mon, 18 Jul 2011 20:10:00 -0000 From: William Cohen User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Red Hat/3.1.11-2.el6_1 Thunderbird/3.1.11 MIME-Version: 1.0 To: Da Zheng CC: "Turgis, Frederic" , "systemtap@sourceware.org" Subject: Re: error to run systemtap in an ARM platform References: <4E1F90A8.2080000@gmail.com> <1310722941.4510.5.camel@springer.wildebeest.org> <4E209C3F.6060806@gmail.com> <4E20A6EF.9010003@redhat.com> <4E20B11A.5020402@gmail.com> <13872098A06B02418CF379A158C0F1460162204601@dnce02.ent.ti.com> <4E243F49.9020706@redhat.com> <4E24831E.1000005@gmail.com> In-Reply-To: <4E24831E.1000005@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2011-q3/txt/msg00045.txt.bz2 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