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