From owner-freebsd-questions@FreeBSD.ORG Tue Aug 10 02:24:13 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 DE6F51065674 for ; Tue, 10 Aug 2010 02:24:13 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 77DEE8FC18 for ; Tue, 10 Aug 2010 02:24:13 +0000 (UTC) Received: by wwb13 with SMTP id 13so784671wwb.31 for ; Mon, 09 Aug 2010 19:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to:date :message-id:subject:from:to:cc:content-type; bh=g1xnzibFD7jNpA2jZNuqlVOIIIdYrTq9dBva6/Xrxhs=; b=CnK5PF2keHBWumkj24/3ZK+FF9DvYf4AxkhP8P3eXzwSbnO+RyX7TGcNQ8JIGLJ+SS pJRwgIctimPQ/KbWud9PcSPRvGEMO05zdyWa4lqtSPpWLpmH49fwZ1/3hArZfU19EmpV VcxD7QOiiFpRvgHa31hufGCsp1u/DuKQD1AgU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=gOAQPPIOESJKt11VNmXgovR7Kh2KCqdk+jI3NwwFNsM7Moe+sPl01cgqUE9+yz19Zv mQoX9dSWBPw0e3daQebcDqOdYRl4ZtJhuHmpKf81aL1cMGk0LmjupxPqUHLadmr4ZYwG xgPfdFgYjaVzi/t7eJPu7WEgU3P6vS02kQvN8= MIME-Version: 1.0 Received: by 10.216.47.196 with SMTP id t46mr2234593web.13.1281407052316; Mon, 09 Aug 2010 19:24:12 -0700 (PDT) Received: by 10.216.183.212 with HTTP; Mon, 9 Aug 2010 19:24:12 -0700 (PDT) Date: Tue, 10 Aug 2010 02:24:12 +0000 Message-ID: From: "b. f." To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Depo Catcher Subject: Re: amd64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2010 02:24:13 -0000 >On 8/9/2010 4:14 PM, Robert Huff wrote: >> Polytropon writes: >> >> >>> > I've installed FreeBSD-amd64. It runs very well. The packages I fetch >>> > are amd64 too, but what about the ports I compile myself? Are those >>> > amd64 too? >>> >>> Yes, as your compiler infrastructure and target platform >>> is amd64, and so is the resulting binary code. >>> > >How does it know your are on amd64? gcc auto detect of CPU? As the other person wrote, the base system compiler suite and other base system utilities are configured and compiled to build and use "amd64" binaries by default. There is only limited support for cross-building: on amd64, for example, there are some provisions for building and using 32-bit, "i386" binaries; and the base system sources have some limited support for cross-building for other architectures, by setting certain variables in the build environment. In general, one cannot just build and use any binaries on a given architecture. b.