From nobody@FreeBSD.org  Fri Oct 19 09:00:15 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3C1E798F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Oct 2012 09:00:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 2247C8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Oct 2012 09:00:15 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9J90Cvb056258
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Oct 2012 09:00:12 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9J90CpM056257;
	Fri, 19 Oct 2012 09:00:12 GMT
	(envelope-from nobody)
Message-Id: <201210190900.q9J90CpM056257@red.freebsd.org>
Date: Fri, 19 Oct 2012 09:00:12 GMT
From: Trond Endrestl <Trond.Endrestol@ximalas.info>
To: freebsd-gnats-submit@FreeBSD.org
Subject: WITH_CTF=1 in /etc/src.conf makes make buildworld bomb out with "/usr/src/share/mk/bsd.own.mk", line 477: WITH_CTF and WITHOUT_CTF can't both be set.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         172873
>Category:       misc
>Synopsis:       [build] WITH_CTF=1 in /etc/src.conf makes make buildworld bomb out with "/usr/src/share/mk/bsd.own.mk", line 477: WITH_CTF and WITHOUT_CTF can't both be set.
>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:   Fri Oct 19 09:10:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Thu Dec 20 02:14:16 UTC 2012
>Originator:     Trond Endrestl
>Release:        9.1-PRERELEASE
>Organization:
Private
>Environment:
FreeBSD enterprise.ximalas.info 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r241089: Mon Oct  1 11:07:13 CEST 2012     root@enterprise.ximalas.info:/usr/obj/usr/src/sys/ENTERPRISE  amd64
>Description:
/etc/make.conf contains:

KERNCONF=ENTERPRISE

STRIP=
CFLAGS+=-fno-omit-frame-pointer

/etc/src.conf contains:

WITH_CLANG_EXTRAS=yes
WITH_CTF=1
WITH_ICONV=yes

cd /usr/src && svn up tells me:

At revision 241721.

make buildworld buildkernel bombs out during:

 >>> stage 1.1: legacy release compatibility shims
 
 with:
 
 "/usr/src/share/mk/bsd.own.mk", line 477: WITH_CTF and WITHOUT_CTF can't both be set.
 *** [_legacy] Error code 1
 1 error
 *** [buildworld] Error code 2
 1 error
 
>How-To-Repeat:
cd /usr/obj
rm -Rf *
cd /usr/src
svn up # assuming stable/9
make -DNO_CLEAN buildworld buildkernel

>Fix:
Patch from http://lists.freebsd.org/pipermail/freebsd-arch/2012-October/013195.html solves the problem.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Sun Oct 21 09:43:26 UTC 2012 
State-Changed-Why:  
I've MFC'd 228120 which allows WITH_CTF to be set in make.conf again. 

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

From: John Hein <jhein@symmetricom.com>
To: bug-followup@FreeBSD.org, Trond.Endrestol@ximalas.info, fjoe@FreeBSD.org,
        brooks@FreeBSD.org
Cc:  
Subject: Re: misc/172873: [build] WITH_CTF=1 in /etc/src.conf makes make buildworld bomb out with "/usr/src/share/mk/bsd.own.mk", line 477: WITH_CTF and WITHOUT_CTF can't both be set.
Date: Wed, 19 Dec 2012 18:58:02 -0700

 I still get this error on 8.x after r241969 when doing 'make
 buildkernel WITH_CTF=1'.  It works if you have WITH_CTF=1
 in /etc/src.conf, but not on the command line.
 
 .undef doesn't work with command line make args.
 
State-Changed-From-To: closed->open 
State-Changed-By: eadler 
State-Changed-When: Thu Dec 20 02:14:14 UTC 2012 
State-Changed-Why:  
per submitter request 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172873 
>Unformatted:
