From nobody Wed Apr 9 19:12:31 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZXsz56h48z5sDx9 for ; Wed, 09 Apr 2025 19:12:49 +0000 (UTC) (envelope-from freebsd-current-freebsd-org111@ketas.si.pri.ee) Received: from mail.ketas.si.pri.ee (d004-fea2-0bff-021e-13e8-8437-07d0-2001.dyn.estpak.ee [IPv6:2001:7d0:8437:13e8:21e:bff:fea2:d004]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZXsz40CVsz3xLL for ; Wed, 09 Apr 2025 19:12:47 +0000 (UTC) (envelope-from freebsd-current-freebsd-org111@ketas.si.pri.ee) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ketas.si.pri.ee header.s=ketas-si-pri-ee-20240416002854-4096 header.b=m9Lvrd73; dmarc=pass (policy=reject) header.from=ketas.si.pri.ee; spf=pass (mx1.freebsd.org: domain of freebsd-current-freebsd-org111@ketas.si.pri.ee designates 2001:7d0:8437:13e8:21e:bff:fea2:d004 as permitted sender) smtp.mailfrom=freebsd-current-freebsd-org111@ketas.si.pri.ee X-Original-To: freebsd-current@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ketas.si.pri.ee; s=ketas-si-pri-ee-20240416002854-4096; t=1744225953; bh=KKte6ZKtSP2OWOYCYf4UBxINWSN8+mY39EB91Ez9GpM=; h=Date:From:To:Subject:In-Reply-To:References; b=m9Lvrd73AEpC3/y3KTbCn5gkFl/Wtf1HVLPEij6Ac2FeHFCtO3haZmyigDOfTavw2 5VVetO0u5dM4FKetSdfiwDRthlnJqrc/F6IB10LV/rRpDBwDE8mF/gBcxhaB53aRo7 prtIxMrwmcjDH7O754+BLTJiroUYs6XP9PK1JoPhqsBxcmHdejJBNah8IykrH3jles EgU+9+C8nFQDOSjscOQIxOoBW/tPpGcnSRBRkYpM1IbGMCwuybdBnuVkCWT1g0UpPX uE541T6+zll7QKhB3rjN55v+2j1kyv04oY5Wmt4LRXz5O4RJyhMq4hMSGNknwXTlfZ AwkbWIWtB9AZgqe+XW8FoebpwzL6xg/ceTY2h97Hs1Mky3cbmPm6RVvn2wIMYB3iN9 TYJNKJQrFffQlDYFHWHMJOhTUItHtiDH31b/TDgsV0pMgIw+z7Q0uY98f2MLVCnb+Q t8JlHK+JcXMz0cVPe7G2gAT5/qyxXfTaUu+aqivqsVjK7zsJX54Oy9KqCG6HKPuqdJ PdTsZUZJODHvs6vHKiGuFZVocrl3lzRBzwFTkfnv6KogR1T96noBM7jRGeg9fDT/FJ AybRurySzLCPbJj2GqvJ36uJkYoRAqvqdWiDruMF89ArUjazr6M5Mb4vPhkE6WjsQi K2Qt22rsMPlUUX2Plo/+Y3Os= Received: from [IPv6:::1] (0114-0000-0000-0000-13c8-8437-07d0-2001.dyn.estpak.ee [IPv6:2001:7d0:8437:13c8::114]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ketas.si.pri.ee (Postfix) with ESMTPSA id 2314F5993E7 for ; Wed, 09 Apr 2025 22:12:32 +0300 (EEST) Date: Wed, 09 Apr 2025 22:12:31 +0300 From: Sulev-Madis Silber To: freebsd-current@freebsd.org Subject: Re: elfcopy: not found User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <1A736C63-8173-4A02-AD98-059C7612A197@ketas.si.pri.ee> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [0.96 / 15.00]; HFILTER_HOSTNAME_5(3.00)[d004-fea2-0bff-021e-13e8-8437-07d0-2001.dyn.estpak.ee]; NEURAL_HAM_LONG(-0.98)[-0.983]; DMARC_POLICY_ALLOW(-0.50)[ketas.si.pri.ee,reject]; NEURAL_HAM_MEDIUM(-0.20)[-0.204]; R_DKIM_ALLOW(-0.20)[ketas.si.pri.ee:s=ketas-si-pri-ee-20240416002854-4096]; R_SPF_ALLOW(-0.20)[+ip6:2001:7d0:8437:1300::/56]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_SHORT(-0.05)[-0.054]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3249, ipnet:2001:7d0::/32, country:EE]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[ketas.si.pri.ee:+] X-Rspamd-Queue-Id: 4ZXsz40CVsz3xLL X-Spamd-Bar: / On April 9, 2025 9:31:22 PM GMT+03:00, Ed Maste wro= te: >On Wed, 9 Apr 2025 at 10:58, Sulev-Madis Silber > wrote: >> >> but it does indeed turn MK_ELFTOOLCHAIN_BOOTSTRAP to "no" value > >OK, https://reviews=2Efreebsd=2Eorg/D49722 should fix this then (but will >break some other, even more unusual cases)=2E I'll see if I can update >it to work for those cases too=2E > >> i might have optimized myself into hellhole here but what happened with= in last month that caused this, which change is it? > >This is the change that will have introduced the breakage: > >commit b885643b63e4df51cc6c74c4ddd4d0b640075678 >Author: Ed Maste >Date: Fri Mar 14 12:42:15 2025 -0400 > > boot: Always use ELF Tool Chain elfcopy for EFI builds > > We now use llvm-objcopy by default (as of commit 1cae7121c667), but i= t > does not support efi-app-x86_64 and similar ouptut formats (for more > detail see LLVM issue 108609[1])=2E > > Go back to installing ELF Tool Chain's version of objcopy as elfcopy > (the standard upstream name) and use it for EFI builds=2E > > [1] https://github=2Ecom/llvm/llvm-project/issues/108609)=2E > > PR: 280771 > Reviewed by: andrew > Sponsored by: The FreeBSD Foundation > Differential Revision: https://reviews=2Efreebsd=2Eorg/D49362 > >> my idea was to optimize resulting armv7 build size, not any local cross= build toolchains=2E many options are decade old in that config=2E altho i c= hecked them recently > >WITHOUT_ELFTOOLCHAIN_BOOTSTRAP won't change the size of the installed >system -- it just controls whether ELF Tool Chain (and in particular >elfcopy) is built and used as a build tool=2E is actually commented out there but i think i have something else that's = unneeded=2E but then those people in forums at https://forums=2Efreebsd=2Eo= rg/threads/error-trying-to-upgrade-to-version-15-current=2E97389/ have some= thing else there that also affects this? i might need #2 or #3 time of read= ing src=2Econf manpage to only use options that affect resulting build=2E a= nd which affect build size (main reason)=2E build times decrease a lot too= =2E but i kept all options in file, ordered, for reference purposes, should= i need to turn them on or off oh, i think WITHOUT_CROSS_COMPILER does it, it also turns WITHOUT_ELFTOOLC= HAIN_BOOTSTRAP on=2E i might have overlooked what all those "compiler" opti= ons actually do=2E what i wanted is to exclude compilers from resulting bui= ld target=2E not from build itself did you spot any other options that affect build itself and not target? i would guess pkgbase would eventually fix this "minimize the built system= " issues or build options could have even better clearer documentation=2E tho i'm n= ot that good documenter myself maybe to help to improve it actually the build system confuses me in more way too, as some variables a= re make ones, some could be make or env, some only env=2E meh