From thierry@pompo.net  Sun Nov 25 21:26:12 2012
Return-Path: <thierry@pompo.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id BA06BAF7
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Nov 2012 21:26:12 +0000 (UTC)
	(envelope-from thierry@pompo.net)
Received: from mx1b.lautre.net (etna.lautre.net [80.67.160.72])
	by mx1.freebsd.org (Postfix) with ESMTP id 556D98FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Nov 2012 21:26:08 +0000 (UTC)
Received: from graf.pompo.net (graf.pompo.net [78.225.128.39])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: thierry@pompo.net)
	by mx1b.lautre.net (Postfix) with ESMTPSA id 62D657E08A;
	Sun, 25 Nov 2012 22:26:07 +0100 (CET)
Received: by graf.pompo.net (Postfix, from userid 1001)
	id 8396B11475; Sun, 25 Nov 2012 22:26:06 +0100 (CET)
Message-Id: <20121125212606.8396B11475@graf.pompo.net>
Date: Sun, 25 Nov 2012 22:26:06 +0100 (CET)
From: Thierry Thomas <thierry@FreeBSD.org>
Reply-To: Thierry Thomas <thierry@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: re@freebsd.org
Subject: share/mk/bsd.compiler.mk does not know ccache
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         173914
>Category:       misc
>Synopsis:       [build] share/mk/bsd.compiler.mk does not know ccache
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 25 21:30:00 UTC 2012
>Closed-Date:    Fri Mar 01 03:32:01 UTC 2013
>Last-Modified:  Fri Mar  1 03:40:00 UTC 2013
>Originator:     Thierry Thomas
>Release:        FreeBSD 9.1-PRERELEASE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r243502: Sun Nov 25 18:43:08 CET 2012 thierry@graf.pompo.net:/usr/obj/usr/src/sys/GRAF120125 i386


	
>Description:
	Upgrading a machine from 9-STABLE to 9.1-PRERELEASE, make
	installworld aborted with the following message:

	share/mk/bsd.compiler.mk line 17
	Unable to determine compiler type for /usr/local/libexec/ccache/world/cc

>How-To-Repeat:
	- Install the port devel/ccache and have its entry in your
	/etc/make.conf
	- Upgrade the machine vie make installkernel / installworld

>Fix:
	Add a third case for ccache, and test its basename?

	


>Release-Note:
>Audit-Trail:

