Re: About 32bit binary on amd64
- From: Kostik Belousov <kostikbel@xxxxxxxxx>
- Date: Mon, 24 May 2010 13:36:21 +0300
On Mon, May 24, 2010 at 06:58:56PM +0900, Kohji Okuno wrote:
Thank you for your comments.The patch is probably a start in the right direction. But, it would be
In my usage, it works good by the patch appended to this mail.
much better to install sys/i386/include to e.g. /usr/include/machine32
and use the pristine i386 files instead of copying them.
Are you interested in going further with the approach ?
Thanks.
On May 24, 2010, at 2:49 AM, pluknet wrote:
On 24 May 2010 08:49, Kohji Okuno <okuno.kohji@xxxxxxxxxxxxxxxx> 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
-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
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
Attachment:
pgpvkp2pwikBB.pgp
Description: PGP signature
- References:
- About 32bit binary on amd64
- From: Kohji Okuno
- Re: About 32bit binary on amd64
- From: pluknet
- Re: About 32bit binary on amd64
- From: Garrett Cooper
- Re: About 32bit binary on amd64
- From: Kohji Okuno
- About 32bit binary on amd64
- Prev by Date: Re: About 32bit binary on amd64
- Next by Date: Re: About 32bit binary on amd64
- Previous by thread: Re: About 32bit binary on amd64
- Index(es):
Relevant Pages
|