From owner-freebsd-current@FreeBSD.ORG Wed Apr 14 09:31:33 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D2B81065670; Wed, 14 Apr 2010 09:31:33 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-yx0-f174.google.com (mail-yx0-f174.google.com [209.85.210.174]) by mx1.freebsd.org (Postfix) with ESMTP id 33EF28FC12; Wed, 14 Apr 2010 09:31:32 +0000 (UTC) Received: by yxe4 with SMTP id 4so3988006yxe.28 for ; Wed, 14 Apr 2010 02:31:32 -0700 (PDT) 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:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0U9smos64Q/2zm0xJK7cWnhRIJczuz3NTDNDe/Q2p6M=; b=IJtWKh434dXCXNTXWPh1xkP9VV+mOyfcjqWPvF2EbeDCAYPAba2eHVUV0vcSglxpn5 ywa/rYXOKsGtqvWi80M7qJVHVE2/G3qcQeifrCuzAz+dgvf5DXL4ccMhJuJRw9hj0mOe KtimX5EpiSymTHl6Fd0b9S8oQfYT8ZrOekKvc= 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:content-transfer-encoding; b=W0+0K7XYBl4R8o9F2lJLyEEJHodjWeSKqcHA4qKlutZghyLmTSfSN/t+zUdL9PMmJb Eyy0+3APtcQnoY5jc/ee7a/kJi/jWUhBqV2Ga8/S5r7Da/8zqy2xSZKgWXYrlLbElkvx hd2EmeiV9ydypQ/EApFlBvK4HHewYh+of3IJc= MIME-Version: 1.0 Received: by 10.231.213.16 with HTTP; Wed, 14 Apr 2010 02:31:30 -0700 (PDT) In-Reply-To: <20100414105819.13143mf12ccgjy4g@webmail.leidinger.net> References: <20100414105819.13143mf12ccgjy4g@webmail.leidinger.net> Date: Wed, 14 Apr 2010 02:31:30 -0700 Received: by 10.100.245.19 with SMTP id s19mr4695872anh.190.1271237490920; Wed, 14 Apr 2010 02:31:30 -0700 (PDT) Message-ID: From: Navdeep Parhar To: Alexander Leidinger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: Does "makeoptions WITH_CTF=yes" actually work? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 09:31:33 -0000 On Wed, Apr 14, 2010 at 1:58 AM, Alexander Leidinger wrote: > Quoting Navdeep Parhar (from Wed, 14 Apr 2010 01:33:2= 9 > -0700): > >> I read the UPDATING entry that accompanied r206082 and added WITH_CTF=3D= yes >> to >> my kernel config, hoping to get CTF information in the kernel and all >> modules. =A0No luck. >> It appears that NO_CTF remains set to 1 inspite of the undef NO_CTF in >> various .mk files >> and ctfconvert never runs. > > This is the output I get in my kernel build directory: > ---snip--- > # make -V NO_CTF -V WITH_CTF > > yes Can you also try a "makeoptions WITH_CTF=3Dyes" in your KERNCONF and see if the results are as expected? How was r206082 tested? I'm trying to figure out the differences, if any, between your build setup and mine. > ---snip--- > >> I built the kernel with a "make -j16 buildkernel" in /usr/src. > > How do you determine if ctfconvert is run or not? I got rid of the @ in front of all the CTF commands in all the .mk files. = I could see that NO_CTF was 1 and so the ctfconvert after || wouldn't run. [ -z "${CTFCONVERT}" -o -n "${NO_CTF}" ] || ${CTFCONVERT} ${CTFFLAGS} ${.TA= RGET} [ -z "ctfconvert" -o -n "1" ] || ........ Do you see anything different if you remove all the @'s? > If you expect to see > ctfconvert lines in the build output: this will not be the case, no matte= r > if you enable it or not. With the current way of handling it, I'm not awa= re > of a way how to print the command when ctfconvert is really executed (we = can > maybe add an echo which prints out something, but the question is if this= is > worth the effort). > > You can run objdump -f and have a look if the .SUNW_ctf sect= ion > is there to determine if CTF stuff was inserted or not. I tried this: # ctfdump /usr/obj/usr/src/sys/GENERIC/kernel /usr/obj/usr/src/sys/GENERIC/kernel does not contain .SUNW_ctf data Regards, Navdeep > > Bye, > Alexander. > > -- > http://www.Leidinger.net =A0Alexander @ Leidinger.net: PGP ID =3D B0063FE= 7 > http://www.FreeBSD.org =A0 =A0 netchild @ FreeBSD.org =A0: PGP ID =3D 720= 77137 > The Force is what holds everything together. > It has its dark side, and it has its light side. > It's sort of like cosmic duct tape. > >