From owner-freebsd-current@freebsd.org Tue Jan 28 17:15:32 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 85493233E51 for ; Tue, 28 Jan 2020 17:15:32 +0000 (UTC) (envelope-from tsoome@me.com) Received: from st43p00im-zteg10073401.me.com (st43p00im-zteg10073401.me.com [17.58.63.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 486YCl3nq7z4F6l for ; Tue, 28 Jan 2020 17:15:30 +0000 (UTC) (envelope-from tsoome@me.com) Received: from [10.247.0.13] (unknown [91.209.240.229]) by st43p00im-zteg10073401.me.com (Postfix) with ESMTPSA id 303965E0D9B; Tue, 28 Jan 2020 17:15:29 +0000 (UTC) From: Toomas Soome Message-Id: <52681387-567F-4C66-9662-EEF418A7856D@me.com> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: btxld not found Date: Tue, 28 Jan 2020 19:15:27 +0200 In-Reply-To: <5A341389-36CE-49F0-AACD-374CEEF412E0@van-laarhoven.org> Cc: Warner Losh , FreeBSD Current Mailing List To: Nick Hibma References: <8B42F93A-7B9E-4F99-9D77-43DA3BB7F045@van-laarhoven.org> <5A341389-36CE-49F0-AACD-374CEEF412E0@van-laarhoven.org> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2020-01-28_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-2001280129 X-Rspamd-Queue-Id: 486YCl3nq7z4F6l X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:17.58.0.0/16:c]; FREEMAIL_FROM(0.00)[me.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[me.com:+]; DMARC_POLICY_ALLOW(-0.50)[me.com,quarantine]; RCVD_IN_DNSWL_LOW(-0.10)[181.63.58.17.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[me.com]; ASN(0.00)[asn:714, ipnet:17.58.63.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[me.com:s=1a1hai]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(0.00)[ip: (-1.87), ipnet: 17.58.63.0/24(-1.49), asn: 714(-2.27), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; DWL_DNSWL_LOW(-1.00)[me.com.dwl.dnswl.org : 127.0.5.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 17:15:32 -0000 > On 28. Jan 2020, at 18:08, Nick Hibma wrote: >=20 >=20 >> On Tue, Jan 28, 2020, 4:57 AM Nick Hibma > wrote: >> > On 28/01 /2020, at 12:39, Toomas Soome > wrote: >> >=20 >> >> On 28. Jan 2020, at 13:36, Nick Hibma > wrote: >> >>=20 >> >> Folks, >> >>=20 >> >> Could anyone explain to me what I am doing wrong? make = installworld fails each time with the following error >> >>=20 >> >> =3D=3D=3D> stand/i386/libi386 (install) >> >> =3D=3D=3D> 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 >> >>=20 >> >> 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.=20 >> >>=20 >> >> Any pointers? >> >>=20 >> >=20 >> > it should be /usr/sbin/btxld; are you missing /usr/sbin from the = path? >>=20 >> 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. >>=20 >> Also, in some of the makefiles the target calling btxldr is depending = on the build of that executable: >>=20 >> Index: stand/i386/pxeldr/Makefile >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- stand/i386/pxeldr/Makefile (revision 357042) >> +++ stand/i386/pxeldr/Makefile (working copy) >> @@ -39,7 +39,7 @@ >> CLEANFILES+=3D ${LOADER} >>=20 >> ${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} >>=20 >> This is definitely wrong. We have either a path that is wrong, or we = aren't reinstalling btxld in the right place. >>=20 >> Warner >=20 > 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. >=20 > They are being built, and installed: >=20 > {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 >=20 > I guess the difference in file size is due to it being stripped during = install? >=20 > Nick why it is installed into directory: = /usr/obj/usr/src/i386.i386/usr.sbin/btxld ?=20 rgds, toomas