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 <
> alexan...@leidinger.net> wrote:
> 
> > Quoting Jeremy Chadwick <free...@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 <lich...@gmail.com> -----
> >>> >>
> >>> >>> From: Zhihao Yuan <lich...@gmail.com>
> >>> >>> To: Jeremy Chadwick <free...@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                                   j...@parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to