From owner-freebsd-amd64@FreeBSD.ORG Fri Dec 9 17:34:11 2005 Return-Path: X-Original-To: freebsd-amd64@FreeBSD.org 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 4921E16A420; Fri, 9 Dec 2005 17:34:11 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7708A43D5D; Fri, 9 Dec 2005 17:34:02 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.4/8.13.4) with ESMTP id jB9HXuXo064948; Fri, 9 Dec 2005 09:33:56 -0800 (PST) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.4/8.13.1/Submit) id jB9HXu1A064947; Fri, 9 Dec 2005 09:33:56 -0800 (PST) (envelope-from obrien) Date: Fri, 9 Dec 2005 09:33:56 -0800 From: "David O'Brien" To: Ruslan Ermilov Message-ID: <20051209173356.GB64803@dragon.NUXI.org> References: <20051207084939.GE63887@ip.net.ua> <20051207231539.GA29443@dragon.NUXI.org> <20051208062211.GF51156@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051208062211.GF51156@ip.net.ua> X-Operating-System: FreeBSD 7.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.11 Cc: freebsd-amd64@FreeBSD.org Subject: Re: [ru@FreeBSD.org: install32] X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@FreeBSD.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:34:11 -0000 On Thu, Dec 08, 2005 at 08:22:11AM +0200, Ruslan Ermilov wrote: > On Wed, Dec 07, 2005 at 03:15:39PM -0800, David O'Brien wrote: > > On Wed, Dec 07, 2005 at 10:49:39AM +0200, Ruslan Ermilov wrote: > > > Forwarding this to the list since Peter doesn't reply. If you > > > have an opinion on the subject, please reply. > > .. > > > > . Makefile.inc1 > > > > share/mk bsd.lib.mk bsd.prog.mk > > > > Log: > > > > Add the NO_INCS knob to bsd.prog.mk and bsd.lib.mk to not include > > > > bsd.incs.mk, and use it when installing 32-bit compat libraries > > > > on amd64. This causes it to *not* overwrite native headers with > > > > i386 versions, which was the case with and . > > .. > > > This commit fixes a breakage but also raises the following question. > > > If we don't install headers, do we need anything except 32-bit rtld > > > and shared libraries? Currently, we also install .a libraries, .o > > > objects, and some data files. > > > > At the moment we don't support building 32-bit binaries on a 64-bit host. > > So we don't want .a's and .o's installed. > > Well, we do (to some extent), but I'm not sure if we want it or not: We don't support it. Peroid. > : $ uname -p > : amd64 > : $ cat a.c > : #include > : int main(void) { printf("Hello, world!\n"); return (0); } > : $ cc -m32 -B/usr/lib32 -L/usr/lib32 -o a a.c > : $ file a > : a: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), not stripped > : $ ./a > : Hello, world! This only worked because you didn't use any data types for which the amd64 and i386 headers differ. -- -- David (obrien@FreeBSD.org) Q: Because it reverses the logical flow of conversation. A: Why is top-posting (putting a reply at the top of the message) frowned upon?