From owner-freebsd-amd64@FreeBSD.ORG Thu Sep 30 18:44:21 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3B5A16A4CE for ; Thu, 30 Sep 2004 18:44:21 +0000 (GMT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8959D43D39 for ; Thu, 30 Sep 2004 18:44:19 +0000 (GMT) (envelope-from peter@evilpete.dyndns.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id 5EF6D2A8D5 for ; Thu, 30 Sep 2004 11:44:19 -0700 (PDT) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id E678AE2B3 for ; Thu, 30 Sep 2004 11:44:18 -0700 (PDT) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (8.12.11/8.12.11) with ESMTP id i8UIiIqY087550; Thu, 30 Sep 2004 11:44:18 -0700 (PDT) (envelope-from peter@overcee.wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by overcee.wemm.org (8.12.11/8.12.11/Submit) id i8UIiDN1087549; Thu, 30 Sep 2004 11:44:13 -0700 (PDT) (envelope-from peter) From: Peter Wemm To: freebsd-amd64@freebsd.org, rob2@pythonemproject.com Date: Thu, 30 Sep 2004 11:44:12 -0700 User-Agent: KMail/1.6.1 References: <415C3C61.1010705@pythonemproject.com> In-Reply-To: <415C3C61.1010705@pythonemproject.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409301144.13174.peter@wemm.org> Subject: Re: grub port question X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 18:44:21 -0000 On Thursday 30 September 2004 10:03 am, Rob wrote: > I was going to try to use grub for booting from my multidisk system, > as I was told that the bootup process is done in i386, then it is > transfered to 64 bit mode. So grub works OK. But last nite I tried > to install grub from ports and got the message immediately > (paraphrasing) "that I could not compile a 32 bit application on a 64 > bit OS." > > So now I'm really confused LOL. In a nutshell, the toolchain has various flags/switches to control its operating mode. For example, gcc has -m32 and -m64. The catch is that we do not install the 32 bit version of the include files yet. And you have to use tools/lib32/build32.sh to build the 32 bit libraries. The rest of the toolchain has various mode switches. eg: as --32 etc. gcc could be slightly tweaked to use the correct include and library paths, but for now it needs horrible -I and -L switches. However, the port problem is that it doesn't know any of these magic options. I hate to say it, but the easiest thing is probably to just fetch the i386 package for now. If pkg_add won't do it, then it should be possible to extract the tarball by hand and do the deed. Not pretty, I know. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5