From owner-freebsd-current@FreeBSD.ORG Mon May 24 10:15:09 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 EB53A1065762 for ; Mon, 24 May 2010 10:15:09 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pz0-f175.google.com (mail-pz0-f175.google.com [209.85.222.175]) by mx1.freebsd.org (Postfix) with ESMTP id BB6048FC0C for ; Mon, 24 May 2010 10:15:09 +0000 (UTC) Received: by pzk5 with SMTP id 5so1548629pzk.14 for ; Mon, 24 May 2010 03:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=kLWN/O5/1+nFa7CZkdxMU0q7nYUgZST4+DxENa5Cxbw=; b=Gt/aaY9rU9m8S8nzF5whPX62FBy1ZRLzt3VOZLVX8EnyCtRN65Xk3LNI73ntQ1rXVt KUDIXysZiOA/m1AUKS19VwJ4mexVKeQtEHRHjB5eE5gDySgwxC33/LohiPAIV3of03zr PyeXr43cVE21USVEY5mjQ3ZlvGpQwaT345VfE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=m0iZfFCAxEV8PeA1C9kMq1oKzSG3GTt3868jHkx2fGW6lrT8OSBnXE/EnMfgBlnjDG Oy3zrB1zXKVSlQ1mZ3pgSaRh1nIzdL8cDJCVvI44JG4PHOXF1fmG0OzeGN2OiCexrlON j6o1BnNZsX3/Kbz9mzdZDkcDjGHcXyu0HMZKM= Received: by 10.115.117.38 with SMTP id u38mr4639651wam.168.1274694686755; Mon, 24 May 2010 02:51:26 -0700 (PDT) Received: from [192.168.0.204] (deviant.freebsdgirl.com [173.8.183.73]) by mx.google.com with ESMTPS id c22sm37041181wam.18.2010.05.24.02.51.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 May 2010 02:51:25 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Garrett Cooper In-Reply-To: Date: Mon, 24 May 2010 02:51:23 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <3A68039C-BECD-47C0-89EE-45E3FB7C8D90@gmail.com> References: <20100524.134955.2300883222251175323.okuno.kohji@jp.panasonic.com> To: pluknet X-Mailer: Apple Mail (2.1078) X-Mailman-Approved-At: Mon, 24 May 2010 11:14:22 +0000 Cc: freebsd-current@freebsd.org, Kohji Okuno 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 10:15:10 -0000 On May 24, 2010, at 2:49 AM, pluknet wrote: > On 24 May 2010 08:49, Kohji Okuno = wrote: >> Hi all, >>=20 >> I want to compile 32bit binary on amd64, but I met with the problem. >> Could you teach me the best solution, please? >>=20 >>=20 >> My environment is FreeBSD 8.1-PRERELEASE #0: Tue May 18 12:01:26 JST = 2010. >>=20 >> I compiled and executed test.c as below on amd64. >>=20 > [...] >>=20 >> % gcc -m32 -B/usr/lib32 test.c >> % ./a.out >> mmap: Invalid argument >=20 > 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 -m32 is busted on FreeBSD; I don't remember the full details but I think = it had something to do with the linking stage of things... Thanks, -Garrett=