From owner-freebsd-toolchain@FreeBSD.ORG Wed Dec 1 18:10:00 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 2BDE91065679; Wed, 1 Dec 2010 18:10:00 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6BEAE8FC17; Wed, 1 Dec 2010 18:09:59 +0000 (UTC) Received: by wyf19 with SMTP id 19so7195602wyf.13 for ; Wed, 01 Dec 2010 10:09:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=HXbOf9qudNqt0HOrEeeGBLzDRUiQfWvzMVLb91Pd5pA=; b=QfXGy9QnX7y6J3rgEVIGnsvyHy5QBeGR4VSlsK2/JXQ5b3zLB6awvSFfe9y1kx6218 VW8iqgWrqIPyYkS81QTscLMwwViJmcJ1PjfMhqyM3BK4iNs+wZ7ngJEcbKW6jIzebWvL TFT5i9chJhFZCN8vzuZETiaeXYqUI0dPmkESI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=vJOlCT/hRCibFcPju9CQl2jWuUFTdFI1wgjHI6znP8TFD9dBtUscFzXjsHfepNvuFm 7UpU+AZfnkxGVxEpTZIZfpXti3/5JuUpAjSngmXAhsI+1VXc8O57/YbFgkF98EF5/YMh yYMpNDrxa4GR08K4L9bjWGZhcu4fydxF0v/tU= MIME-Version: 1.0 Received: by 10.216.171.75 with SMTP id q53mr7941972wel.74.1291225690624; Wed, 01 Dec 2010 09:48:10 -0800 (PST) Received: by 10.216.12.80 with HTTP; Wed, 1 Dec 2010 09:48:10 -0800 (PST) Date: Wed, 1 Dec 2010 11:48:10 -0600 Message-ID: From: Brandon Gooch To: freebsd-toolchain@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: 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: Wed, 01 Dec 2010 18:10:00 -0000 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: ERROR: ctfmerge: kernel.debug: Cannot get sect .note.GNU-stack data Each module being built also displayed a similar message as to the above. ERROR: ctfmerge: module_name: Cannot get sect .note.GNU-stack data I've followed instructions here for building with clang: http://wiki.freebsd.org/BuildingFreeBSDWithClang ...and here for DTrace: http://wiki.freebsd.org/DTrace 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" # netstat netstat: no namelist 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 :) Any debugging hints appreciated... -Brandon 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-- From owner-freebsd-toolchain@FreeBSD.ORG Fri Dec 3 00:52:41 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 2C2E31065679 for ; Fri, 3 Dec 2010 00:52:41 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id D3AEF8FC14 for ; Fri, 3 Dec 2010 00:52:40 +0000 (UTC) Received: by gxk8 with SMTP id 8so4748311gxk.13 for ; Thu, 02 Dec 2010 16:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:in-reply-to :mime-version:content-transfer-encoding:content-type:message-id:cc :x-mailer:from:subject:date:to; bh=fe8oGVAGydMPCZkILVfeNDxD15aIrMU6ydLSx4LHuG8=; b=FIt7dVLeZA0LoSge1kZTJg560TBaXtDMb36X/03VqD+X72+6j9InwNjQrcAcRLbZIB PdWeVJnTvBlq7Q3AGFbqYT90c4CE05FG4BKuDjMmsnE9/s1KM96dCk1OCIBcNrgvC5sU iRgsGxIA+XB3xIg0SurHbePtF1rX7ed0gdrwU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; b=HubRyqknLxT6O9jyZzbpCv5H6fa88cysbwNLcavOhfmI/6JWCPqiObsgdeeSRC2Brm uasDmcXNQjtURHHaBr6XaqdV3QpNY1ZdQ7EG39E1UoakkS1mMjERzNwvBrvbO8t0y+3A SueQuixqWKgk9F5/woao5b5LevtlljaqJGaDM= Received: by 10.91.27.32 with SMTP id e32mr2285772agj.37.1291337558889; Thu, 02 Dec 2010 16:52:38 -0800 (PST) Received: from [10.81.42.122] ([166.205.8.48]) by mx.google.com with ESMTPS id d10sm1124733and.19.2010.12.02.16.52.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Dec 2010 16:52:37 -0800 (PST) References: <20101202231033.GY2392@deviant.kiev.zoral.com.ua> In-Reply-To: <20101202231033.GY2392@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 (iPhone Mail 8B117) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (8B117) From: Brandon Gooch Date: Thu, 2 Dec 2010 18:51:34 -0600 To: Kostik Belousov 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: Fri, 03 Dec 2010 00:52:41 -0000 On Dec 2, 2010, at 5:10 PM, Kostik Belousov wrote: > 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: >> >> ERROR: ctfmerge: kernel.debug: Cannot get sect .note.GNU-stack data >> >> Each module being built also displayed a similar message as to the above. >> >> ERROR: ctfmerge: module_name: Cannot get sect .note.GNU-stack data >> >> I've followed instructions here for building with clang: >> >> http://wiki.freebsd.org/BuildingFreeBSDWithClang >> >> ...and here for DTrace: >> >> http://wiki.freebsd.org/DTrace >> >> 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" >> >> # netstat >> netstat: no namelist >> >> 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 :) >> >> 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=1, where gcc > config is changed to emit .note.GNU-stack marker sections, similar to > clang config. I wasn't able to produce it using GCC either :) I was informed that using DTrace with a clang-built system isn't supported. -Brandon