From: Dennis Yusupoff <dyr@smartspb.net>
To: bug-followup@FreeBSD.org, thierry@FreeBSD.org
Cc:  
Subject: Re: misc/173914: [build] share/mk/bsd.compiler.mk does not know ccache
Date: Thu, 28 Feb 2013 20:42:58 +0400

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 ------enig2WAHCTLFQCNFLKGJWBCOU
 Content-Type: multipart/alternative;
  boundary="------------050701060703010006070307"
 
 This is a multi-part message in MIME format.
 --------------050701060703010006070307
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 Simple patch are below.
 
 |--- bsd.compiler.mk.orig     2013-02-28 20:41:04.000000000 +0400||
 ||+++ bsd.compiler.mk 2013-02-28 20:01:23.000000000 +0400||
 ||@@ -11,6 +11,8 @@||
 || COMPILER_TYPE:=3D        gcc||
 || .  elif ${_COMPILER_VERSION:M\(GCC\)}||
 || COMPILER_TYPE:=3D        gcc||
 ||+.  elif ${_COMPILER_VERSION:M\(ccache\)}||
 ||+COMPILER_TYPE:=3D        gcc||
 || .  elif ${_COMPILER_VERSION:Mclang}||
 || COMPILER_TYPE:=3D        clang||
 || .  else|
 
 --=20
 Best regards,
 Dennis Yusupoff,
 network engineer of
 Smart-Telecom ISP
 Russia, Saint-Petersburg=20
 
 
 --------------050701060703010006070307
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 <html>
   <head>
 
     <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF=
 -8">
   </head>
   <body text=3D"#000000" bgcolor=3D"#FFFFFF">
     Simple patch are below.<br>
     <br>
     <code>--- bsd.compiler.mk.orig =C2=A0=C2=A0=C2=A0 2013-02-28 20:41:04=
 =2E000000000
       +0400</code><code><br>
     </code><code>+++ bsd.compiler.mk 2013-02-28 20:01:23.000000000 +0400<=
 /code><code><br>
     </code><code>@@ -11,6 +11,8 @@</code><code><br>
     </code><code>=C2=A0COMPILER_TYPE:=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
 =A0=C2=A0 gcc</code><code><br>
     </code><code>=C2=A0.=C2=A0 elif ${_COMPILER_VERSION:M\(GCC\)}</code><=
 code><br>
     </code><code>=C2=A0COMPILER_TYPE:=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
 =A0=C2=A0 gcc</code><code><br>
     </code><code>+.=C2=A0 elif ${_COMPILER_VERSION:M\(ccache\)}</code><co=
 de><br>
     </code><code>+COMPILER_TYPE:=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
 =A0 gcc</code><code><br>
     </code><code>=C2=A0.=C2=A0 elif ${_COMPILER_VERSION:Mclang}</code><co=
 de><br>
     </code><code>=C2=A0COMPILER_TYPE:=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
 =A0=C2=A0 clang</code><code><br>
     </code><code>=C2=A0.=C2=A0 else</code><br>
     <br>
     <pre class=3D"moz-signature" cols=3D"72">--=20
 Best regards,
 Dennis Yusupoff,
 network engineer of
 Smart-Telecom ISP
 Russia, Saint-Petersburg </pre>
   </body>
 </html>
 
 --------------050701060703010006070307--
 
 ------enig2WAHCTLFQCNFLKGJWBCOU
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (MingW32)
 
 iQEcBAEBAgAGBQJRL4kSAAoJEBUTaqBS2NB4AKYH/iwfs7OlGxX5bcTaQVwV+ijp
 XAsKwFJ3KNexBTlSScLC2B6kXZUwpGFDmBgUbyuualljtQQQcs65w5KyUb2ENi/n
 KqHb2kI4hdizXM9pT7uymqoKfwZRsquzQvhd7x/sCAJ/55omCWqMYJ4ZREWHZkF8
 xj5T+7ym68XwgVznyjF4U0/192FsvNDVRFqdVkLOphYKUquLvsUg66CpXT1yM+K8
 FkPAnaFjJ6dNjfISb+kLhdhpzujV/8WVy1SGrdO7IN05SxZOlgpgNpqFJvSgDfwW
 W2fge2gqp/l1IgGfjpkMvCqVyuui2MB/yjB/IGrMdec2hdEczKp3NEyh7v9QiSk=
 =Gmu4
 -----END PGP SIGNATURE-----
 
 ------enig2WAHCTLFQCNFLKGJWBCOU--
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Fri Mar 1 03:20:55 UTC 2013 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=173914 
State-Changed-From-To: closed->open 
State-Changed-By: brooks 
State-Changed-When: Fri Mar 1 03:22:15 UTC 2013 
State-Changed-Why:  
Re-open.  send-pr should reject empty reason messages. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173914 
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Fri Mar 1 03:26:59 UTC 2013 
State-Changed-Why:  
Compilers that don't look or act like gcc or clang are not supported 
by base system today.  If you are running a supported compiler 
through a wrapper like distcc that hides the compiler then set the 
COMPILER_TYPE varible appropriately when building. 

I've updated bsd.compiler.mk in HEAD to be slightly more helpful in this 
regard. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173914 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/173914: commit references a PR
Date: Fri,  1 Mar 2013 03:25:56 +0000 (UTC)

 Author: brooks
 Date: Fri Mar  1 03:25:43 2013
 New Revision: 247527
 URL: http://svnweb.freebsd.org/changeset/base/247527
 
 Log:
   Provide slightly more helpful feedback when we can't figure out what
   compiler the user is using.
   
   PR:		misc/173914
 
 Modified:
   head/share/mk/bsd.compiler.mk
 
 Modified: head/share/mk/bsd.compiler.mk
 ==============================================================================
 --- head/share/mk/bsd.compiler.mk	Fri Mar  1 03:05:08 2013	(r247526)
 +++ head/share/mk/bsd.compiler.mk	Fri Mar  1 03:25:43 2013	(r247527)
 @@ -14,7 +14,7 @@ COMPILER_TYPE:=	gcc
  .  elif ${_COMPILER_VERSION:Mclang}
  COMPILER_TYPE:=	clang
  .  else
 -.error Unable to determine compiler type for ${CC}
 +.error Unable to determine compiler type for ${CC}.  Consider setting COMPILER_TYPE.
  .  endif
  .  undef _COMPILER_VERSION
  . endif
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
