From owner-freebsd-current@FreeBSD.ORG Sat Dec 6 15:01:42 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8D312288 for ; Sat, 6 Dec 2014 15:01:42 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 461A9C0D for ; Sat, 6 Dec 2014 15:01:41 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::45a3:ddb8:2175:f9c7] (unknown [IPv6:2001:7b8:3a7:0:45a3:ddb8:2175:f9c7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 6D1F7B80A; Sat, 6 Dec 2014 16:01:32 +0100 (CET) Subject: Re: Build failed in Jenkins: Build-UFS-image #599 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/signed; boundary="Apple-Mail=_D42ECA94-2B71-4A56-BFC7-437C7545F92E"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b3 From: Dimitry Andric In-Reply-To: Date: Sat, 6 Dec 2014 16:01:26 +0100 Message-Id: <7A7677F9-AD1B-436C-9A49-054F7CD6BBC4@FreeBSD.org> References: <1052304530.8.1417827164793.JavaMail.jenkins@jenkins-9.freebsd.org> To: Garrett Cooper X-Mailer: Apple Mail (2.1993) Cc: FreeBSD CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Dec 2014 15:01:42 -0000 --Apple-Mail=_D42ECA94-2B71-4A56-BFC7-437C7545F92E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 [trimmed CC list to -current] On 06 Dec 2014, at 04:59, Garrett Cooper wrote: > On Dec 5, 2014, at 16:52, jenkins-admin@freebsd.org wrote: >=20 >> See >=20 > I=92m not entirely sure why the "could not determine = COMPILER_TYPE" error popped up, but I have a couple of = questions/concerns related to the makefile snippet. > 1. Does it make sense to check CC when running make install? Yes, of course it makes sense, if parts of the install depend on e.g. COMPILER_TYPE. In some cases, you will have to run ${CC} to determine what it is, specifically if it is just "cc". > 2. Why isn=92t this value determined once in Makefile.inc1 (per = build phase), then passed down from there Because you are supposed to be able to build stuff in a subdirectory, without invoking the full top-level Makefile infrastructure. The actual infrastructure is in share/mk/bsd.*.mk, in fact. > (I=92ve already considered the scenario where someone explicitly sets = CC in a non-toplevel Makefile, which is a problem, but an outlier rather = than the norm)? AFAICT, it gets recomputed for every recursive make, = which contributes to useless forking for something that honestly doesn=92t= change all that often/at all. This is indeed a pity, and if you know a better solution, let's hear it, please. :-) > At EMC/Isilon at least, we set CC/CXX=3Dfalse when running make = distribute*/installkernel/installworld to catch logic errors with = rebuilding code. Should this be in FreeBSD? Not sure what that is meant to achieve. If parts of the installation depend on the value of CC, why would you want to set it to false? Just so it can error out at those points? -Dimitry --Apple-Mail=_D42ECA94-2B71-4A56-BFC7-437C7545F92E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlSDGk0ACgkQsF6jCi4glqPpCQCg7VQWfZ+hviA/pQATDH+vm4Kg 7msAoKzjjkk4FNuOLWsq0ApAz61ezoyh =dsDt -----END PGP SIGNATURE----- --Apple-Mail=_D42ECA94-2B71-4A56-BFC7-437C7545F92E--