From nobody@FreeBSD.org  Tue Dec  8 09:44:53 2009
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 6B68E10657E6
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  8 Dec 2009 09:44:53 +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 D9B948FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  8 Dec 2009 09:44:51 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nB89ipla093706
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 8 Dec 2009 09:44:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nB89ipma093705;
	Tue, 8 Dec 2009 09:44:51 GMT
	(envelope-from nobody)
Message-Id: <200912080944.nB89ipma093705@www.freebsd.org>
Date: Tue, 8 Dec 2009 09:44:51 GMT
From: Alexander Krasnov <freebsd@tern.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: buildworld fails if WITHOUT_ZFS=yes
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         141273
>Category:       i386
>Synopsis:       buildworld fails if WITHOUT_ZFS=yes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 08 09:50:01 UTC 2009
>Closed-Date:    Tue Dec 08 20:14:41 UTC 2009
>Last-Modified:  Tue Dec 08 20:14:41 UTC 2009
>Originator:     Alexander Krasnov
>Release:        7.2-STABLE
>Organization:
>Environment:
FreeBSD bsdev.tern.ru 7.2-STABLE FreeBSD 7.2-STABLE #4: Tue Aug 11 14:52:58 MSD 2009     root@bsdev.tern.ru:/home/dev/obj/usr/src/sys/bsd  i386

>Description:
make buildworld fails with
btxld: zfsboot.ldr: Invalid argument
*** Error code 2

Stop in /usr/src/sys/boot/i386/zfsboot.
*** Error code 1

Stop in /usr/src/sys/boot/i386.

This error occasionally connected to 
WITHOUT_ZFS=yes
(or WITHOUT_CDDL=yes)
option.
Even with these options set build world tries to build zfs boot code
The same problem was noticed in May,2009
(http://docs.freebsd.org/cgi/getmsg.cgi?fetch=169999+0+archive/2009/freebsd-stable/20090531.freebsd-stable)
but I have not found any followup on this

>How-To-Repeat:
here is my full src.conf:
WITHOUT_ASSERT_DEBUG=yes
WITHOUT_ATM=yes
WITHOUT_AUTHPF=yes
WITHOUT_BIND_DNSSEC=yes
WITHOUT_BLUETOOTH=yes
WITHOUT_CALENDAR=yes
WITHOUT_CDDL=yes
WITHOUT_DICT=yes
WITHOUT_EXAMPLES=yes
WITHOUT_GAMES=yes
WITHOUT_GCOV=yes
WITHOUT_GDB=yes
WITHOUT_GPIB=yes
WITHOUT_HTML=yes
WITHOUT_I4B=yes
WITHOUT_INET6=yes
WITHOUT_INET6_SUPPORT=yes
WITHOUT_INFO=yes
WITHOUT_IPX=yes
WITHOUT_IPX_SUPPORT=yes
WITHOUT_LPR=yes
WITHOUT_NCP=yes
WITHOUT_NIS=yes
WITHOUT_NLS_CATALOGS=yes
WITHOUT_PROFILE=yes
WITHOUT_RCMDS=yes
WITHOUT_RCS=yes
WITHOUT_SHAREDOCS=yes
WITHOUT_ZFS=yes
Just make buildworld having the above in the src.conf
Just in case, my make.conf contains 
MODULES_OVERRIDE=acpi


>Fix:
Build with ZFS support
(no WITHOUT_ZFS and WITHOUT_CDDL options)

>Release-Note:
>Audit-Trail:

From: Alexandre Krasnov <freebsd@tern.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: i386/141273: buildworld fails if WITHOUT_ZFS=yes
Date: Tue, 8 Dec 2009 13:31:56 +0300

 kern/129059 [zfs] [patch] ZFS bootloader whitelistable via WITHOUT_CDDL
 for 8-CURRENT looks very similar to this issue.
 Maybe these 2 PR should be merged?
   
 
 
 
  --
 Alexandre Krasnov.
 
 
 Tel: +7 (495) 234-9885
 Fax: +7 (499) 317-4127
 www.tern.ru
 
 
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Tue Dec 8 20:14:39 UTC 2009 
State-Changed-Why:  
Duplicate of 129059 

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