From owner-freebsd-questions@FreeBSD.ORG Mon Oct 4 23:18:34 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04F351065694 for ; Mon, 4 Oct 2010 23:18:34 +0000 (UTC) (envelope-from emailrob@emailrob.com) Received: from mx01.dls.net (mx01.dls.net [216.145.245.197]) by mx1.freebsd.org (Postfix) with ESMTP id D8D818FC1D for ; Mon, 4 Oct 2010 23:18:33 +0000 (UTC) Received: from [216.145.235.31] (helo=emailrob.com) by mx01.dls.net with esmtp (Exim 4.69) (envelope-from ) id 1P2uIh-0001XM-90; Mon, 04 Oct 2010 18:18:32 -0500 Message-ID: <4CAA52B6.1020707@emailrob.com> Date: Mon, 04 Oct 2010 23:18:30 +0100 From: spellberg_robert User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson , fbsd_questions References: <4CAA3030.3090001@emailrob.com> <4CAA3CFE.1060609@emailrob.com> <20101004225757.GK40148@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: [fbsd_questions] i386 vs amd64, on intel_64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 23:18:34 -0000 aha ! this relates to what i found in , on my existing i386 version of freebsd on my intel_64 hardware platform. i will look into the "questions" archive. meanwhile, back at the ranch, does this mean that i need the "amd64" version of freebsd to get the right headers ? Dan Nelson wrote: > In the last episode (Oct 04), David Brodbeck said: > >>On a 64-bit system, if you build a binary with the -m32 flag, it >>should run on both i386 and x86-64 systems. A binary built with -m64 >>will only run on x86-64. Does that help? > > > Actually, -m32 on amd64 won't generate usable binaries, since > /usr/include/machine/* are all amd64 headers and you end up with things like > struct FILE with wrong-size elements. There was a thread a few weeks ago > discussing this. If you need to generate 32-bit executables, you'll need to > do it inside an all-32-bit chroot or a virtual machine. >