From nobody@FreeBSD.org  Sun Nov  4 11:31:01 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1288816A41A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  4 Nov 2007 11:31:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 0377813C4A3
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  4 Nov 2007 11:31:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id lA4BUpAn081281
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 4 Nov 2007 11:30:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id lA4BUpgC081280;
	Sun, 4 Nov 2007 11:30:51 GMT
	(envelope-from nobody)
Message-Id: <200711041130.lA4BUpgC081280@www.freebsd.org>
Date: Sun, 4 Nov 2007 11:30:51 GMT
From: Angelo Turetta <aturetta@commit.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Building multiple kernels with KERNCONF="ONE TWO" broken
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117811
>Category:       misc
>Synopsis:       [build] Building multiple kernels with KERNCONF="ONE TWO" broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 04 11:40:02 UTC 2007
>Closed-Date:    Wed Feb 09 16:01:17 UTC 2011
>Last-Modified:  Wed Feb 09 16:01:17 UTC 2011
>Originator:     Angelo Turetta
>Release:        RELENG_7
>Organization:
>Environment:
FreeBSD video.home.commit.it 7.0-BETA2 FreeBSD 7.0-BETA2 #15: Sat Nov  3 17:09:05 CET 2007     toor@video.home.commit.it:/usr/obj/usr/src/sys/VIDEO  amd64

>Description:
I've always rebuilt my system from sources with a command similar to:

    cd /usr/src
    make buildworld KERNCONF="GENERIC VIDEO VIDEODBG" buildkernel

It works on RELENG_6, and used to work on RELENG_7 (then HEAD) at least
up to Q1/2007.

Now it gives the following error:

cd /usr/src; MAKEOBJDIRPREFIX=/share  MACHINE_ARCH=amd64  MACHINE=amd64  CPUTYPE=  GROFF_BIN_PATH=/share/usr/src/tmp/legacy/usr/bin  GROFF_FONT_PATH=/share/usr/src/tmp/legacy/usr/share/groff_font  GROFF_TMAC_PATH=/share/usr/src/tmp/legacy/usr/share/tmac  _SHLIBDIRPREFIX=/share/usr/src/tmp  INSTALL="sh /usr/src/tools/install.sh"  PATH=/share/usr/src/tmp/legacy/usr/sbin:/share/usr/src/tmp/legacy/usr/bin:/share/usr/src/tmp/legacy/usr/games:/share/usr/src/tmp/usr/sbin:/share/usr/src/tmp/usr/bin:/share/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin make -f Makefile.inc1 DESTDIR=/share/usr/src/tmp par-cleandir
===> share/info (cleandir)
===> lib (cleandir)
===> lib/csu/amd64 (cleandir)
rm -f crt1.o crti.o crtn.o gcrt1.o
rm -f .depend GPATH GRTAGS GSYMS GTAGS
===> lib/libc (cleandir)
1 open conditional:
         at line 3 (evaluated to true)
make: fatal errors encountered -- cannot continue
*** Error code 1

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

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

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

Stop in /usr/src.

>How-To-Repeat:
   cd /usr/src
   make buildworld KERNCONF="GENERIC SMP" buildkernel
>Fix:
cd /usr/src
make buildworld KERNCONF=GENERIC buildkernel && make KERNCONF=SMP buildkernel

>Release-Note:
>Audit-Trail:

From: Remko Lodder <remko@FreeBSD.org>
To: Angelo Turetta <aturetta@commit.it>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/117811: Building multiple kernels with KERNCONF="ONE TWO"
 broken
Date: Tue, 06 Nov 2007 21:21:41 +0100

 Angelo Turetta wrote:
 
 Hello,
 
 With a fairly recent 7.0BETA2 build I can just build my "GUARDIAN
 GENERIC" structure without problems.
 
 sudo make buildkernel KERNCONF="GUARDIAN GENERIC"
 
 [remko@guardian /usr/obj/usr/src/sys]$ ls -alrt
 total 62
 drwxr-xr-x   5 root  wheel    512 Oct 23 11:50 boot
 drwxr-xr-x  22 root  wheel    512 Oct 23 13:16 ..
 drwxr-xr-x   3 root  wheel  27136 Nov  6 20:05 GUARDIAN
 drwxr-xr-x   5 root  wheel    512 Nov  6 20:18 .
 drwxr-xr-x   3 root  wheel  27136 Nov  6 20:29 GENERIC
 
 Both build behind eachother.
 
 Are you sure you have a fully updated and fully available /usr/src tree?
 Can you still reproduce this today? for example with HEAD(/CURRENT) and
 or RELENG_7 ?
 
 Please reply all! when you are replying to this message to get the
 feedback recorded in our bug tracking software.
 
 Thanks,
 remko
 
 
 -- 
 Kind regards,
 
      Remko Lodder               ** remko@elvandar.org
      FreeBSD                    ** remko@FreeBSD.org
 
      /* Quis custodiet ipsos custodes */

From: Angelo Turetta <aturetta@commit.it>
To: Remko Lodder <remko@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/117811: Building multiple kernels with KERNCONF="ONE TWO"
 broken
Date: Thu, 08 Nov 2007 10:26:17 +0100

 Remko Lodder wrote:
 > Are you sure you have a fully updated and fully available /usr/src tree?
 > Can you still reproduce this today? for example with HEAD(/CURRENT) and
 > or RELENG_7 ?
 
 Yes.
 Sorry, the subject of this bug should be more accurate.
 
 Actually it's not buildkernel that fails. The failure is at the 
 beginning of the cleandir phase of buildworld, but only if you specify 
 more than one kernel configuration. The example command line I put in 
 the How-To-Repeat is guaranteed to fail about 10 secs down the road, if 
 you omit buildworld it works.
 
 I tested on both amd64 and i386.
 
 
 Angelo.

From: Remko Lodder <remko@FreeBSD.org>
To: Angelo Turetta <aturetta@commit.it>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/117811: Building multiple kernels with KERNCONF="ONE TWO"
 broken
Date: Sat, 10 Nov 2007 12:42:59 +0100

 Angelo Turetta wrote:
 > Remko Lodder wrote:
 >> Are you sure you have a fully updated and fully available /usr/src tree?
 >> Can you still reproduce this today? for example with HEAD(/CURRENT) and
 >> or RELENG_7 ?
 > 
 > Yes.
 > Sorry, the subject of this bug should be more accurate.
 > 
 > Actually it's not buildkernel that fails. The failure is at the
 > beginning of the cleandir phase of buildworld, but only if you specify
 > more than one kernel configuration. The example command line I put in
 > the How-To-Repeat is guaranteed to fail about 10 secs down the road, if
 > you omit buildworld it works.
 > 
 > I tested on both amd64 and i386.
 > 
 > 
 > Angelo.
 
 OK, I tested this and I am hitting this as well. If I set kernconf to
 two kernels in the environment, or use the KERNCONF knob in
 /etc/make.conf I am not hitting anything at all.
 
 Let me see what I can dig up :)
 
 -- 
 Kind regards,
 
      Remko Lodder               ** remko@elvandar.org
      FreeBSD                    ** remko@FreeBSD.org
 
      /* Quis custodiet ipsos custodes */
State-Changed-From-To: open->feedback 
State-Changed-By: arundel 
State-Changed-When: Wed Nov 24 01:22:47 UTC 2010 
State-Changed-Why:  
I'm not able to reproduce this issue on HEAD (r215432; amd64). Can you confirm 
that this is still an issue under a fresh 7.x and the command to trigger the 
issue is 'cd /usr/src; make KERNCONF="CONF1 CONF2" buildworld'? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117811 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Wed Feb 9 16:01:15 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

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