From nobody@FreeBSD.org  Wed Apr 11 07:01:34 2007
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 689EE16A406
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Apr 2007 07:01:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 49AEC13C4BE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Apr 2007 07:01:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l3B71YCu091883
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Apr 2007 07:01:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l3B6uWCD090944;
	Wed, 11 Apr 2007 06:56:32 GMT
	(envelope-from nobody)
Message-Id: <200704110656.l3B6uWCD090944@www.freebsd.org>
Date: Wed, 11 Apr 2007 06:56:32 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Can't build latest -CURRENT from scratch -- missing directory; typo in /usr/src/Makefile.incl?
X-Send-Pr-Version: www-3.0

>Number:         111469
>Category:       misc
>Synopsis:       Can't build latest -CURRENT from scratch -- missing directory; typo in /usr/src/Makefile.incl?
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 11 07:10:02 GMT 2007
>Closed-Date:    Wed Apr 11 07:15:06 GMT 2007
>Last-Modified:  Sun Feb 03 22:27:30 UTC 2013
>Originator:     Garrett Cooper
>Release:        6.2-RELEASE
>Organization:
n/a
>Environment:
[root@tanaka /usr/src]# uname -a
FreeBSD tanaka 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007
    root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386
>Description:
This is on a clean rebuild of 6.2-RELEASE, moving to 7-CURRENT:

Error message:
===> bin/sync (cleandir)
rm -f sync sync.o sync.8.gz sync.8.cat.gz
rm -f .depend GPATH GRTAGS GSYMS GTAGS
===> bin/test (cleandir)
rm -f test test.o test.1.gz test.1.cat.gz
rm -f .depend GPATH GRTAGS GSYMS GTAGS
===> cddl (cleandir)
cd: can't cd to /usr/src/cddl
*** Error code 2

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Directory listing:
[root@tanaka /usr/src]# ls -l /usr/src/
total 308
-rw-r--r--    1 root  wheel    6188 Dec 31 08:34 COPYRIGHT
-rw-r--r--    1 root  wheel     399 Jan 12  2006 LOCKS
-rw-r--r--    1 root  wheel    6868 Apr  6 03:57 MAINTAINERS
-rw-r--r--    1 root  wheel   11292 Apr  2 14:32 Makefile
-rw-r--r--    1 root  wheel   37388 Apr  5 19:13 Makefile.inc1
-rw-r--r--    1 root  wheel  166688 Apr  9 12:16 ObsoleteFiles.inc
-rw-r--r--    1 root  wheel    3077 Jun  6  2006 README
-rw-r--r--    1 root  wheel   30977 Apr  3 03:04 UPDATING
drwxr-xr-x   37 root  wheel    1024 Apr 10 22:40 bin
drwxr-xr-x   55 root  wheel    1024 Apr 10 22:46 contrib
drwxr-xr-x    5 root  wheel     512 Apr 10 13:31 crypto
drwxr-xr-x   21 root  wheel    2048 Apr 10 22:47 etc
drwxr-xr-x    4 root  wheel     512 Apr 10 13:32 gnu
drwxr-xr-x    7 root  wheel    2048 Apr 10 22:48 include
drwxr-xr-x   73 root  wheel    1536 Apr 10 22:50 lib
drwxr-xr-x   33 root  wheel    1024 Apr 10 22:50 libexec
drwxr-xr-x   13 root  wheel     512 Apr 10 22:50 release
drwxr-xr-x    4 root  wheel     512 Apr 10 13:35 rescue
drwxr-xr-x   91 root  wheel    2048 Apr 10 22:50 sbin
drwxr-xr-x    6 root  wheel     512 Apr 10 23:12 secure
drwxr-xr-x   25 root  wheel     512 Apr 10 22:51 share
drwxr-xr-x   19 root  wheel     512 Apr  8 14:10 src
drwxr-xr-x   55 root  wheel    1024 Apr 10 22:58 sys
drwxr-xr-x   12 root  wheel     512 Apr 10 22:58 tools
drwxr-xr-x  224 root  wheel    4096 Apr 10 23:01 usr.bin
drwxr-xr-x  192 root  wheel    3584 Apr 10 23:07 usr.sbin

[root@tanaka /usr/src]# find . -name "cddl" -type d
./sys/sun4v/cddl
./sys/sun4v/include/cddl
./src/sys/sun4v/cddl
./src/sys/sun4v/include/cddl
[root@tanaka /usr/src]#


>How-To-Repeat:
Try and run make buildworld on a recently checked out source; issue has been present sometime from 1.5 weeks ago (last successful build).
>Fix:
Fix typo or add directory (my guess is former item).

My guess is the error's a typo in this Makefile:
[root@tanaka /usr/src]# grep -r -A1 -B1 cddl Makefile.inc1
.if ${MK_CDDL} != "no"
SUBDIR+=cddl
.endif
--
.if ${MK_CDDL} != "no"
        cd ${.CURDIR}/cddl/lib; ${LIB32WMAKE} ${_t}
.endif
--

_generic_libs=  ${_cddl_lib} gnu/lib ${_kerberos5_lib} lib ${_secure_lib} usr.bi
n/lex/lib

--
.if ${MK_CDDL} != "no"
_cddl_lib= cddl/lib
.endif
[root@tanaka /usr/src]#
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Wed Apr 11 07:15:04 UTC 2007 
State-Changed-Why:  
You did not checkout a correct version of HEAD (/-CURRENT) since the 
cddl information -is- there (check the cvsweb to see it for yourself). 
Please try to do a full fresh checkout for -CURRENT and retry. Also note 
that this is not yet a bug, even if the stuff still fails for you. 
Please ask hackers@ or questions@ if you need more information to setup 
the correct ways. If it is then found to be a real bug, please contact 
me to reopen the ticket. 

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