From owner-freebsd-current@FreeBSD.ORG Sat Jun 14 22:30:03 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1E0A932 for ; Sat, 14 Jun 2014 22:30:03 +0000 (UTC) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask.apl.washington.edu", Issuer "troutmask.apl.washington.edu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 85C4324F9 for ; Sat, 14 Jun 2014 22:30:03 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.9/8.14.9) with ESMTP id s5EMU24i066317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 14 Jun 2014 15:30:02 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.9/8.14.9/Submit) id s5EMU2Kl066316; Sat, 14 Jun 2014 15:30:02 -0700 (PDT) (envelope-from sgk) Date: Sat, 14 Jun 2014 15:30:02 -0700 From: Steve Kargl To: Peter Wemm Subject: Re: In tree builds broken in lib/ncurses? Message-ID: <20140614223002.GB66187@troutmask.apl.washington.edu> References: <20140614201933.GA65847@troutmask.apl.washington.edu> <20140614214439.GA66150@troutmask.apl.washington.edu> <2575529.ryprja4SsD@overcee.wemm.org> <20140614221236.GA66187@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140614221236.GA66187@troutmask.apl.washington.edu> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Sat, 14 Jun 2014 22:30:03 -0000 On Sat, Jun 14, 2014 at 03:12:36PM -0700, Steve Kargl wrote: > On Sat, Jun 14, 2014 at 03:01:20PM -0700, Peter Wemm wrote: > > On Saturday 14 June 2014 14:44:39 Steve Kargl wrote: > > > On Sat, Jun 14, 2014 at 01:19:33PM -0700, Steve Kargl wrote: > > > > Long story short. I have laptop that is normally limited in > > > > available diskspace, so I do not install profiled libraries. > > > > I however have the need for running some code under the profiler > > > > (assuming clang can generate proper profiling). I do the > > > > following, > > > > > > Is it possible to using profiling on FreeBSD-current? After installing > > > libc_p.a, I try to build math/lapack. It dies with > > > > > > /usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to > > > symbol '_end' //lib/libc.so.7: error adding symbols: DSO missing from > > > command line collect2: error: ld returned 1 exit status > > > *** Error code 1 > > > > collect2? I think you've got something odd going on there.. > > > > Maybe. math/lapack is built with gfortran, which is from > lang/gcc47 on my system. lang/gcc47 is probably picking > up the installed devel/binutils. This would explain the > /usr/local/bin/ld instead of our /usr/bin/ld. libc_p.a is > built with clang, so I'm probably running into yet-another > clang vs gcc problem. > Where is the symbol _end suppose to come from? Script started on Sat Jun 14 15:26:08 2014 laptop-kargl:kargl[201] foreach i (/usr/lib/*.a) foreach? echo $i foreach? nm $i | grep 'U _end' foreach? nm $i | grep 'T _end' foreach? end /usr/lib/libc.a U _end U _endnetdnsent U _endnethtent U _endhostdnsent U _endhosthtent 00000050 T _endnethtent 00000ac0 T _endnetdnsent 00000050 T _endhosthtent 00001220 T _endhostdnsent /usr/lib/libc_p.a U _end U _endnetdnsent U _endnethtent U _endhostdnsent U _endhosthtent 00000050 T _endnethtent 00000b00 T _endnetdnsent 00000050 T _endhosthtent 000012e0 T _endhostdnsent /usr/lib/libc_pic.a U _endhostdnsent U _endhosthtent U _endnetdnsent U _endnethtent U _end 00001470 T _endhostdnsent 00000060 T _endhosthtent 00000ba0 T _endnetdnsent 00000060 T _endnethtent Script done on Sat Jun 14 15:27:01 2014 -- Steve