Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2007 03:13:32 +0000
From:      Hugo Silva <hugo@barafranca.com>
To:        freebsd-stable@freebsd.org
Cc:        Peter Jeremy <peterjeremy@optushome.com.au>
Subject:   Re: More issues with 7.0-BETA4
Message-ID:  <4760A35C.1010502@barafranca.com>
In-Reply-To: <20071212180349.GQ11310@server.vk2pj.dyndns.org>
References:  <475DADF7.6020702@yahoo.com> <fjlu5n$qc4$1@ger.gmane.org> <475EA859.7000407@yahoo.com> <9bbcef730712110815g34adb0dfv8fe89dbb52225cb3@mail.gmail.com> <475F2D07.2080205@barafranca.com> <20071212180349.GQ11310@server.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Jeremy wrote:
> On Wed, Dec 12, 2007 at 12:36:23AM +0000, Hugo Silva wrote:
>   
>> Building 32 bit binaries on amd64 apparently isn't working:
>>
>> # cc -m64 -march=k8 -o test64 test.c && ./test64
>> testing!!
>>
>> # cc -m32 -march=k8 -o test32 test.c  && ./test32
>> /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for 
>> -lgcc
>> /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for 
>> -lgcc
>> /usr/bin/ld: cannot find -lgcc
>>     
>
> This isn't supported at present.  Note that just pointing at
> /usr/lib32 results in executables that won't run on FreeBSD/i386.
> And, quite apart from the linker issues, 'cc -m32' is using the wrong
> include files: All the machine-dependent types are defined in terms of
> I32LP64 primitives whilst 'cc -m32' uses ILP32 primitives.
>
> The current suggestion is to perform i386 compiles in a FreeBSD/i386
> chroot environment.
>
>   

I only tried to run the binary that was successfully compiled on the 
host, never moved it to an i386 machine.

I'll keep that in mind, thanks for the tip.

Regards,

Hugo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4760A35C.1010502>