From owner-freebsd-embedded@FreeBSD.ORG Sun Sep 28 22:14:55 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F6321065689 for ; Sun, 28 Sep 2008 22:14:55 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.freebsd.org (Postfix) with ESMTP id 464AD8FC1B for ; Sun, 28 Sep 2008 22:14:55 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 7FE1716D3EF; Sun, 28 Sep 2008 18:14:54 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sun, 28 Sep 2008 18:14:54 -0400 X-Sasl-enc: lV19K9NyRKZVJOHzYOBfopyT+aYEWT1SS4wD35Ng3gUL 1222640094 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id F282C2C39B; Sun, 28 Sep 2008 18:14:53 -0400 (EDT) Message-ID: <48E001DC.9010503@incunabulum.net> Date: Sun, 28 Sep 2008 23:14:52 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: "Andrey A. Chernov" , freebsd-embedded@freebsd.org X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2008 22:14:55 -0000 Hi Andrey, I see a change from you to job.c which is part of make... When cross-building a make as part of a NanoBSD arm job (amd64 7.1-PRERELEASE hosting an arm -CURRENT build), this change appears to break buildworld. If I back out this change and go back to rev 176808, the buildworld is fine. I don't understand what arc4random_uniform() is or its benefit -- I'm guessing it just acts as a uniform distribution filtering interface to arc4random() -- however the interface doesn't appear to present prior to -CURRENT, and this is breaking stuff which should work. Perhaps this change should be wrapped in an #if __FreeBSD_Version conditional so that it doesn't break 7.1->8.x source upgrades? thanks, BMS From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 00:40:04 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55F06106568F for ; Mon, 29 Sep 2008 00:40:04 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id B7F5B8FC12 for ; Mon, 29 Sep 2008 00:40:03 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.3/8.14.3) with ESMTP id m8T0KlLk064505; Mon, 29 Sep 2008 04:20:47 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1222647648; bh=8BL0u0E0/X/NCB6u5zqNq+VHZYsk+NQ4S4MVHFN Wdxg=; l=707; h=Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=SCDSd6kS2UnRUgoffdXUiuXVD pLSO2VoD8sJcp0JWL/Ep2zkYPCri4QV2WLB09CS06jqjtUIeimCLqCdlA64JBJRpWf1 kJ08mTg33X9bmbbFHrfwfQEifZmbRss94t+VydqRw8u8udMATiaa1bn2f9UILfZ/0da FMB+xBFVex0U= Received: (from ache@localhost) by nagual.pp.ru (8.14.3/8.14.3/Submit) id m8T0KhIK064504; Mon, 29 Sep 2008 04:20:44 +0400 (MSD) (envelope-from ache) Date: Mon, 29 Sep 2008 04:20:41 +0400 From: Andrey Chernov To: Bruce M Simpson Message-ID: <20080929002040.GA64397@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Bruce M Simpson , freebsd-embedded@FreeBSD.org References: <48E001DC.9010503@incunabulum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48E001DC.9010503@incunabulum.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-embedded@FreeBSD.org Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 00:40:04 -0000 On Sun, Sep 28, 2008 at 11:14:52PM +0100, Bruce M Simpson wrote: > When cross-building a make as part of a NanoBSD arm job (amd64 > 7.1-PRERELEASE hosting an arm -CURRENT build), this change appears to > break buildworld. If I back out this change and go back to rev 176808, > the buildworld is fine. Please explain, how it may cause problem? In 'make world' or 'make buildworld;make installworld' headers and libraries was builded first with old make, _then_ the new make is builded. 'make' is not a bootstrap tool builded first (at -current, I don't check -stable branch) If you uprade by hand you shound manually install headers, rebuild libs, then make. -- http://ache.pp.ru/ From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 01:10:40 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 256AB1065697 for ; Mon, 29 Sep 2008 01:10:40 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.freebsd.org (Postfix) with ESMTP id ED6AC8FC25 for ; Mon, 29 Sep 2008 01:10:39 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 33773171397; Sun, 28 Sep 2008 21:10:39 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Sun, 28 Sep 2008 21:10:39 -0400 X-Sasl-enc: gI5nx759Jj4NT9VlJ8ioj4OahQNDFDlUmO02xVMpGpz2 1222650638 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 82E37D96F; Sun, 28 Sep 2008 21:10:38 -0400 (EDT) Message-ID: <48E02B0D.9030806@incunabulum.net> Date: Mon, 29 Sep 2008 02:10:37 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: Andrey Chernov , Bruce M Simpson , freebsd-embedded@FreeBSD.org References: <48E001DC.9010503@incunabulum.net> <20080929002040.GA64397@nagual.pp.ru> In-Reply-To: <20080929002040.GA64397@nagual.pp.ru> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 01:10:40 -0000 Andrey Chernov wrote: > Please explain, how it may cause problem? In 'make world' or 'make > buildworld;make installworld' headers and libraries was builded first with > old make, _then_ the new make is builded. 'make' is not a bootstrap tool > builded first (at -current, I don't check -stable branch) > When I use NanoBSD to build a system image for the ARM, nanobsd.sh invokes the "make" targets in the source tree which I imagine most developers are familiar with; the build system attempts to build "make" first thing in the host's staging area under MAKEOBJDIRPREFIX, as one would normally expect. What is strange about this failure, is the fact that the "buildworld" target does not stop due to the error until after the dependency pass is made over the tree. I traced the problem back in logs to the "make" failing to find arc4random_uniform() during link. Given that it's building a "make" executable for the *host*, not the *target*, I would expect to see this error, as this function doesn't exist in FreeBSD 7.1. It looks to me as if the change to "make" assumes that the FreeBSD 8.x versions of the arc4 library functions are always available, even for cross compilation. This assumption doesn't seem to be robust, and it breaks down in this cross-compilation use case. Can you please advise what the best way to fix this in the source is? It looks as though the change should either be backed out, so the cross-compilation use case is unbroken, or wrapped with a __FreeBSD_version guard. thanks again for all your help BMS From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 01:56:01 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC708106568B for ; Mon, 29 Sep 2008 01:56:01 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 201988FC1A for ; Mon, 29 Sep 2008 01:56:00 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.3/8.14.3) with ESMTP id m8T1tx2c067139; Mon, 29 Sep 2008 05:55:59 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1222653359; bh=GZXMM8VuPYg9o9u33gUXrGF0mQrXw522jeDN1bt +UnY=; l=1857; h=Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=HXSSoQRLnLr/GqnNAUsw7fxl5 qqZ7XqWk7Lp0IRDnuQpHKy3N+H4xSGhr5vkvwHbUOf1CDYVJZuMXV/4aM39euAs+EK/ jaLc9rRGbrmf+ufhYjsg/wRn71YAX1BdBR/ELSyCndIZfpRjXR3I2GdLRu59nyUJ1hc 9QNJ6CVfnBNQ= Received: (from ache@localhost) by nagual.pp.ru (8.14.3/8.14.3/Submit) id m8T1twui067136; Mon, 29 Sep 2008 05:55:58 +0400 (MSD) (envelope-from ache) Date: Mon, 29 Sep 2008 05:55:56 +0400 From: Andrey Chernov To: Bruce M Simpson Message-ID: <20080929015554.GA66575@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Bruce M Simpson , freebsd-embedded@FreeBSD.org References: <48E001DC.9010503@incunabulum.net> <20080929002040.GA64397@nagual.pp.ru> <48E02B0D.9030806@incunabulum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48E02B0D.9030806@incunabulum.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-embedded@FreeBSD.org Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 01:56:01 -0000 On Mon, Sep 29, 2008 at 02:10:37AM +0100, Bruce M Simpson wrote: > Andrey Chernov wrote: > > Please explain, how it may cause problem? In 'make world' or 'make > > buildworld;make installworld' headers and libraries was builded first with > > old make, _then_ the new make is builded. 'make' is not a bootstrap tool > > builded first (at -current, I don't check -stable branch) > > > > When I use NanoBSD to build a system image for the ARM, nanobsd.sh > invokes the "make" targets in the source tree which I imagine most > developers are familiar with; the build system attempts to build "make" > first thing in the host's staging area under MAKEOBJDIRPREFIX, as one > would normally expect. I can't find 'make' in -stable 7 and 6 boostrap tools too. The problem lies in the section which decide to build it first. It is absolutely not needed. Could you please show log or trace down to the section which builds 'make' first? > What is strange about this failure, is the fact that the "buildworld" > target does not stop due to the error until after the dependency pass is > made over the tree. Nothing strange, it works as I explain in the first reply.. > It looks to me as if the change to "make" assumes that the FreeBSD 8.x > versions of the arc4 library functions are always available, even for > cross compilation. This assumption doesn't seem to be robust, and it > breaks down in this cross-compilation use case. It not breaks because all is builded by old 'make' in 6, 7, and 8. New 'make' is not installed until the very final stage. I see no problem with cross-compilation in that way. > Can you please advise what the best way to fix this in the source is? I need to know more specifically the place which builds 'make' first to think about the fix. -- http://ache.pp.ru/ From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 02:06:08 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD7761065686 for ; Mon, 29 Sep 2008 02:06:08 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 51BCE8FC19 for ; Mon, 29 Sep 2008 02:06:08 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.3/8.14.3) with ESMTP id m8T266FE067373; Mon, 29 Sep 2008 06:06:06 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1222653966; bh=XIvS7K6EiQyy+/UxU7Ckmy192xRcqUgidJNYsi2 hcRI=; l=645; h=Date:From:To:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=AnwMl6DF6pbeBjc5alRmIbRKK lrt7HMkY+cA2p88GnPRGyCglxzaNlNJhpFxcmaoP+NleJ/VvACT7RyWcuVvGTSm1LKv 5oOLx+Owk0FNU41y7dmSyckyjGgq82OO8ZrJI1sWcAJf1MPS0BJw3aQofsc7TPdPDCY 8fFtyDpWp1AU= Received: (from ache@localhost) by nagual.pp.ru (8.14.3/8.14.3/Submit) id m8T266V4067372; Mon, 29 Sep 2008 06:06:06 +0400 (MSD) (envelope-from ache) Date: Mon, 29 Sep 2008 06:06:06 +0400 From: Andrey Chernov To: Bruce M Simpson , freebsd-embedded@FreeBSD.org Message-ID: <20080929020606.GA67341@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Bruce M Simpson , freebsd-embedded@FreeBSD.org References: <48E001DC.9010503@incunabulum.net> <20080929002040.GA64397@nagual.pp.ru> <48E02B0D.9030806@incunabulum.net> <20080929015554.GA66575@nagual.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080929015554.GA66575@nagual.pp.ru> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 02:06:08 -0000 On Mon, Sep 29, 2008 at 05:55:56AM +0400, Andrey Chernov wrote: > > It looks to me as if the change to "make" assumes that the FreeBSD 8.x > > versions of the arc4 library functions are always available, even for > > cross compilation. This assumption doesn't seem to be robust, and it > > breaks down in this cross-compilation use case. > > It not breaks because all is builded by old 'make' in 6, 7, and 8. New > 'make' is not installed until the very final stage. I see no problem with > cross-compilation in that way. I just check cross-tools list in 6, 7 and 8 and not found 'make' there too. -- http://ache.pp.ru/ From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 02:41:52 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9EDF106568D for ; Mon, 29 Sep 2008 02:41:52 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.freebsd.org (Postfix) with ESMTP id 9E9F38FC17 for ; Mon, 29 Sep 2008 02:41:52 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id D99ED1702C6; Sun, 28 Sep 2008 22:41:51 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sun, 28 Sep 2008 22:41:51 -0400 X-Sasl-enc: uXTlnce8AY1icNIIw0jdqTrcUy1QpdeLYjQ2wi3RrNbX 1222656111 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 4BEDF3B99D; Sun, 28 Sep 2008 22:41:51 -0400 (EDT) Message-ID: <48E0406E.3030409@incunabulum.net> Date: Mon, 29 Sep 2008 03:41:50 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: Andrey Chernov , Bruce M Simpson , freebsd-embedded@FreeBSD.org References: <48E001DC.9010503@incunabulum.net> <20080929002040.GA64397@nagual.pp.ru> <48E02B0D.9030806@incunabulum.net> <20080929015554.GA66575@nagual.pp.ru> In-Reply-To: <20080929015554.GA66575@nagual.pp.ru> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 02:41:52 -0000 Andrey Chernov wrote: > I need to know more specifically the place which builds 'make' first > to think about the fix. > The failure occurs during the "Building an up-to-date make" stage of buildworld, it is being invoked by nanobsd.sh. From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 06:30:34 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 411F71065689 for ; Mon, 29 Sep 2008 06:30:34 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from mail.vega.ru (infra.dev.vega.ru [90.156.167.14]) by mx1.freebsd.org (Postfix) with ESMTP id E9DB08FC16 for ; Mon, 29 Sep 2008 06:30:33 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from [87.242.97.68] (port=62349 helo=edoofus.dev.vega.ru) by mail.vega.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1KkByO-0005fU-55; Mon, 29 Sep 2008 06:11:08 +0000 Date: Mon, 29 Sep 2008 10:10:57 +0400 From: Ruslan Ermilov To: Andrey Chernov , Bruce M Simpson , freebsd-embedded@FreeBSD.org Message-ID: <20080929061057.GB57821@edoofus.dev.vega.ru> References: <48E001DC.9010503@incunabulum.net> <20080929002040.GA64397@nagual.pp.ru> <48E02B0D.9030806@incunabulum.net> <20080929015554.GA66575@nagual.pp.ru> <20080929020606.GA67341@nagual.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080929020606.GA67341@nagual.pp.ru> Cc: Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 06:30:34 -0000 Hi, On Mon, Sep 29, 2008 at 06:06:06AM +0400, Andrey Chernov wrote: > On Mon, Sep 29, 2008 at 05:55:56AM +0400, Andrey Chernov wrote: > > > It looks to me as if the change to "make" assumes that the FreeBSD 8.x > > > versions of the arc4 library functions are always available, even for > > > cross compilation. This assumption doesn't seem to be robust, and it > > > breaks down in this cross-compilation use case. > > > > It not breaks because all is builded by old 'make' in 6, 7, and 8. New > > 'make' is not installed until the very final stage. I see no problem with > > cross-compilation in that way. > > I just check cross-tools list in 6, 7 and 8 and not found 'make' there > too. > The first thing buildworld does is to check if a passed instance of `make' is good enough; if not, it's bootstrapped -- built and used later in the process. It's handled by the `upgrade_checks' target in src/Makefile which buildworld depends on. An ability to compile the latest make on the lowest supported version of FreeBSD is a requirement of our build procedure. If your change doesn't meet it, you should really think of either backing it out, or making it compile and work. For RELENG_7 it's currently FreeBSD 5.3, for HEAD -- FreeBSD 6.0. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 11:06:48 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC6CA1065688 for ; Mon, 29 Sep 2008 11:06:48 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9AF428FC20 for ; Mon, 29 Sep 2008 11:06:48 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m8TB6mXx040755 for ; Mon, 29 Sep 2008 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m8TB6mpH040751 for freebsd-embedded@FreeBSD.org; Mon, 29 Sep 2008 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Sep 2008 11:06:48 GMT Message-Id: <200809291106.m8TB6mpH040751@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 11:06:49 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/101228 embedded [nanobsd] [patch] Two more entries for FlashDevice.sub o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c o misc/15876 embedded [picobsd] PicoBSD message of the day problems 4 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 11:32:00 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2107106568B for ; Mon, 29 Sep 2008 11:32:00 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id C593E8FC20 for ; Mon, 29 Sep 2008 11:32:00 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 47481171664; Mon, 29 Sep 2008 07:32:00 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 29 Sep 2008 07:32:00 -0400 X-Sasl-enc: dgSTyS+JmSexrUVqKzYE+vWUdxgGydWxsEq3PztUBK+7 1222687919 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id A2A4229B06; Mon, 29 Sep 2008 07:31:59 -0400 (EDT) Message-ID: <48E0BCAE.9070508@incunabulum.net> Date: Mon, 29 Sep 2008 12:31:58 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: Andrey Chernov , Bruce M Simpson , freebsd-embedded@FreeBSD.org References: <48E001DC.9010503@incunabulum.net> <20080929002040.GA64397@nagual.pp.ru> <48E02B0D.9030806@incunabulum.net> <20080929015554.GA66575@nagual.pp.ru> <48E0406E.3030409@incunabulum.net> In-Reply-To: <48E0406E.3030409@incunabulum.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 11:32:01 -0000 Bruce M Simpson wrote: > Andrey Chernov wrote: >> I need to know more specifically the place which builds 'make' first >> to think about the fix. >> > > The failure occurs during the "Building an up-to-date make" stage of > buildworld, it is being invoked by nanobsd.sh. > I can't supply logs from the nanobsd build unfortunately, the error has disappeared since I manually backed out the rev from my SVN checkout. If I have time to spare, which is unlikely, I can try to reproduce w/logs. However, the error message is almost identical to an earlier report involving the tinderbox, so this may be enough for you to go on: http://kerneltrap.org/mailarchive/freebsd-current/2008/8/7/2855624 I believe Tinderbox in this case is also being used to drive a cross-compile. Ruslan has explained why and how "make" is being rebuilt, for 7.1->8.x cross compiles this is indeed what's happening. it would be great to get this sorted, it seems likely to bite other folk. cheers BMS From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 15:43:27 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A09EB1065692 for ; Mon, 29 Sep 2008 15:43:27 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 13E0F8FC0C for ; Mon, 29 Sep 2008 15:43:26 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.3/8.14.3) with ESMTP id m8TFhPvL087870; Mon, 29 Sep 2008 19:43:25 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1222703005; bh=OVfvLhNS9gg5d1uGQ4DPQ7ActqtQB8pewpMXb29 hYCM=; l=628; h=Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=Xsa/+VEo8VzUX5JDn5GO+GY2T Th/mIjWhuF8k8JMC2C/dMzQ4qRhM4BjT6SQ++n0GpvGofU5jNO7DdFY8KB5NPfnImXT HpczZATmoMWbJwlNa/XKQUyA3UJL8BF287/dDpZiDIe9QvaVBta8SBplJavU1+4MeNv RLJfcuwhJqW4= Received: (from ache@localhost) by nagual.pp.ru (8.14.3/8.14.3/Submit) id m8TFhNvq087869; Mon, 29 Sep 2008 19:43:23 +0400 (MSD) (envelope-from ache) Date: Mon, 29 Sep 2008 19:43:21 +0400 From: Andrey Chernov To: Bruce M Simpson Message-ID: <20080929154320.GA87747@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Bruce M Simpson , freebsd-embedded@FreeBSD.org References: <48E001DC.9010503@incunabulum.net> <20080929002040.GA64397@nagual.pp.ru> <48E02B0D.9030806@incunabulum.net> <20080929015554.GA66575@nagual.pp.ru> <48E0406E.3030409@incunabulum.net> <48E0BCAE.9070508@incunabulum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48E0BCAE.9070508@incunabulum.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-embedded@FreeBSD.org Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 15:43:27 -0000 On Mon, Sep 29, 2008 at 12:31:58PM +0100, Bruce M Simpson wrote: > However, the error message is almost identical to an earlier report > involving the tinderbox, so this may be enough for you to go on: > > http://kerneltrap.org/mailarchive/freebsd-current/2008/8/7/2855624 > > I believe Tinderbox in this case is also being used to drive a > cross-compile. Ruslan has explained why and how "make" is being rebuilt, > for 7.1->8.x cross compiles this is indeed what's happening. This is completely different case and already fixed. strfile is in bootstrap tools but make is not. -- http://ache.pp.ru/ From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 15:55:37 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDE7E1065691; Mon, 29 Sep 2008 15:55:37 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 3E3668FC19; Mon, 29 Sep 2008 15:55:36 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.3/8.14.3) with ESMTP id m8TFtZl7088222; Mon, 29 Sep 2008 19:55:35 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1222703735; bh=Z0hv2p3LIy7PfdouDzRtzBVfTY6k5LnorjllvKw QBSg=; l=453; h=Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=QqdYQV0bD0lYCuhW4uWSjtZ7U L/4rTkuA4lZpoosBAz8HphKgFTPg3G/cV0NBvTt62jLSTltlgtbSwTZkwNfRGL94gXv IHE9WxyosWirKaoNK3oLSje2FMUpdCq/GucVUM78MpaC2vOeZ2IqENxfL/fhWTdF8Te 32rWdclq3jUE= Received: (from ache@localhost) by nagual.pp.ru (8.14.3/8.14.3/Submit) id m8TFtZYr088221; Mon, 29 Sep 2008 19:55:35 +0400 (MSD) (envelope-from ache) Date: Mon, 29 Sep 2008 19:55:34 +0400 From: Andrey Chernov To: Ruslan Ermilov Message-ID: <20080929155533.GB87747@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Ruslan Ermilov , Bruce M Simpson , freebsd-embedded@FreeBSD.org References: <48E001DC.9010503@incunabulum.net> <20080929002040.GA64397@nagual.pp.ru> <48E02B0D.9030806@incunabulum.net> <20080929015554.GA66575@nagual.pp.ru> <20080929020606.GA67341@nagual.pp.ru> <20080929061057.GB57821@edoofus.dev.vega.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080929061057.GB57821@edoofus.dev.vega.ru> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-embedded@FreeBSD.org Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 15:55:37 -0000 On Mon, Sep 29, 2008 at 10:10:57AM +0400, Ruslan Ermilov wrote: > The first thing buildworld does is to check if a passed instance of > `make' is good enough; if not, it's bootstrapped -- built and used > later in the process. It's handled by the `upgrade_checks' target > in src/Makefile which buildworld depends on. Ah, 'upgrade_checks' is the problem. Then simple ifdefing with __FreeBSD_version will be enough. -- http://ache.pp.ru/ From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 16:14:33 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25F311065695 for ; Mon, 29 Sep 2008 16:14:33 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 8DEFE8FC0C for ; Mon, 29 Sep 2008 16:14:32 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.3/8.14.3) with ESMTP id m8TGEVdu088775; Mon, 29 Sep 2008 20:14:31 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1222704871; bh=I99SmYr/LYwcKv4WSV4taEpSVwO+oTlQtB3BGsD yzkA=; l=383; h=Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=PUBUHT+JzeSvtlQ/otAZUW2Gz 9oospY3E1xK8vtNdSnRyw1/D709x8tvSZxkfViCUdShlRYul+27zxx8iT21jhTnaeDQ mI3P5aEblcifA99NW+J5kS6fjQaf4hWuhSaOoombVMEAPW5Jb+X1932oprR8Xt3NwrP CDsO/TSo39io= Received: (from ache@localhost) by nagual.pp.ru (8.14.3/8.14.3/Submit) id m8TGEUHh088774; Mon, 29 Sep 2008 20:14:31 +0400 (MSD) (envelope-from ache) Date: Mon, 29 Sep 2008 20:14:30 +0400 From: Andrey Chernov To: Bruce M Simpson Message-ID: <20080929161430.GC87747@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Bruce M Simpson , freebsd-embedded@FreeBSD.org References: <48E001DC.9010503@incunabulum.net> <20080929002040.GA64397@nagual.pp.ru> <48E02B0D.9030806@incunabulum.net> <20080929015554.GA66575@nagual.pp.ru> <48E0406E.3030409@incunabulum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48E0406E.3030409@incunabulum.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-embedded@FreeBSD.org Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 16:14:33 -0000 On Mon, Sep 29, 2008 at 03:41:50AM +0100, Bruce M Simpson wrote: > Andrey Chernov wrote: > > I need to know more specifically the place which builds 'make' first > > to think about the fix. > > > > The failure occurs during the "Building an up-to-date make" stage of > buildworld, it is being invoked by nanobsd.sh. I just commit the fix. -- http://ache.pp.ru/ From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 29 22:11:37 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD11E106568D for ; Mon, 29 Sep 2008 22:11:37 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id B0DC28FC19 for ; Mon, 29 Sep 2008 22:11:37 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 0EB841717EC; Mon, 29 Sep 2008 18:11:37 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 29 Sep 2008 18:11:37 -0400 X-Sasl-enc: Q12VO4rmSybwnL6uLZWf6kkqhgg6EArMvEsphL0aLZOs 1222726296 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 52E9A2C1C0; Mon, 29 Sep 2008 18:11:36 -0400 (EDT) Message-ID: <48E15296.6090504@incunabulum.net> Date: Mon, 29 Sep 2008 23:11:34 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: Andrey Chernov , Bruce M Simpson , freebsd-embedded@FreeBSD.org References: <48E001DC.9010503@incunabulum.net> <20080929002040.GA64397@nagual.pp.ru> <48E02B0D.9030806@incunabulum.net> <20080929015554.GA66575@nagual.pp.ru> <48E0406E.3030409@incunabulum.net> <20080929161430.GC87747@nagual.pp.ru> In-Reply-To: <20080929161430.GC87747@nagual.pp.ru> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: r181397 of src/usr.bin/make/job.c breaks cross-compiles X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 22:11:37 -0000 Andrey Chernov wrote: > On Mon, Sep 29, 2008 at 03:41:50AM +0100, Bruce M Simpson wrote: > >> The failure occurs during the "Building an up-to-date make" stage of >> buildworld, it is being invoked by nanobsd.sh. >> > > I just commit the fix. > > Thanks for taking the time to look at this, I really appreciate it. cheers, BMS