From owner-freebsd-amd64@FreeBSD.ORG Mon Jan 28 23:09:16 2008 Return-Path: <owner-freebsd-amd64@FreeBSD.ORG> Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 005E416A503 for <freebsd-amd64@freebsd.org>; Mon, 28 Jan 2008 23:09:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 9CD5813C442 for <freebsd-amd64@freebsd.org>; Mon, 28 Jan 2008 23:09:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8s) with ESMTP id 230036711-1834499 for multiple; Mon, 28 Jan 2008 18:09:04 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m0SN8iU4087147; Mon, 28 Jan 2008 18:09:03 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin <jhb@freebsd.org> To: "Steven Hartland" <killing@multiplay.co.uk> Date: Mon, 28 Jan 2008 16:14:21 -0500 User-Agent: KMail/1.9.7 References: <07bb01c85f68$04f85440$b6db87d4@multiplay.co.uk> <200801251503.29219.jhb@freebsd.org> <000f01c85fa6$0d0dd7c0$b6db87d4@multiplay.co.uk> In-Reply-To: <000f01c85fa6$0d0dd7c0$b6db87d4@multiplay.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801281614.21988.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 28 Jan 2008 18:09:03 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/5588/Mon Jan 28 16:24:15 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-amd64@freebsd.org Subject: Re: Cross build of i386 on 7.0 fails X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform <freebsd-amd64.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-amd64>, <mailto:freebsd-amd64-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-amd64> List-Post: <mailto:freebsd-amd64@freebsd.org> List-Help: <mailto:freebsd-amd64-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-amd64>, <mailto:freebsd-amd64-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 28 Jan 2008 23:09:16 -0000 On Friday 25 January 2008 06:00:16 pm Steven Hartland wrote: > > ----- Original Message ----- > From: "John Baldwin" <jhb@freebsd.org> > > On Friday 25 January 2008 10:36:14 am Steven Hartland wrote: > >> I'm sure I must be missing something simple but I've searched google > >> and the mail archives and cant find the answer to this. > >> > >> When trying to build i386 targets in amd64 buildkernel fails with the > >> following:- > >> > make buildkernel TARGET=i386 > >> .... > >> >>> stage 3.1: making dependencies > >> ... > >> /usr/src/sys/i386/i386/genassym.c:1: error: -mpreferred-stack-boundary=2 is > > not between 4 and 12 > >> > >> What I think is happening is that something is still working as though > >> I want amd64 bins and hence the error. Is this the case? What am I > >> missing? > > > > Did you do 'make TARGET=i386 kernel-toolchain' (or buildworld or toolchain) > > first? > > Nope, that fixed it thanks a lot! > > On standard builds that step seems to be done automatically? So is there > a missing dependency / check when cross building? Well, standard builds are allowed to fall back to using the regular tools on the box (e.g. /usr/bin/make). Perhaps that shouldn't happen for cross-builds. cc'ing ru@ as he would know better about that than I. Maybe TMPPATH should just be STRICTTMPPATH if TARGET is set? > Now I know that option searching for kernel-toolchain turned up the information > in "man build" which seems to have similar but more info than the header of:- > /usr/src/Makefile > > It might be nice to have a reference "man build" in the header to help others > who try to do the same thing and ensure they don't hit the same brick wall I > did. Something like this perhaps? (ru@, I'll leave it to you to figure out a better way/place to do this): Index: Makefile =================================================================== RCS file: /usr/cvs/src/Makefile,v retrieving revision 1.344 diff -u -r1.344 Makefile --- Makefile 13 Dec 2007 00:08:02 -0000 1.344 +++ Makefile 28 Jan 2008 21:09:04 -0000 @@ -75,6 +75,8 @@ # developer convenience only. They are intentionally not documented and # completely subject to change without notice. # +# For more information, see the build(7) manual page. +# TGTS= all all-man buildenv buildenvvars buildkernel buildworld \ check-old check-old-dirs check-old-files check-old-libs \ checkdpadd clean cleandepend cleandir \ -- John Baldwin