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

            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: b...@freebsd.org
          Reporter: adr...@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 defined
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="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

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

Reply via email to