From owner-freebsd-toolchain@FreeBSD.ORG Thu Dec 2 23:39:50 2010 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA8311065670 for ; Thu, 2 Dec 2010 23:39:50 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 213F58FC0A for ; Thu, 2 Dec 2010 23:39:49 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id oB2NAXJe070240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Dec 2010 01:10:33 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id oB2NAXd6057008; Fri, 3 Dec 2010 01:10:33 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id oB2NAX1e057007; Fri, 3 Dec 2010 01:10:33 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 3 Dec 2010 01:10:33 +0200 From: Kostik Belousov To: Brandon Gooch Message-ID: <20101202231033.GY2392@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zPq1aPzAWJtD6LH5" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-toolchain@freebsd.org Subject: Re: DTrace and clang -- ERROR: ctfmerge: kernel.debug: Cannot get sect .note.GNU-stack data X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2010 23:39:50 -0000 --zPq1aPzAWJtD6LH5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 01, 2010 at 11:48:10AM -0600, Brandon Gooch wrote: > I recently attempted to enable DTrace on a system running HEAD built > with clang, and saw this error scrolling by when the kernel and > modules were being built: >=20 > ERROR: ctfmerge: kernel.debug: Cannot get sect .note.GNU-stack data >=20 > Each module being built also displayed a similar message as to the above. >=20 > ERROR: ctfmerge: module_name: Cannot get sect .note.GNU-stack data >=20 > I've followed instructions here for building with clang: >=20 > http://wiki.freebsd.org/BuildingFreeBSDWithClang >=20 > ...and here for DTrace: >=20 > http://wiki.freebsd.org/DTrace >=20 > I've completed several rounds of building world and kernel from SVN > r216082 to r216095. Each time, it seems that kernel in world aren't > "in sync" >=20 > # netstat > netstat: no namelist >=20 > I can build the kernel using gcc, and DTrace (and netstat) output is > good. I haven't rebuilt world yet with gcc, as it takes a while, but > I'll certainly be doing that at some point I'm sure :) >=20 > Any debugging hints appreciated... What is the revision of sources used to build the _installed_ version of libelf.so ? Make sure that it contains r210324. I am unable to reproduce your problem with gcc/WITH_CTF=3D1, where gcc config is changed to emit .note.GNU-stack marker sections, similar to clang config. --zPq1aPzAWJtD6LH5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAkz4J2kACgkQC3+MBN1Mb4hp9QCg8C07enmQ4cNrIG+MLLVKwpll /DgAniGJOXZtQo8Uxb5aRz/c+I4kLN3b =SiWa -----END PGP SIGNATURE----- --zPq1aPzAWJtD6LH5--