From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 11 09:41:23 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A34AB106567B for ; Thu, 11 Mar 2010 09:41:23 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 462218FC27 for ; Thu, 11 Mar 2010 09:41:23 +0000 (UTC) Received: by wwb28 with SMTP id 28so156296wwb.13 for ; Thu, 11 Mar 2010 01:41:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.89.200 with SMTP id c50mr1808756wef.164.1268300482277; Thu, 11 Mar 2010 01:41:22 -0800 (PST) In-Reply-To: <4B98B8C6.6010309@pathscale.com> References: <291941b81003100954n276d467an234c24e28f3b28e5@mail.gmail.com> <4B989DD6.601@pathscale.com> <4B98B8C6.6010309@pathscale.com> From: =?UTF-8?Q?Marius_N=C3=BCnnerich?= Date: Thu, 11 Mar 2010 10:41:02 +0100 Message-ID: To: =?UTF-8?Q?C=2E_Bergstr=C3=B6m?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Shrikanth Kamath Subject: Re: ctfconvert dependency... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2010 09:41:23 -0000 2010/3/11 "C. Bergstr=C3=B6m" : > Marius N=C3=BCnnerich wrote: >> >> 2010/3/11 "C. Bergstr=C3=B6m" : >> >>> >>> Shrikanth Kamath wrote: >>> >>>> >>>> Just trying to understand the build dependency for ctfconvert... >>>> >>>> I see ctfconvert (cddl/usr.bin/ctfconvert/) =C2=A0has dependency on li= bctf.a >>>> (cddl/lib/libctf/) >>>> >>>> Now the snippet in bsd.lib.mk has this check for various target >>>> suffixes, >>>> >>>> .c.So: >>>> .if defined(CTFCONVERT) >>>> =C2=A0 =C2=A0 =C2=A0 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} >>>> .endif >>>> >>>> and sys.mk >>>> >>>> .c >>>> .if defined(CTFCONVERT) >>>> =C2=A0 =C2=A0 =C2=A0 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} >>>> .endif >>>> >>>> My query, libctf includes =C2=A0 in it's Makefile, so will= the >>>> above >>>> not try to >>>> run 'ctfconvert' on libctf itself? >>>> >>>> >>> >>> I'm going to make some assumptions and go out on a limb here.. >>> >>> The CDDL code in FBSD came from OpenSolaris (specifically onnv-gate hg >>> repo) >>> =C2=A0When OpenSolaris is built they convert stab debugging information= over >>> to >>> CTF (compressed text format?). =C2=A0This is done so that they can have >>> debugging >>> information, but without the overhead of stab (or dwarf2). =C2=A0I don'= t know >>> how >>> much of the original onnv-gate Makefiles came over from OpenSolaris, bu= t >>> assuming the FBSD kernel doesn't need/use CTF format this dependency ca= n >>> and >>> probably should go away. =C2=A0(Only (k)mdb supports CTF that I'm aware= of?) >>> >>> Hopefully this is useful information and I'm not too wrong or someone >>> will >>> correct me >>> >> >> The CTF information is needed by DTrace. >> My guess is that it will run ctfconvert on itself so it should be >> there from a prior install or it is part of some early toolchain >> stuff. >> > > CTF is needed by DTrace where? =C2=A0The build may depend on it, but this= is > probably for legacy reasons only. =C2=A0DTrace in opensolaris isn't depen= dent on > =C2=A0it to function correctly. =C2=A0Replace the $(CTFCONVERT) and a few= other > utilities with /bin/true and the build will succeed. =C2=A0(I can only sp= eak > first hand from OSUNIX/OpenSolaris though and not FBSD..) The build will succeed but dtracing something with the FBT provider won't.