From owner-freebsd-dtrace@FreeBSD.ORG Thu Jul 17 18:00:17 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 94190673; Thu, 17 Jul 2014 18:00:17 +0000 (UTC) Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 589732FBB; Thu, 17 Jul 2014 18:00:17 +0000 (UTC) Received: by mail-ie0-f178.google.com with SMTP id tp5so3472929ieb.37 for ; Thu, 17 Jul 2014 11:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3rSAUIkpaey6zkBxXejl/iiCfhrB8OJ1Au5092kzZpU=; b=fjqazYD9fOgt4vO4jksQtmFUKYy3bjO0V6yv7JYrdveW+/94fXinosJ54KoVeepkHX 5XVklS5YVz8kYLfXVL36RE+DobBv0H7ov5tNw6k2FPw1SCv/U5D5t5gDMQmWTuJwicN5 vmMf8ae4DVBkI7yFKlmeYAZe5vl7NoXusjqOh7x6Szzn3CBGJYRQppy7WdZBpN9i8Rxh vJBjtpmNrai71YBpSLEYOZf9jcGpd+0XCd9UXWhwMeDEWz/aIVXKyIAUmjqDsWl8SiOY zjd97ILMJv4HgE2yMyo2Xl9pl5r7aLaGwXR7pAADiZv/S9JxjffOepfzB74MkvGpM8KX VWlw== MIME-Version: 1.0 X-Received: by 10.60.62.66 with SMTP id w2mr46930409oer.43.1405620016540; Thu, 17 Jul 2014 11:00:16 -0700 (PDT) Received: by 10.76.128.74 with HTTP; Thu, 17 Jul 2014 11:00:16 -0700 (PDT) In-Reply-To: <20140716041445.GB20065@raichu> References: <20140716041445.GB20065@raichu> Date: Thu, 17 Jul 2014 19:00:16 +0100 Message-ID: Subject: Re: DTrace probes for python 2.7.7 From: "Sevan / Venture37" To: Mark Johnston Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-dtrace@freebsd.org" X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2014 18:00:17 -0000 On 16 July 2014 05:14, Mark Johnston wrote: > I've since discovered that the correct way to solve this problem is by > adding "-xnolibs" to the dtrace -G flags. Hi Mark, I've amended the line in the Makefile.pre.in & trying to rebuild now. It looks like the needs a litte more work as upon install, files are not copied into place at the moment Did your build pass tests pass after you built? ala https://www.jcea.es/artic/python_dtrace.htm Sevan From owner-freebsd-dtrace@FreeBSD.ORG Fri Jul 18 17:07:53 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 84E1E21D; Fri, 18 Jul 2014 17:07:53 +0000 (UTC) Received: from mail-oa0-x22f.google.com (mail-oa0-x22f.google.com [IPv6:2607:f8b0:4003:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A1A828E9; Fri, 18 Jul 2014 17:07:53 +0000 (UTC) Received: by mail-oa0-f47.google.com with SMTP id g18so3709127oah.34 for ; Fri, 18 Jul 2014 10:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QrFcfv6n90zl42WCetJ3KJAR9GA6Xp2Q81ZsrrueoE8=; b=TLwA2fZPbUA0Do4oHujig8n5C8b0NX40B7YUU/vq54Y5HcVH5prj1PNRd82xmEvF+s 4mc5zXPlnErHeEZrfCS2jCpJn0fzBX0s2sczC55lMlvOuMPE0hF8ulk/fmpfPeTkxg/l U3FzaBFs5bK0rWRc4M+A4KRQd5IOwA38X7UDJOvTQuU9WhYkGxpOkNiNS6EtUO4IUOzX 8t+fjdGoBF7hNS4hCeCa5wMHnR7ZWf7P2GBcn3dD3Qf5nv/xvUmjGLLzIlyVacZTGYLV t5wWJsvvH8DwBvvmSR4tClnIbPvuvRcKWBMfWZ0NUDmNLX71oyHjyC7vpLC+ogDSZ/9T amcQ== MIME-Version: 1.0 X-Received: by 10.182.135.164 with SMTP id pt4mr5873310obb.81.1405703272336; Fri, 18 Jul 2014 10:07:52 -0700 (PDT) Received: by 10.76.128.74 with HTTP; Fri, 18 Jul 2014 10:07:52 -0700 (PDT) In-Reply-To: References: <20140716041445.GB20065@raichu> Date: Fri, 18 Jul 2014 18:07:52 +0100 Message-ID: Subject: Re: DTrace probes for python 2.7.7 From: "Sevan / Venture37" To: Mark Johnston Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-dtrace@freebsd.org" X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2014 17:07:53 -0000 On 17 July 2014 19:00, Sevan / Venture37 wrote: > On 16 July 2014 05:14, Mark Johnston wrote: >> I've since discovered that the correct way to solve this problem is by >> adding "-xnolibs" to the dtrace -G flags. > > Hi Mark, > I've amended the line in the Makefile.pre.in & trying to rebuild now. > It looks like the needs a litte more work as upon install, files are > not copied into place at the moment > Did your build pass tests pass after you built? ala > https://www.jcea.es/artic/python_dtrace.htm > > Sevan Ignoring ports & using the stock python 2.7.8 source & patch, with Makefile.pre.in modified to add -xnolibs e.g. "-C -G -xnolibs -s Include/pydtrace.d \" Include/pydtrace_offsets.sh OTHER Python/ceval.o Include/pydtrace_offsets > Include/pydtrace_offsets.h if test "/usr/sbin/dtrace" != "" ; then touch -r Python/ceval.o Python/ceval.o.ts_dtrace ; touch -r Modules/gcmodule.o Modules/gcmodule.o.ts_dtrace ; touch -r Objects/classobject.o Objects/classobject.o.ts_dtrace ; touch -r Objects/typeobject.o Objects/typeobject.o.ts_dtrace ; /usr/sbin/dtrace -o Python/pydtrace.o -DPYDTRACE_STACK_HELPER -I. -IInclude -I./Include -64 -C -G -xnolibs -s Include/pydtrace.d Python/ceval.o Modules/gcmodule.o Objects/classobject.o Objects/typeobject.o ; touch -r Python/ceval.o.ts_dtrace Python/ceval.o ; touch -r Modules/gcmodule.o.ts_dtrace Modules/gcmodule.o ; touch -r Objects/classobject.o.ts_dtrace Objects/classobject.o ; touch -r Objects/typeobject.o.ts_dtrace Objects/typeobject.o ; rm Python/ceval.o.ts_dtrace ; rm Modules/gcmodule.o.ts_dtrace ; rm Objects/classobject.o.ts_dtrace ; rm Objects/typeobject.o.ts_dtrace ; else touch Python/pydtrace.o ; fi; dtrace: failed to compile script Include/pydtrace.d: line 27: useless declaration *** Error code 1