From owner-freebsd-current@freebsd.org Thu Oct 11 19:10:51 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE30010C4974 for ; Thu, 11 Oct 2018 19:10:50 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "land.berklix.org", Issuer "land.berklix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 76C827DB07; Thu, 11 Oct 2018 19:10:49 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p2E52C9D7.dip0.t-ipconnect.de [46.82.201.215]) (authenticated bits=0) by land.berklix.org (8.15.2/8.15.2) with ESMTPSA id w9BJAhhb004976 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 Oct 2018 19:10:47 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id w9BJAbKq029329; Thu, 11 Oct 2018 21:10:38 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id w9BJAPrL049507; Thu, 11 Oct 2018 21:10:37 +0200 (CEST) (envelope-from jhs@berklix.com) Message-Id: <201810111910.w9BJAPrL049507@fire.js.berklix.net> To: Stefan Esser cc: FreeBSD Current Subject: Re: careless commits disrupt From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-From: http://www.berklix.eu/~jhs/ In-reply-to: Your message "Thu, 11 Oct 2018 19:40:37 +0200." <227d54a4-09e8-d30b-4ff2-eb467e14c9b6@freebsd.org> Date: Thu, 11 Oct 2018 21:10:25 +0200 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Thu, 11 Oct 2018 19:10:51 -0000 Stefan Esser wrote: > Am 11.10.18 um 18:20 schrieb Julian H. Stacey: > >> On Thu, Oct 11, 2018 at 05:54:08PM +0200, Julian H. Stacey wrote: > >>> .... > >>> 3_sxnet.pico v3_tlsf.pico v3_utl.pico v3err.pico | tsort -q` -lpthread > >>> /usr/bin/ld: error: unable to find library -lpthread > >>> cc: error: linker command failed with exit code 1 (use -v to see invocati= > >> on) > >>> *** Error code 1 > >>> =20 > >>> Stop. > >>> make[4]: stopped in /usr/src/secure/lib/libcrypto > >>> =20 > >>> Yes I'm current: > >>> .ctm_status src-cur 13733 > >>> .svn_revision 339303 > >>> .... > >> > >> I had no issues this morning performing a src-based update from > >> head/amd64 @r339278 to r339303 -- either on my laptop or my build > >> machine. > > > > Hi David, > > Then it seems this one is hopefuly my local problem then, > > so I'll revert to vanilla r339303 & retry. Thanks. > > It worked for me when I started with a clean /usr/obj. > > You should also delete old files: > > cd /usr/src > make delete-old > make delete-old-libs Thanks Stefan, I just ran that. It deleted lots of stuff. & I'd only run it 2 days ago. I should have run it just before buildworld though. It's not suggested in the top of https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html just at base of page. I also tossed in ldconfig -R Maybe many current people already use a src.conf with NEED_MAKE_UPGRADE=YES I must read Makefile[.inc1] more, but hacked a temporarily patch *** Makefile.pre_jhs Thu Oct 11 20:39:25 2018 --- Makefile Thu Oct 11 21:07:50 2018 *************** *** 419,428 **** # Perform a few tests to determine if the installed tools are adequate # for building the world. # ! upgrade_checks: .PHONY .if defined(NEED_MAKE_UPGRADE) @${_+_}(cd ${.CURDIR} && ${MAKE} ${WANT_MAKE:S,^f,,}) .endif # # Upgrade make(1) to the current version using the installed --- 419,434 ---- # Perform a few tests to determine if the installed tools are adequate # for building the world. # ! upgrade_checks: .PHONY suggest_delete_old .if defined(NEED_MAKE_UPGRADE) @${_+_}(cd ${.CURDIR} && ${MAKE} ${WANT_MAKE:S,^f,,}) .endif + + suggest_delete_old: + @echo "If buildworld breaks, first try:" + @echo "make delete-old" + @echo "make delete-old-libs" + @echo "ldconfig -R" # # Upgrade make(1) to the current version using the installed Cheers, Julian -- Julian Stacey, Computer Consultant, Systems Engineer, BSD Linux Unix, Munich Brexit: 3,700,000 stolen votes in 1st referendum inc. 700,000 from Brits in EU Campaign lies & criminal funding, economy & pound down: New referendum needed. http://exitbrexit.uk https://www.peoples-vote.uk/petition