From 6d3b6de806befb1050c80e5d4be2214ee68fb2b7 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Tue, 26 Feb 2019 14:47:55 +0000 Subject: 10462 nightly errors - libmakestate.so.1: open failed Reviewed by: Gergő Mihály Doma Reviewed by: Jason King Reviewed by: Toomas Soome Approved by: Dan McDonald MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'usr/src/Makefile') diff --git a/usr/src/Makefile b/usr/src/Makefile index bdd702f339..45e24f49a2 100644 --- a/usr/src/Makefile +++ b/usr/src/Makefile @@ -193,8 +193,19 @@ sgs: rootdirs .WAIT sysheaders userheaders .WAIT \ # setup: closedbins bldtools sgs mapfiles +# +# Always build tools as non-DEBUG. +# When nightly launches a build it first builds non-DEBUG tools and then +# configures the environment so that these tools are used for building +# subsequently. If a recursive build from usr/src then builds DEBUG tools, +# the tools will be rebuilt using themselves resulting in a race condition +# that can cause the build to fail - see https://www.illumos.org/issues/10462 +# for more details. +# A manual build in usr/src/tools in a DEBUG bldenv will still do a DEBUG +# tools build. +# bldtools: - @cd tools; pwd; $(MAKE) install + @cd tools; pwd; $(MAKE) RELEASE_BUILD= install # /var/mail/:saved is a special case because of the colon in the name. # -- cgit v1.2.3