On April 9, 2025 9:31:22 PM GMT+03:00, Ed Maste <ema...@freebsd.org> wrote:
>On Wed, 9 Apr 2025 at 10:58, Sulev-Madis Silber
><freebsd-current-freebsd-org...@ketas.si.pri.ee> wrote:
>>
>> but it does indeed turn MK_ELFTOOLCHAIN_BOOTSTRAP to "no" value
>
>OK, https://reviews.freebsd.org/D49722 should fix this then (but will
>break some other, even more unusual cases). I'll see if I can update
>it to work for those cases too.
>
>> i might have optimized myself into hellhole here but what happened within
>> last month that caused this, which change is it?
>
>This is the change that will have introduced the breakage:
>
>commit b885643b63e4df51cc6c74c4ddd4d0b640075678
>Author: Ed Maste <ema...@freebsd.org>
>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 it
> does not support efi-app-x86_64 and similar ouptut formats (for more
> detail see LLVM issue 108609[1]).
>
> Go back to installing ELF Tool Chain's version of objcopy as elfcopy
> (the standard upstream name) and use it for EFI builds.
>
> [1] https://github.com/llvm/llvm-project/issues/108609).
>
> PR: 280771
> Reviewed by: andrew
> Sponsored by: The FreeBSD Foundation
> Differential Revision: https://reviews.freebsd.org/D49362
>
>> my idea was to optimize resulting armv7 build size, not any local crossbuild
>> toolchains. many options are decade old in that config. altho i checked 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.
is actually commented out there but i think i have something else that's
unneeded. but then those people in forums at
https://forums.freebsd.org/threads/error-trying-to-upgrade-to-version-15-current.97389/
have something else there that also affects this? i might need #2 or #3 time
of reading src.conf manpage to only use options that affect resulting build.
and which affect build size (main reason). build times decrease a lot too. 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_ELFTOOLCHAIN_BOOTSTRAP on. i might have overlooked what all those
"compiler" options actually do. what i wanted is to exclude compilers from
resulting build target. 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. tho i'm not that
good documenter myself maybe to help to improve it
actually the build system confuses me in more way too, as some variables are
make ones, some could be make or env, some only env. meh