Date: Mon, 24 May 2010 02:51:23 -0700 From: Garrett Cooper <yaneurabeya@gmail.com> To: pluknet <pluknet@gmail.com> Cc: freebsd-current@freebsd.org, Kohji Okuno <okuno.kohji@jp.panasonic.com> Subject: Re: About 32bit binary on amd64 Message-ID: <3A68039C-BECD-47C0-89EE-45E3FB7C8D90@gmail.com> In-Reply-To: <AANLkTil8H-13it7Rij6eETImyiB1pmjZYx7V5SafIc-0@mail.gmail.com> References: <20100524.134955.2300883222251175323.okuno.kohji@jp.panasonic.com> <AANLkTil8H-13it7Rij6eETImyiB1pmjZYx7V5SafIc-0@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On May 24, 2010, at 2:49 AM, pluknet wrote: > On 24 May 2010 08:49, Kohji Okuno <okuno.kohji@jp.panasonic.com> = 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=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A68039C-BECD-47C0-89EE-45E3FB7C8D90>