From owner-freebsd-current@freebsd.org Sat Feb 20 07:59:07 2021 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 4373353CA6A for ; Sat, 20 Feb 2021 07:59:07 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from plan-b.pwste.edu.pl (plan-b.pwste.edu.pl [IPv6:2001:678:618::40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plan-b.pwste.edu.pl", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DjLS93RhQz4r9S for ; Sat, 20 Feb 2021 07:59:05 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from fomalhaut.potoki.eu ([IPv6:2001:470:71:d47:1026:36ec:4ce0:d8fa]) (authenticated bits=0) by plan-b.pwste.edu.pl (8.16.1/8.16.1) with ESMTPSA id 11K7wsPD002873 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sat, 20 Feb 2021 08:58:55 +0100 (CET) (envelope-from zarychtam@plan-b.pwste.edu.pl) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=plan-b.pwste.edu.pl; s=plan-b-mailer; t=1613807935; bh=E4EOuSyB3T+AEJeAIWIgkJRKuuYukxmKvlm5r7sP3MU=; h=To:References:From:Subject:Date:In-Reply-To; b=g7pzORL2BMjkD9TlD/tJ+5evX8STLICEG9Ohd3ssbAE0Jjb2ZHoHsNZMWSGkPBhYq KUaBmVXrmUL2LdvugVOJTmO/qmkQhycw5bBaG6PbXvj4T7isQXCyA8VQTEtvAipsGS jljPMAn/AJkyIqmNrNIRguWU1AsA0zSlAQDXL5NbItrWXFKDJsEKv8jkTLnz3mMy3F /o7cZWOF51M6Z7W5WsBCXpTvfdemAYVvBXWrNsMRuOkrD4muARHr5S91GO0qyWKfQI kQ5W1lNbzTx+WufpqSJc+wbUYq/kFlqMr6xGWQ+VZWl1fT7vLnph6z6IqJjWQjrKvH p51kyWRBkU2aQ== X-Authentication-Warning: plan-b.pwste.edu.pl: Host [IPv6:2001:470:71:d47:1026:36ec:4ce0:d8fa] claimed to be fomalhaut.potoki.eu To: freebsd-current@freebsd.org References: <8B42F93A-7B9E-4F99-9D77-43DA3BB7F045@van-laarhoven.org> <42284B22-BACD-47E7-A9E0-75B7AC5B6C9C@FreeBSD.org> <4817FF98-E0C8-4A8F-8D56-CBD0BA5311C4@van-laarhoven.org> From: Marek Zarychta Subject: Re: btxld not found Message-ID: Date: Sat, 20 Feb 2021 08:58:54 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <4817FF98-E0C8-4A8F-8D56-CBD0BA5311C4@van-laarhoven.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="s97QTe7D1gHshkIWy2tAmwH0TVq6v908C" X-Rspamd-Queue-Id: 4DjLS93RhQz4r9S X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=plan-b.pwste.edu.pl header.s=plan-b-mailer header.b=g7pzORL2; dmarc=pass (policy=none) header.from=plan-b.pwste.edu.pl; spf=none (mx1.freebsd.org: domain of zarychtam@plan-b.pwste.edu.pl has no SPF policy when checking 2001:678:618::40) smtp.mailfrom=zarychtam@plan-b.pwste.edu.pl X-Spamd-Result: default: False [-7.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_ATTACHMENT(0.00)[]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[plan-b.pwste.edu.pl:+]; DMARC_POLICY_ALLOW(-0.50)[plan-b.pwste.edu.pl,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:678:618::40:from]; ASN(0.00)[asn:206006, ipnet:2001:678:618::/48, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[plan-b.pwste.edu.pl:s=plan-b-mailer]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[pwste.edu.pl:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2001:678:618::40:from:127.0.2.255]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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: Sat, 20 Feb 2021 07:59:07 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --s97QTe7D1gHshkIWy2tAmwH0TVq6v908C Content-Type: multipart/mixed; boundary="QRu5HtMwsQiWjl0hl0HAKin8f7sol05hX"; protected-headers="v1" From: Marek Zarychta To: freebsd-current@freebsd.org Message-ID: Subject: Re: btxld not found References: <8B42F93A-7B9E-4F99-9D77-43DA3BB7F045@van-laarhoven.org> <42284B22-BACD-47E7-A9E0-75B7AC5B6C9C@FreeBSD.org> <4817FF98-E0C8-4A8F-8D56-CBD0BA5311C4@van-laarhoven.org> In-Reply-To: <4817FF98-E0C8-4A8F-8D56-CBD0BA5311C4@van-laarhoven.org> --QRu5HtMwsQiWjl0hl0HAKin8f7sol05hX Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable W dniu 29.01.2020 o=C2=A016:35, Nick Hibma pisze: >> >>>> Could anyone explain to me what I am doing wrong? make installworld = fails each time with the following error >>>> >>>> =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/i3= 86/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 ol= d sources) and fixed it by specifying the full path to btxld in the stand= /i386/*/Makefile. >>> >>> Yes, this is most likely your clock(s) being off. At installworld ti= me, >>> it should *not* start rebuilding your loader. >>> >>> Usually this happens if you build on one machine, and install on >>> another, while the install machine's time is behind the build machine= 's >>> time. But it can also happens on one machine, for instance if you >>> start in single user mode, and the clock is not yet synchronized. >>> >>> -Dimitry >>> >> Dimitry,=20 >> >> My VirtualBox VMs do have a tendency to lag when I am not using them f= or a while. I've adjusted time and started ntpd. In the past that would n= ot fix the time lag permanently. >> >> I'll do a fresh buildworld and see whether that completes. >> >> Nick >=20 > Nope, make buildworld && make installworld results in, so I guess the j= ob ordering suggestion is a better one (VM with 2 processors on a variabl= y loaded laptop, no -j option, time accurate): >=20 > install -o root -g wheel -m 444 mbr /boot/mbr > =3D=3D=3D> stand/i386/pmbr (install) > install -o root -g wheel -m 444 pmbr /boot/pmbr > =3D=3D=3D> stand/i386/boot0 (install) > install -o root -g wheel -m 444 boot0 /boot/boot0 > =3D=3D=3D> stand/i386/boot0sio (install) > install -o root -g wheel -m 444 boot0 /boot/boot0sio > =3D=3D=3D> stand/i386/btx (install) > =3D=3D=3D> stand/i386/btx/btx (install) > =3D=3D=3D> stand/i386/btx/btxldr (install) > =3D=3D=3D> stand/i386/btx/lib (install) > =3D=3D=3D> stand/i386/boot2 (install) > objcopy -S -O binary boot1.out boot1 > objcopy -S -O binary boot2.out boot2.bin > btxld -v -E 0x2000 -f bin -b /usr/obj/usr/src/i386.i386/stand/i386/btx/= btx/btx -l boot2.ldr -o boot2.ld -P 1 boot2.bin > make[6]: exec(btxld) failed (No such file or directory) > *** Error code 1 >=20 > ... >=20 > {e}nick@fimkjecurrent:/usr/src % sudo find / -name btxld -type f -ls > 1908308 48 -r-xr-xr-x 1 root wheel= 22988 Jan 27 23:37 /usr/sbin/btxld > 3441268 52 -rwxr-xr-x 1 root wheel= 25816 Jan 29 16:09 /usr/obj/usr/src/i386.i= 386/usr.sbin/btxld/btxld > {e}nick@fimkjecurrent:/usr/src % date > Wed Jan 29 16:30:21 CET 2020 > {e}nick@fimkjecurrent:/usr/src % make -dA > ... > Global:MFLAGS =3D -d A > job_pipe -1 -1, maxjobs 1, tokens 1, compat 1 > ... I am still running into this occasionally on amd64 with 13.0-STABLE, especially while updating from src and obj directories exported over NFS, but it happens sometimes also for locally mounted src and obj. =3D=3D=3D> stand/i386/mbr (install) install -o root -g wheel -m 444 mbr /boot/mbr =3D=3D=3D> stand/i386/pmbr (install) install -o root -g wheel -m 444 pmbr /boot/pmbr =3D=3D=3D> stand/i386/boot0 (install) install -o root -g wheel -m 444 boot0 /boot/boot0 =3D=3D=3D> stand/i386/boot0sio (install) install -o root -g wheel -m 444 boot0 /boot/boot0sio =3D=3D=3D> stand/i386/boot2 (install) objcopy -S -O binary boot2.out boot2.bin objcopy: open boot2.bin failed: Read-only file system *** Error code 1 Running make buildworld with only one job solves the issue. I am building with WITH_META_MODE=3Dyes, so I work around this by subsequent builds: make -sj32 buildworld && make -s buildworld --=20 Marek Zarychta --QRu5HtMwsQiWjl0hl0HAKin8f7sol05hX-- --s97QTe7D1gHshkIWy2tAmwH0TVq6v908C Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEMOqvKm6wKvS1/ZeCdZ/s//1SjSwFAmAwwT4FAwAAAAAACgkQdZ/s//1SjSzb dggApazNRvkZ8CyrUwU6CzNydFsR+KkGEO5/VJBXArvsHCc6SDqBcm/IBEpU25iUYxvUrZd5yB2B 5mcDosfJ4wDSDHxg45c6pNEyLe9HNyUYn/7iowcq4AfiCkHI0KE20WEbuV9UQv37DZc2O2b1UXH+ vXN9wEWBK20PijlznLiIUqUz/a9w2OZ1bLYI1SdxxTMvxrpx7CS+h4friQ5JZmB0FSd7kRvHDBO+ 43deUJM/GyuSg5HpXGhJs1bKa7bfU7NzRey6y2BPqSgdKi8dYEnqnJJKDr7hxALdCLZoQx9V25vp b2RNQ9YFcGq4G5neayv+8ttFEEGZle8mOsgYRQQ/Iw== =cMIk -----END PGP SIGNATURE----- --s97QTe7D1gHshkIWy2tAmwH0TVq6v908C--