Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 2010 12:45:40 -0800
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        Zhihao Yuan <lichray@gmail.com>
Cc:        Alexander Leidinger <Alexander@leidinger.net>, freebsd-stable@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
Message-ID:  <20101123204540.GA6744@icarus.home.lan>
In-Reply-To: <AANLkTikNg2hiEwRuxF16nSdnmDns6cTCff1ocP63vh-W@mail.gmail.com>
References:  <20101123081244.GA38354@icarus.home.lan> <20101123082046.GA62301@compaq.yuetime> <4CEBB613.5010009@freebsd.org> <20101123131353.GA7243@icarus.home.lan> <20101123145159.157170lfpi646gw0@webmail.leidinger.net> <AANLkTikNg2hiEwRuxF16nSdnmDns6cTCff1ocP63vh-W@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 23, 2010 at 02:40:56PM -0600, Zhihao Yuan wrote:
> Does the WITH_CTF=1 works for the buildworld? And, what should I do now?
> 
> On Tue, Nov 23, 2010 at 7:51 AM, Alexander Leidinger <
> Alexander@leidinger.net> wrote:
> 
> > Quoting Jeremy Chadwick <freebsd@jdc.parodius.com> (from Tue, 23 Nov 2010
> > 05:13:53 -0800):
> >
> >  On Tue, Nov 23, 2010 at 02:39:47PM +0200, Andriy Gapon wrote:
> >>
> >>> on 23/11/2010 10:20 Zhihao Yuan said the following:
> >>> > Attach my kernel configuration here, just in case.
> >>> >
> >>> > On 00:12 Tue 23 Nov, Jeremy Chadwick wrote:
> >>> >> Forwarding back to the mailing list since the OP didn't CC it on his
> >>> >> reply to me.
> >>> >>
> >>> >> ----- Forwarded message from Zhihao Yuan <lichray@gmail.com> -----
> >>> >>
> >>> >>> From: Zhihao Yuan <lichray@gmail.com>
> >>> >>> To: Jeremy Chadwick <freebsd@jdc.parodius.com>
> >>> >>> Date: Tue, 23 Nov 2010 01:18:57 -0600
> >>> >>> Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
> >>> >>>
> >>> >>> I followed the instructions, but still can not run any D-scripts. All
> >>> >>> scripts shows the error message that I just posted.
> >>>
> >>> Are the installed world and the installed kernel in sync?
> >>> (Built from the same state of source code).
> >>>
> >>
> >> FWIW, I can reproduce his problem when following the procedure outlined
> >> in the Wiki.
> >>
> >> As a workaround I tried adding WITH_CTF=true to /etc/src.conf and
> >>
> >
> > WITH_CTF for makeoptions is only supported on 9-current (don't remember the
> > exact rev).
> >
> > The text there tells to use WITH_CTF=1 for the buildkernel, but the example
> > does not use it (it should for 8.x, it shouldn't need to for an approriate
> > rev. of 9-current). The text that it will not work in make.conf/src.conf is
> > valid for 8.x, but not (at least it shouldn't) for an appropriate versions
> > of 9-current.

My interpretation of what Alexander wrote is this:

On RELENG_8, the WITH_CTF=1 parameter must be specified manually on the
command-line during the buildworld/installworld and
buildkernel/installkernel phases, and cannot be put into /etc/src.conf
or /etc/make.conf.  E.g.:

make buildworld WITH_CTF=1
make buildkernel WITH_CTF=1
make installkernel WITH_CTF=1
make installworld WITH_CTF=1

I'm sure one (or more) of these is superfluous, but someone needs to
state up front what exactly the proper procedure is.

The "makeoptions WITH_CTF=1" kernel configuration option doesn't appear
to work on RELENG_8, and I can confirm that WITH_CTF=true in
/etc/src.conf might do "something" but it doesn't fix the problem
reported originally.

Someone should also probably update the Wiki to reflect what does work
properly on RELENG_8 and have a separate section for CURRENT/9.

-- 
| Jeremy Chadwick                                   jdc@parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |




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