More issues with 7.0-BETA4

Hugo Silva hugo at barafranca.com
Wed Dec 12 19:13:26 PST 2007


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


More information about the freebsd-stable mailing list