From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 11 09:40:14 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 0C7C2106566C for ; Thu, 11 Mar 2010 09:40:14 +0000 (UTC) (envelope-from shrikanth07@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id B38488FC14 for ; Thu, 11 Mar 2010 09:40:13 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 5so695835qwi.7 for ; Thu, 11 Mar 2010 01:40:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=xDzdYssMPRNlLAbFPAcbMeK9eKARtQFSHk9atJA2Ls0=; b=IiujqaIJH2FIApBplzZBEijK2dIccqSU/fJhPd3x9RidSaGFdFonvIEtLlKuUIPs+d JtwLE/RkPfn/s/xp6iAeq+UP78dZXX6JnoKhdXbUMrA0TUtvoeOb8ycoqWOs/iBfm5f+ Zvx0w0exafKFNYUC7ydRzphBSDfK5GfEzKRNQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Vzr/HkSN3XaeNQFyGMpxjYPNN91i0ZA6OKFPVZ/jfHb69FJgdtm6bUr3X92QMNzLHC dqyggLZY9GlsBdCHkJvAvIMi20hXGM3akKbVeY2LVpVOXT/MXoeS8ZutBoU8KHDpGCln PWMxGaK/DOk4RaTIU6ZUoett6XrY+7GErYlYU= MIME-Version: 1.0 Received: by 10.229.191.76 with SMTP id dl12mr970564qcb.97.1268300412431; Thu, 11 Mar 2010 01:40:12 -0800 (PST) In-Reply-To: <4B98B8C6.6010309@pathscale.com> References: <291941b81003100954n276d467an234c24e28f3b28e5@mail.gmail.com> <4B989DD6.601@pathscale.com> <4B98B8C6.6010309@pathscale.com> Date: Thu, 11 Mar 2010 15:10:12 +0530 Message-ID: <291941b81003110140h7add81d9w1547b22c9769aca1@mail.gmail.com> From: Shrikanth Kamath To: =?ISO-8859-1?B?Qy4gQmVyZ3N0cvZt?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, =?ISO-8859-1?Q?Marius_N=FCnnerich?= 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:40:14 -0000 This DTrace wiki page mandates the CTF option when enabling DTrace, http://wiki.freebsd.org/DTrace#head-41e7ce9a981893f126bd67c0eb77f388e2213d9= d 2010/3/11 "C. Bergstr=F6m" > Marius N=FCnnerich wrote: > >> 2010/3/11 "C. Bergstr=F6m" : >> >> >>> Shrikanth Kamath wrote: >>> >>> >>>> Just trying to understand the build dependency for ctfconvert... >>>> >>>> I see ctfconvert (cddl/usr.bin/ctfconvert/) has dependency on libctf.= a >>>> (cddl/lib/libctf/) >>>> >>>> Now the snippet in bsd.lib.mk has this check for various target >>>> suffixes, >>>> >>>> .c.So: >>>> .if defined(CTFCONVERT) >>>> ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} >>>> .endif >>>> >>>> and sys.mk >>>> >>>> .c >>>> .if defined(CTFCONVERT) >>>> ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} >>>> .endif >>>> >>>> My query, libctf includes 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) >>> When OpenSolaris is built they convert stab debugging information over >>> to >>> CTF (compressed text format?). This is done so that they can have >>> debugging >>> information, but without the overhead of stab (or dwarf2). I don't kno= w >>> 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. (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? The build may depend on it, but this is > probably for legacy reasons only. DTrace in opensolaris isn't dependent = on > it to function correctly. Replace the $(CTFCONVERT) and a few other > utilities with /bin/true and the build will succeed. (I can only speak > first hand from OSUNIX/OpenSolaris though and not FBSD..) >