Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2010 15:10:12 +0530
From:      Shrikanth Kamath <shrikanth07@gmail.com>
To:        =?ISO-8859-1?B?Qy4gQmVyZ3N0cvZt?= <cbergstrom@pathscale.com>
Cc:        freebsd-hackers@freebsd.org, =?ISO-8859-1?Q?Marius_N=FCnnerich?= <marius@nuenneri.ch>
Subject:   Re: ctfconvert dependency...
Message-ID:  <291941b81003110140h7add81d9w1547b22c9769aca1@mail.gmail.com>
In-Reply-To: <4B98B8C6.6010309@pathscale.com>
References:  <291941b81003100954n276d467an234c24e28f3b28e5@mail.gmail.com> <4B989DD6.601@pathscale.com> <b649e5e1003110119n2e18552bva7514913e6e3f0ee@mail.gmail.com> <4B98B8C6.6010309@pathscale.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <cbergstrom@pathscale.com>

> Marius N=FCnnerich wrote:
>
>> 2010/3/11 "C. Bergstr=F6m" <cbergstrom@pathscale.com>:
>>
>>
>>> 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  <bsd.lib.mk> 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..)
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?291941b81003110140h7add81d9w1547b22c9769aca1>