[Bug 252842] WITHOUT_LLD_BOOTSTRAP build option fails in /usr/src/usr.bin/gh-bc

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 23 23:04:30 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252842

Stefan Eßer <se at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |se at FreeBSD.org
             Status|New                         |Closed
         Resolution|---                         |Not Accepted

--- Comment #2 from Stefan Eßer <se at FreeBSD.org> ---
I consider this a false positive:

Upgrading between major versions (12 -> 13) with explicit skipping of required
bootstrap tools is just insane.

The error is reported due to building gh-bc with -flto and then attempting to
link with an old linker that does not support the "object files" produced by
the upgraded CLANG (upgraded as a bootstrap tool) with -flto.

I have tried to reproduce this issue on -CURRENT which has for a long time (at
least 1 year) provided a LLD version that works in this case.

I'm going to close the PR for the reason that it is a user error to suppress
the building of (part of the) bootstrap tools leading to incompatible compiler
and linked when performing an upgrade to a new FreeBSD major version.

There is no practical fix for this issue: Overriding WITHOUT_LLD_BOOTSTRAP for
major version upgrades would prevent this "user error", but going from 13 to 14
will not require a LLD bootstrap and thus such an override would be superfluous
for major version upgrades after 12->13.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list