From den@volginfo.ru  Tue Nov 12 06:39:37 2002
Return-Path: <den@volginfo.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EB9CE37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 12 Nov 2002 06:39:37 -0800 (PST)
Received: from vsmi.ru (ns.vsmi.ru [217.23.84.98])
	by mx1.FreeBSD.org (Postfix) with SMTP id 410A143E77
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 12 Nov 2002 06:39:34 -0800 (PST)
	(envelope-from den@volginfo.ru)
Received: (qmail 78682 invoked by uid 85); 12 Nov 2002 17:44:35 -0000
Received: from den@volginfo.ru by mail.vsmi.ru by uid 82 with qmail-scanner-1.12 (. Clear:. Processed in 0.083048 secs); 12 Nov 2002 17:44:35 -0000
Received: from unknown (HELO img.local) (192.168.0.1)
  by 192.168.0.50 with SMTP; 12 Nov 2002 17:44:34 -0000
Message-Id: <200211121745.30532.den@volginfo.ru>
Date: Tue, 12 Nov 2002 17:45:30 +0300
From: "Denis N. Peplin" <den@volginfo.ru>
To: FreeBSD-gnats-submit@freebsd.org
Subject: make release fails - sh core dumped

>Number:         45239
>Category:       misc
>Synopsis:       make release fails - sh core dumped
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 12 06:40:05 PST 2002
>Closed-Date:    Tue Nov 12 09:02:16 PST 2002
>Last-Modified:  Mon Jul 05 16:47:33 GMT 2004
>Originator:     "Denis N. Peplin" <info@volginfo.ru>
>Release:        FreeBSD 4.7-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD img.local 4.7-RELEASE-p1 FreeBSD 4.7-RELEASE-p1 #0: Wed Nov 6 16:45:51 MSK 2002 sg@img.local:/usr/obj/usr/src/sys/nKERN2 i386

>Description:
# make rerelease CHROOTDIR=/bd/release BUILDNAME=5.0-CURRENT \
CVSROOT=/bd/ncvs NOPORTS=YES NODOC=YES MAKE_ISOS=YES
.............
chmod 755 /bd/release/mk
env -i /usr/sbin/chroot /bd/release /mk
*** Signal 12
Stop in /usr/src/release.

And in /var/log/messages:
Nov 12 17:32:53 img /kernel: pid 10852 (sh), uid 0: exited on signal 12 (core du
mped)

>How-To-Repeat:
	<code/input/activities to reproduce the problem (multiple lines)>
>Fix:

	<how to correct or work around the problem, if known (multiple lines)>



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Tue Nov 12 07:53:00 PST 2002 
State-Changed-Why:  
Once upon a time, it was an (undocumented) prerequisite for a 
successful ``make release'' that the running world be the same 
or compatible version of what you are trying to build.  It is 
not any longer, i.e. you can build a snapshot for 5.0 of 4.x, 
but this requires some black magic. 

The CHROOTDIR should be populated with the contents compatible 
with the running system, so you must buildworld for your 4.7-p1 
first and not cross-build for 5.0 -- that's why you are getting 
the SIGSYS. 

Building snapshots for 5.0 on 4.x is a bit tricky due to this: 

cd /usr/src-4.x/release && make -f /usr/src-5.0/release/Makefile ... 

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

From: Ruslan Ermilov <ru@FreeBSD.org>
To: "Denis N. Peplin" <den@volginfo.ru>
Cc: bug-followup@FreeBSD.org
Subject: Re: misc/45239: make release fails - sh core dumped
Date: Wed, 13 Nov 2002 15:59:14 +0200

 --9amGYk9869ThD9tj
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, Nov 13, 2002 at 04:58:22PM +0300, Denis N. Peplin wrote:
 > On Tuesday 12 November 2002 20:07, Ruslan Ermilov wrote:
 > > On Tue, Nov 12, 2002 at 09:02:11AM -0800, Ruslan Ermilov wrote:
 > > > Synopsis: make release fails - sh core dumped
 > > >
 > > > State-Changed-From-To: open->closed
 > > > State-Changed-By: ru
 > > > State-Changed-When: Tue Nov 12 07:53:00 PST 2002
 > > > State-Changed-Why:
 > > > Once upon a time, it was an (undocumented) prerequisite for a
 > > > successful ``make release'' that the running world be the same
 > > > or compatible version of what you are trying to build.  It is
 > > > not any longer, i.e. you can build a snapshot for 5.0 of 4.x,
 > > > but this requires some black magic.
 > > >
 > > > The CHROOTDIR should be populated with the contents compatible
 > > > with the running system, so you must buildworld for your 4.7-p1
 > > > first and not cross-build for 5.0 -- that's why you are getting
 > > > the SIGSYS.
 > > >
 > > > Building snapshots for 5.0 on 4.x is a bit tricky due to this:
 > > >
 > > > cd /usr/src-4.x/release && make -f /usr/src-5.0/release/Makefile ...
 > >
 > > Another option to build 5.0 snapshot, if your /usr/src contains
 > > the sources that your host is currently running and /usr/obj
 > > has the compiled version of /usr/src, is to:
 > >
 > > cd /usr/src/release
 > > cvs -q up -Al (-l is enough)
 > > make release ...
 > >
 > > In general, release/Makefile* should be of the same version you
 > > are building.
 >=20
 > Thank You for detailed instructions, but I don't like black magic :)
 > I'm just build and install 5.0-CURRENT from sources, and will
 > try to make 5.0 release from 5.0 system :)
 >=20
 Still, make sure your src/release/Makefile* is of the same version
 as will be checked out in ${CHROOTDIR}/usr/src/release/.
 
 
 Cheers,
 --=20
 Ruslan Ermilov		Sysadmin and DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
 
 --9amGYk9869ThD9tj
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE90lqyUkv4P6juNwoRAlgbAJ9drbULkGLDXnrkEsR/K4qZ7oR2QACePY0i
 g6tIT8xHmgmT9Syv0QdY1Rk=
 =HQKh
 -----END PGP SIGNATURE-----
 
 --9amGYk9869ThD9tj--
>Unformatted:
 To: FreeBSD-gnats-submit@freebsd.org
 From: "Denis N. Peplin" <info@volginfo.ru>
 Reply-To: "Denis N. Peplin" <info@volginfo.ru>
 Cc: 
 X-send-pr-version: 3.113
 X-GNATS-Notify: 
 
 
