Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Sep 2022 16:02:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 266274] building -HEAD on an install with no compiler in /usr/bin, but using CROSS_TOOLCHAIN fails
Message-ID:  <bug-266274-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266274

            Bug ID: 266274
           Summary: building -HEAD on an install with no compiler in
                    /usr/bin, but using CROSS_TOOLCHAIN fails
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: adrian@freebsd.org

In theory? we should be able to build -HEAD with CROSS_TOOLCHAIN even if we
don't have a host compiler.

However in practice, building the host tools fails very early because we're
checking the compiler/type version early in the .mk files, before CC is def=
ined
correctly.

Also, there's a fun question around whether this is acceptable or not, as we
still need /host/ tools and a cross compile GCC is't that. (ie, we don't
TECHICALLY have a HOST_TOOLCHAIN option.)

To reproduce:

* build a system with WITHOUT_TOOLCHAIN=3D"YES"
* make, make install
* pkg install llvm13 (for example)
* make delete-old ; this will remove the old compiler pieces and make things
very broken
* try rebuilding

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266274-227>