From owner-freebsd-current@FreeBSD.ORG Sun Jun 15 14:29:53 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 38472C3A for ; Sun, 15 Jun 2014 14:29:53 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E7D6A2F1C for ; Sun, 15 Jun 2014 14:29:52 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WwB17-0007E7-5l; Sun, 15 Jun 2014 14:02:41 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s5FE2cU1001169; Sun, 15 Jun 2014 08:02:38 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19do43M0nmYGzVhIkyAH325 Subject: Re: In tree builds broken in lib/ncurses? From: Ian Lepore To: Steve Kargl In-Reply-To: <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> <20140615061237.GA67531@troutmask.apl.washington.edu> Content-Type: multipart/mixed; boundary="=-tbJwVwTTZeLAjw1kMnDk" Date: Sun, 15 Jun 2014 08:02:38 -0600 Message-ID: <1402840958.20883.250.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-current@FreeBSD.org, Peter Wemm , Warner Losh 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 14:29:53 -0000 --=-tbJwVwTTZeLAjw1kMnDk Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Sat, 2014-06-14 at 23:12 -0700, Steve Kargl wrote: > 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. > It looks like this is a SUBDIR_PARALLEL build fallout. I've finally committed the fine-grained dependency fix I've been sitting on for weeks, could you please try updating to r267511 and then applying the attached to see if it fixes it? -- Ian --=-tbJwVwTTZeLAjw1kMnDk Content-Disposition: inline; filename="ncurses_order.diff" Content-Type: text/x-patch; name="ncurses_order.diff"; charset="us-ascii" Content-Transfer-Encoding: 7bit Index: lib/ncurses/Makefile =================================================================== --- lib/ncurses/Makefile (revision 267508) +++ lib/ncurses/Makefile (working copy) @@ -3,4 +3,12 @@ SUBDIR= ncurses form menu panel \ ncursesw formw menuw panelw +SUBDIR_DEPEND_form= ncurses +SUBDIR_DEPEND_menu= ncurses +SUBDIR_DEPEND_panel= ncurses +SUBDIR_DEPEND_ncursesw= ncurses +SUBDIR_DEPEND_formw= ncursesw +SUBDIR_DEPEND_menuw= ncursesw +SUBDIR_DEPEND_panelw= ncursesw + .include --=-tbJwVwTTZeLAjw1kMnDk--