From owner-freebsd-current@freebsd.org Tue Jan 28 16:18:39 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 702A1231D5B for ; Tue, 28 Jan 2020 16:18:39 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 486Wy706gtz48xh for ; Tue, 28 Jan 2020 16:18:38 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1580228317; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=BshcfeLmKnAM+RtsHKnRLRZFhTg0D4YAba74O2he1NLbxIK+FwAyD6J4EFoachuQrAjREinhi+0yk oFAyw9iB5odDjUWCWeIoZFC7ggaeV4fhFgYBnWEvIWbxkpnkFEu3vXKF+Bg9vqsL7lRJ3TvGean2h7 dlh2ZjyVaNZwHaFC2zp7Eyb8Mpg73QaLyAxNG7CdcWTpG2lyDvznVY83LdZoj0IwSxWONPvc/Alxlo kURlH3owZR+V8lTImmzFi+IONW9Dyo8raFtLDCsINjSd18oHJ0YXZUTa1wqS35MLGkbP56c8eg5JNh cBLhOAw02T/bFqROBfTqw0GK3F1E+rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=FcPySEN5C1QzA8tJuHvPyvsXGtjKNdVjWXJMB4mU6vw=; b=qZtRHzaaHjXoWRvgScvn+VQj/GznUEGSFkjMNKcHN+cc3Y8eOvr1y2L3rr/jjaGGzd9hCPbDhT+5x lNa1u65TxJQE51zY+Ka+jXwWns1YbYfSAqe4YqrDxfHOd1xJFcDWSwQaUPAe+cTjybcujcU3hQzB7X WMEXNGeq1I9+DxwN37pikYsTuBjweYDWMSA4JJYv5DQfr7z63WS/XkDYHSd2tsZ0V+pELhv53Gj4iz jtwMrlSt2H3rzzwdk25lQ7cf3Fu8OA5qhQQSn49hJkvgxSlLsCWiYye+GLHRfKkaq/uPtuZ27M3CHn hXtLx0eez7oXSOnDVJwPiJgRwhslNPg== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=FcPySEN5C1QzA8tJuHvPyvsXGtjKNdVjWXJMB4mU6vw=; b=cFNAMdPRFgM690csYWY2yOm1MH/4Jd3VxBHJjDHQx/6zivLenVHhrg0O2sOku9L3YiB2297sancXf +Dug/NGGBeJwHhp+zZsQ4CTjC+Qvlf9bkPIEtPQv1fDce8qYLpNzpU03jVKvddhJ5RLlk3i/gq+vIf qffHTObWZPnkDNUiveOxKyTbWP9qpet8TQo4bqLdU5ye6XgnddLJpMTx6FIHYjbe77+06Qo7GkKxpb vjtVGmaepUjEQB6cDiJrxdZUjDDyGtq1OTJtXh6x4G/yrWW8YSaDHji4lyzY7sgjYyj+PRxxfiWlly pM74wSyMnku1r7/JxJeukwaegPjhJ9Q== X-MHO-RoutePath: aGlwcGll X-MHO-User: d4ca827c-41e9-11ea-b80d-052b4a66b6b2 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id d4ca827c-41e9-11ea-b80d-052b4a66b6b2; Tue, 28 Jan 2020 16:18:36 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 00SGIXA2012103; Tue, 28 Jan 2020 09:18:34 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: btxld not found From: Ian Lepore To: Nick Hibma , Warner Losh Cc: FreeBSD Current Mailing List Date: Tue, 28 Jan 2020 09:18:33 -0700 In-Reply-To: <5A341389-36CE-49F0-AACD-374CEEF412E0@van-laarhoven.org> References: <8B42F93A-7B9E-4F99-9D77-43DA3BB7F045@van-laarhoven.org> <5A341389-36CE-49F0-AACD-374CEEF412E0@van-laarhoven.org> Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 486Wy706gtz48xh X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.96 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.98)[-0.975,0]; NEURAL_HAM_LONG(-0.99)[-0.990,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 28 Jan 2020 16:18:39 -0000 On Tue, 2020-01-28 at 17:08 +0100, Nick Hibma wrote: > > On Tue, Jan 28, 2020, 4:57 AM Nick Hibma > > wrote: > > > On 28/01 /2020, at 12:39, Toomas Soome > > tsoome@me.com>> wrote: > > > > > > > On 28. Jan 2020, at 13:36, Nick Hibma > > > > wrote: > > > > > > > > Folks, > > > > > > > > Could anyone explain to me what I am doing wrong? make > > > > installworld fails each time with the following error > > > > > > > > ===> stand/i386/libi386 (install) > > > > ===> stand/i386/loader_4th (install) > > > > strip -R .comment -R .note -o loader_4th.bin loader_4th.sym > > > > btxld -v -f aout -e 0x200000 -o loader_4th -l > > > > /usr/obj/usr/src/i386.i386/stand/i386/btx/btxldr/btxldr -b > > > > /usr/obj/usr/src/i386.i386/stand/i386/btx/btx/btx > > > > loader_4th.bin > > > > make[6]: exec(btxld) failed (No such file or directory) > > > > *** Error code 1 > > > > > > > > This is with source of last week. I had this problem before > > > > (from old sources) and fixed it by specifying the full path to > > > > btxld in the stand/i386/*/Makefile. > > > > > > > > Any pointers? > > > > > > > > > > it should be /usr/sbin/btxld; are you missing /usr/sbin from the > > > path? > > > > Well, it's an 'installworld' so I would expect it to be providing > > that program itself, but no, /usr/sbin/ is in the path of the > > current shell. > > > > Also, in some of the makefiles the target calling btxldr is > > depending on the build of that executable: > > > > Index: stand/i386/pxeldr/Makefile > > =================================================================== > > --- stand/i386/pxeldr/Makefile (revision 357042) > > +++ stand/i386/pxeldr/Makefile (working copy) > > @@ -39,7 +39,7 @@ > > CLEANFILES+= ${LOADER} > > > > ${LOADER}: ${LOADERBIN} ${BTXLDR} ${BTXKERN} > > - btxld -v -f aout -e ${LOADER_ADDRESS} -o ${.TARGET} -l > > ${BTXLDR} \ > > + /usr/sbin/btxld -v -f aout -e ${LOADER_ADDRESS} -o > > ${.TARGET} -l ${BTXLDR} \ > > -b ${BTXKERN} ${LOADERBIN} > > > > This is definitely wrong. We have either a path that is wrong, or > > we aren't reinstalling btxld in the right place. > > > > Warner > > This is not a fix, this is to get me through the installworld. As > I've not seen any mention of this the past 6 months it must be > something on my system that makes things go bad, but I have no idea > what. > > They are being built, and installed: > > {e}nick@fimkjecurrent:/usr/src/stand/i386/btx % find / -name btxld > -ls > 1908308 48 -r-xr-xr-x 1 > root wheel > 22988 Jan 27 23:37 /usr/sbin/btxld > 1319010 4 drwxr-xr-x 2 > nick nick > 512 Sep 15 2017 /usr/src/usr.sbin/btxld > 3369564 4 drwxrwxr-x 2 > root wheel > 512 Jan 27 22:33 /usr/obj/usr/src/i386.i386/usr.sbin/btxld > 3371323 52 -rwxr-xr-x 1 > root wheel > 25816 Jan 27 22:33 /usr/obj/usr/src/i386.i386/usr.sbin/btxld/btxld > > I guess the difference in file size is due to it being stripped > during install? > > Nick I would expect the one that gets used during make install to be in the objdir/.../tmp/usr/sbin directory, like other build and install tools. But oddly, I don't have btxld in tmp for amd64 builds, only for i386. -- Ian