Date: Thu, 11 Mar 2010 10:19:19 +0100 From: =?UTF-8?Q?Marius_N=C3=BCnnerich?= <marius@nuenneri.ch> To: =?UTF-8?Q?C=2E_Bergstr=C3=B6m?= <cbergstrom@pathscale.com> Cc: freebsd-hackers@freebsd.org, Shrikanth Kamath <shrikanth07@gmail.com> Subject: Re: ctfconvert dependency... Message-ID: <b649e5e1003110119n2e18552bva7514913e6e3f0ee@mail.gmail.com> In-Reply-To: <4B989DD6.601@pathscale.com> References: <291941b81003100954n276d467an234c24e28f3b28e5@mail.gmail.com> <4B989DD6.601@pathscale.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2010/3/11 "C. Bergstr=C3=B6m" <cbergstrom@pathscale.com>: > Shrikanth Kamath wrote: >> >> Just trying to understand the build dependency for ctfconvert... >> >> I see ctfconvert (cddl/usr.bin/ctfconvert/) =C2=A0has dependency on libc= tf.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 =C2=A0${CTFCONVERT} ${CTFFLAGS} ${.TARGET} >> .endif >> >> and sys.mk >> >> .c >> .if defined(CTFCONVERT) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0${CTFCONVERT} ${CTFFLAGS} ${.TARGET} >> .endif >> >> My query, libctf includes =C2=A0<bsd.lib.mk> in it's Makefile, so will t= he >> 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 re= po) > =C2=A0When OpenSolaris is built they convert stab debugging information o= ver to > CTF (compressed text format?). =C2=A0This is done so that they can have d= ebugging > 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, but > assuming the FBSD kernel doesn't need/use CTF format this dependency can = and > probably should go away. =C2=A0(Only (k)mdb supports CTF that I'm aware o= f?) > > Hopefully this is useful information and I'm not too wrong or someone wil= l > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b649e5e1003110119n2e18552bva7514913e6e3f0ee>