From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23406 invoked by alias); 6 May 2014 20:23:52 -0000 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 Received: (qmail 23341 invoked by uid 48); 6 May 2014 20:23:45 -0000 From: "mcermak at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/16914] probe syscall.* fails with compilation error Date: Tue, 06 May 2014 20:23:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mcermak at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q2/txt/msg00118.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16914 --- Comment #8 from Martin Cermak --- (In reply to David Smith from comment #7) > I found an aarch64 machine I could access > (running3.13.0-0.rc7.31.sa2.k32v1.aarch64.debug), built, installed, and got > the following: > > ==== > # stap -p4 -e 'probe syscall.* { log("hey!"); exit() }' > In file included from > /usr/src/kernels/3.13.0-0.rc7.31.sa2.k32v1.aarch64.debug/arch/arm64/include/ > asm/dma-mapping.h:27:0, > from include/linux/dma-mapping.h:76, > from include/linux/skbuff.h:33, > from include/linux/netlink.h:6, > from > /tmp/stapSX3Lm0/stap_a9d73a0f48c94b332f8efe28f9c0739d_104773_src.c:127: > /usr/src/kernels/3.13.0-0.rc7.31.sa2.k32v1.aarch64.debug/arch/arm64/include/ > asm/xen/hypervisor.h:1:50: fatal error: > ../../arm/include/asm/xen/hypervisor.h: No such file or directory > #include <../../arm/include/asm/xen/hypervisor.h> > ^ > compilation terminated. > make[1]: *** > [/tmp/stapSX3Lm0/stap_a9d73a0f48c94b332f8efe28f9c0739d_104773_src.o] Error 1 > make: *** [_module_/tmp/stapSX3Lm0] Error 2 > WARNING: kbuild exited with status: 2 > Pass 4: compilation failed. [man error::pass4] > ==== > > So that looks like a kernel problem, not a systemtap problem. Right, This is rhbz1094366, known and fixed there in c#2 > > On your kernel, something odd is going on if things like __NR_open aren't > defined. Can you try the following patch and see if that fixes things? > > ==== > diff --git a/runtime/linux/compat_unistd.h b/runtime/linux/compat_unistd.h > index 25ca1bd..11abc26 100644 > --- a/runtime/linux/compat_unistd.h > +++ b/runtime/linux/compat_unistd.h > @@ -11,6 +11,8 @@ > #ifndef _COMPAT_UNISTD_H_ > #define _COMPAT_UNISTD_H_ > > +#include > + > #if defined(__x86_64__) > > // On older kernels (like RHEL5), we have to define our own 32-bit > ==== applied to /usr/share/systemtap/runtime/linux/compat_unistd.h, but no change compared to c#6. -- You are receiving this mail because: You are the assignee for the bug.