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/