Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2010 13:49:36 +0400
From:      pluknet <pluknet@gmail.com>
To:        Kohji Okuno <okuno.kohji@jp.panasonic.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: About 32bit binary on amd64
Message-ID:  <AANLkTil8H-13it7Rij6eETImyiB1pmjZYx7V5SafIc-0@mail.gmail.com>
In-Reply-To: <20100524.134955.2300883222251175323.okuno.kohji@jp.panasonic.com>
References:  <20100524.134955.2300883222251175323.okuno.kohji@jp.panasonic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 24 May 2010 08:49, Kohji Okuno <okuno.kohji@jp.panasonic.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTil8H-13it7Rij6eETImyiB1pmjZYx7V5SafIc-0>