http://www.berklix.com/~jhs/src/bsd/fixes/freebsd/generic/src/ Makefile.inc1.MAKEOBJDIRPREFIX.REL=12.0-STABLE.diff.no_customise Makefile.inc1.MAKEOBJDIRPREFIX.REL=12.1-RELEASE.diff.no_customise I dont have time to read & analyse what all the macro checks are for, but an easier way to force a build than the patch below, is to assert _LOADED_TOOLCHAIN_METADATA in /etc/src.conf So stopping using my patch by renaming Makefile.inc1.MAKEOBJDIRPREFIX.REL=12.0-STABLE.diff To Makefile.inc1.MAKEOBJDIRPREFIX.REL=12.0-STABLE.diff.no_customise # land.berklix.org was breaking for some reason Tue Mar 12 14:39:11 CET 2019 # # *** old-12.0-RELEASE/src/Makefile.inc1.orig Tue Mar 12 14:16:43 2019 # --- new-generic-12.0-RELEASE/src/Makefile.inc1 Tue Mar 12 14:13:51 2019 # *************** # *** 88,102 **** # MK_GCC_BOOTSTRAP= no # .endif # # ! # Pull in compiler metadata from buildworld/toolchain if possible to avoid # ! # running CC from bsd.compiler.mk. # ! .if make(installworld) || make(install) || make(distributeworld) || \ # ! make(stageworld) # ! .-include "${OBJTOP}/toolchain-metadata.mk" # ! .if !defined(_LOADED_TOOLCHAIN_METADATA) # ! .error A build is required first. You may have the wrong MAKEOBJDIRPREFIX ${MAKEOBJDIRPREFIX} set. # ! .endif # ! .endif # # # Pull in COMPILER_TYPE and COMPILER_FREEBSD_VERSION early. Pull it from the # # tree to be friendlier to foreign OS builds. It's safe to do so unconditionally # --- 88,102 ---- # MK_GCC_BOOTSTRAP= no # .endif # # ! # # Pull in compiler metadata from buildworld/toolchain if possible to avoid # ! # # running CC from bsd.compiler.mk. # ! # .if make(installworld) || make(install) || make(distributeworld) || \ # ! # make(stageworld) # ! # .-include "${OBJTOP}/toolchain-metadata.mk" # ! # .if !defined(_LOADED_TOOLCHAIN_METADATA) # ! # .error A build is required first. You may have the wrong MAKEOBJDIRPREFIX ${MAKEOBJDIRPREFIX} set. # ! # .endif # ! # .endif # # # Pull in COMPILER_TYPE and COMPILER_FREEBSD_VERSION early. Pull it from the # # tree to be friendlier to foreign OS builds. It's safe to do so unconditionally *** old-12.0-STABLE/src/Makefile.inc1.orig Wed Jun 19 15:34:10 2019 --- new-generic-STABLE/src/Makefile.inc1 Wed Jun 19 15:34:57 2019 *************** *** 88,102 **** MK_GCC_BOOTSTRAP= no .endif ! # Pull in compiler metadata from buildworld/toolchain if possible to avoid ! # running CC from bsd.compiler.mk. ! .if make(installworld) || make(install) || make(distributeworld) || \ ! make(stageworld) ! .-include "${OBJTOP}/toolchain-metadata.mk" ! .if !defined(_LOADED_TOOLCHAIN_METADATA) ! .error A build is required first. You may have the wrong MAKEOBJDIRPREFIX set. ! .endif ! .endif # Pull in COMPILER_TYPE and COMPILER_FREEBSD_VERSION early. Pull it from the # tree to be friendlier to foreign OS builds. It's safe to do so unconditionally --- 88,102 ---- MK_GCC_BOOTSTRAP= no .endif ! # # Pull in compiler metadata from buildworld/toolchain if possible to avoid ! # # running CC from bsd.compiler.mk. ! # .if make(installworld) || make(install) || make(distributeworld) || \ ! # make(stageworld) ! # .-include "${OBJTOP}/toolchain-metadata.mk" ! # .if !defined(_LOADED_TOOLCHAIN_METADATA) ! # .error A build is required first. You may have the wrong MAKEOBJDIRPREFIX set. ! # .endif ! # .endif # Pull in COMPILER_TYPE and COMPILER_FREEBSD_VERSION early. Pull it from the # tree to be friendlier to foreign OS builds. It's safe to do so unconditionally