From owner-freebsd-current@FreeBSD.ORG Mon May 24 09:49:38 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EBAF1065672 for ; Mon, 24 May 2010 09:49:38 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id C127E8FC1F for ; Mon, 24 May 2010 09:49:37 +0000 (UTC) Received: by gyh20 with SMTP id 20so1853694gyh.13 for ; Mon, 24 May 2010 02:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=ZPs3lpKo53GRjZBVxSsRExiyos0rUvpv17SBMaR/wbU=; b=cLBxvO+24/6/IXYf1HQy1kKUYrOxjLxTu5U4O1FM9kZsDYI6b9WSuMPeUZlZWI7ISu ZfdQVju153OYAgVPrO7MNYcARcwU4k1h0QC0C4S6q+dlmj3waRpl9pM5o0GWgpELsJvs CZGR/k+kGTCfrHWAzxE/7Y0EfUJpvvoekgFNU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pTJTLUsqgW7zyRKCrQmnxXLbPyyQqe6PXu8mBgNAoXZmL1rO/cQd59pmgogg7tReZg Y7kolCQ0DpGj6VaTRLV+2S8/yUEyiAUT0UIvyT3rj1R6+BFOCQbV9QSRyksNtPfYLsyD Jq32/34rdaGYpSu4ITR2zj58m0aVP0vGm+MJU= MIME-Version: 1.0 Received: by 10.101.10.34 with SMTP id n34mr5679589ani.109.1274694576748; Mon, 24 May 2010 02:49:36 -0700 (PDT) Received: by 10.100.208.9 with HTTP; Mon, 24 May 2010 02:49:36 -0700 (PDT) In-Reply-To: <20100524.134955.2300883222251175323.okuno.kohji@jp.panasonic.com> References: <20100524.134955.2300883222251175323.okuno.kohji@jp.panasonic.com> Date: Mon, 24 May 2010 13:49:36 +0400 Message-ID: From: pluknet To: Kohji Okuno Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org Subject: Re: About 32bit binary on amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2010 09:49:38 -0000 On 24 May 2010 08:49, Kohji Okuno wrote: > Hi all, > > I want to compile 32bit binary on amd64, but I met with the problem. > Could you teach me the best solution, please? > > > My environment is FreeBSD 8.1-PRERELEASE #0: Tue May 18 12:01:26 JST 2010. > > I compiled and executed test.c as below on amd64. > [...] > > % gcc -m32 -B/usr/lib32 test.c > % ./a.out > mmap: Invalid argument AFAIK, it still doesn't work on FreeBSD. You need something like 32bit chroot environment. There's also about: http://www.freebsd.org/projects/ideas/#p-freebsd-amd64-gcc-m32 -- wbr, pluknet