From nobody@FreeBSD.org  Wed Jul 10 16:35:19 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id CB4CE16A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Jul 2013 16:35:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id BE08E1C79
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Jul 2013 16:35:19 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6AGZJnH004575
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Jul 2013 16:35:19 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6AGZJqn004570;
	Wed, 10 Jul 2013 16:35:19 GMT
	(envelope-from nobody)
Message-Id: <201307101635.r6AGZJqn004570@oldred.freebsd.org>
Date: Wed, 10 Jul 2013 16:35:19 GMT
From: Oliver Pinter <oliver.pntr@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: newvers.sh picked up wrong compiler information
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         180442
>Category:       kern
>Synopsis:       [newvers.sh] newvers.sh picked up wrong compiler information
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 10 16:40:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Wed Jul 10 20:41:00 UTC 2013
>Originator:     Oliver Pinter
>Release:        FreeBSD opn 9.1-STABLE FreeBSD 9.1-STABLE #84 r252093+ec73f9e: Sat Jun 22 20:58:19 CEST 2013
>Organization:
>Environment:
FreeBSD opn 9.1-STABLE FreeBSD 9.1-STABLE #84 r252093+ec73f9e: Sat Jun 22 20:58:19 CEST 2013     root@opn:xxx  amd64

>Description:
op@opn conf> cat /etc/src.conf
WITH_CLANG=
WITH_CLANG_EXTRAS=
WITH_LIBCPLUSPLUS=
WITH_CLANG_IS_CC=

The kernel truly builded by clang, but the newvers.sh picked up the wrong compiler to set compiler_v variable.

compiler_v=$($(${MAKE:-make} -V CC) -v 2>&1 | grep 'version')

kern.compiler_version: gcc version 4.2.1 20070831 patched [FreeBSD]

>How-To-Repeat:
1) install a clean 9-STABLE
2) add the line upper in src.conf
3) make buildworld kernel
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
