Failure during buildworld of FreeBSD 9 on FreeBSD 12.0-CURRENT

From: Dave Dodd <dave_at_ci.com.au>
Date: Tue, 8 Nov 2016 16:07:37 +1100
Gentlefolk,

I have run into a problem building a FreeBSD 9 world & kernel on a
FreeBSD 12.0-CURRENT host.

I have my FreeBSD 9 tree located in /usr/src-9 which was refreshed via svn
yesterday.

The build is being executed on a host running FreeBSD 12.0-CURRENT #3 r308389 .

The steps that were followed were:

cd /usr/src-10
svn update
make buildworld -j8

This starts and emits the following:

root_at_fmaster:/usr/src-9 # make buildworld -j8
--- upgrade_checks ---
--- make ---
--------------------------------------------------------------
>>> Building an up-to-date make(1)
--------------------------------------------------------------
--- obj ---
--- _proginstall ---
sh /usr/src-9/tools/install.sh -s -o root -g wheel -m 555   make /usr/obj/usr/src-9/make.amd64/make
--- buildworld ---
Unknown modifier 'U'

"/usr/share/mk/bsd.compiler.mk", line 38: Malformed conditional (${MK_CCACHE_BUILD:Uno} == "yes" &&  !make(showconfig) &&  (${CC:M*ccache/world/*} == "" || ${CXX:M*ccache/world/*} == ""))
"/usr/share/mk/bsd.compiler.mk", line 107: missing `in' in for
X_ in CC $${_empty_var_} XCC X_
"/usr/share/mk/bsd.compiler.mk", line 108: Malformed conditional (${cc} == "CC" || !empty(XCC))
Unknown modifier 'h'

Error expanding embedded variable.
"/usr/src-9/Makefile.inc1", line 134: warning: "/usr/obj/usr/src-9/make.amd64/make -C /usr/src-9/release -V REVISION" returned non-zero status
Unknown modifier 'U'

"/usr/share/mk/bsd.compiler.mk", line 38: Malformed conditional (${MK_CCACHE_BUILD:Uno} == "yes" &&  !make(showconfig) &&  (${CC:M*ccache/world/*} == "" || ${CXX:M*ccache/world/*} == ""))
"/usr/share/mk/bsd.compiler.mk", line 107: missing `in' in for
X_ in CC $${_empty_var_} XCC X_
"/usr/share/mk/bsd.compiler.mk", line 108: Malformed conditional (${cc} == "CC" || !empty(XCC))
Unknown modifier 'h'

Error expanding embedded variable.
"/usr/src-9/Makefile.inc1", line 135: warning: "/usr/obj/usr/src-9/make.amd64/make -C /usr/src-9/release -V BRANCH" returned non-zero status

---------------------------------------------------------------------------------------

I realized that the build was using /usr/share/mk/bsd.compiler.mk

I then set the environment variable MAKESYSPATH to /usr/src-9/share/mk and
retried.

The inital errors/warning about Malformed conditionals dissapear, however
the buildworld then fails at the same point as before.

Note that a build using a FreeBSD 9 jail hosted on the same
FreeBSD 12.0-CURRENT server works correctly without problems.

I do not have any problem doing a buildworld of FreeBSD 10 world done on the sam
e FreeBSD 12.0 host.

The FreeBSD 12.0-CURRENT host does not have an /etc/make.conf or /etc/src.conf

My understanding is that building like this should work seamlessly.

I have transcripts of both builds available if required but I cannot attach
them to this email becuse of mailing list posting size limitations.

-- 
David Dodd
Bing Technologies Pty Ltd
Suite 54, Jones Bay Wharf
26-32 Pirrama Road
Pyrmont NSW 2009 Australia
Telephone +612 9552 5500 Fax +612 9552 5549
Received on Tue Nov 08 2016 - 04:07:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:08 UTC