From owner-freebsd-current@FreeBSD.ORG Sun Jun 15 06:12:39 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 45E7C598 for ; Sun, 15 Jun 2014 06:12:39 +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 20E1825B9 for ; Sun, 15 Jun 2014 06:12:39 +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 s5F6CbfA067589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 14 Jun 2014 23:12:37 -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 s5F6Cbuo067588; Sat, 14 Jun 2014 23:12:37 -0700 (PDT) (envelope-from sgk) Date: Sat, 14 Jun 2014 23:12:37 -0700 From: Steve Kargl To: Warner Losh Subject: Re: In tree builds broken in lib/ncurses? Message-ID: <20140615061237.GA67531@troutmask.apl.washington.edu> References: <20140614201933.GA65847@troutmask.apl.washington.edu> <20140614221236.GA66187@troutmask.apl.washington.edu> <20140614223002.GB66187@troutmask.apl.washington.edu> <4610322.zAJlsEjG1I@overcee.wemm.org> <20140615013057.GA66589@troutmask.apl.washington.edu> <5B8DE5E2-FC48-4B61-B759-7951821C72C3@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B8DE5E2-FC48-4B61-B759-7951821C72C3@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-current@freebsd.org, Peter Wemm 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: Sun, 15 Jun 2014 06:12:39 -0000 On Sat, Jun 14, 2014 at 07:44:29PM -0600, Warner Losh wrote: > On Jun 14, 2014, at 7:30 PM, Steve Kargl wrote: > > > > Thanks for the pointer. The problem appears to be /usr/local/bin/ld. > > If I move it to ld.old and then symlink /usr/local/bin/ld to /usr/bin/ld, > > I can build math/lapack without a problem. I guess I'll poke around > > in devel/bintuils. > > We don?t support building the tree with any ld but the one in the tree. In tree builds with the system ld does not work. That is the topic of the first email in this thread. The issue with /usr/local/bin/ld was found after I disabled the attempted build of ncurses. The /usr/local/bin/ld issue surfaces when one tries to build math/lapack with shared library support. % rm -rf /usr/obj/usr % cd /usr/src % make clean && make cleandepend % cd lib % make depend % make |& tee sgk.log ... ===> ncurses/ncursesw (all) Warning: Object directory not changed from original /usr/src/lib/ncurses/ncursesw ... nm: 'codes.So': No such file nm: 'expanded.So': No such file (146 nm: lines deleted) cc: error: no such file or directory: 'termcap.So' cc: error: no such file or directory: 'visbuf.So' (142 cc: lines deleted) *** Error code 1 Stop. make[2]: stopped in /usr/src/lib/ncurses/ncursesw *** Error code 1 Stop. make[1]: stopped in /usr/src/lib/ncurses *** Error code 1 Stop. make: stopped in /usr/src/lib As noted in the first email, both libncurses.a and libncurses_p.a build fine. -- Steve