Date: Fri, 3 Dec 2010 01:10:33 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Brandon Gooch <jamesbrandongooch@gmail.com> Cc: freebsd-toolchain@freebsd.org Subject: Re: DTrace and clang -- ERROR: ctfmerge: kernel.debug: Cannot get sect .note.GNU-stack data Message-ID: <20101202231033.GY2392@deviant.kiev.zoral.com.ua> In-Reply-To: <AANLkTinP_J5YdDWsGmg6Wh=WY6Nn537vXmB%2BRoYfRzvp@mail.gmail.com> References: <AANLkTinP_J5YdDWsGmg6Wh=WY6Nn537vXmB%2BRoYfRzvp@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAkz4J2kACgkQC3+MBN1Mb4hp9QCg8C07enmQ4cNrIG+MLLVKwpll /DgAniGJOXZtQo8Uxb5aRz/c+I4kLN3b =SiWa -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101202231033.GY2392>
