cc can't build 32-bit executables on amd64

Giorgos Keramidas keramida at ceid.upatras.gr
Tue May 2 06:23:38 UTC 2006


On 2006-05-01 16:04, Mikhail Teterin <mi+mx at aldan.algebra.com> wrote:
> Can I direct someone's attention to the annoying but easy to fix bug:
>
> 	http://www.freebsd.org/cgi/query-pr.cgi?pr=gnu/96570
>
> There are still a few days left to make sure, FreeBSD-6.1 is shipped with
> amd64 being able to link 32-bit executables.
>
> Release Engineers insist, it must be fixed in current first...

cc can build binaries just fine if you also use the -B option:

        % cc -m32 -B/usr/lib32 ...

I know it does because I've used it on my laptop a while ago, running
FreeBSD/amd64.  It's dead now so I can verify this works in all cases,
but it seemed to solve this for me a couple of months ago.



More information about the freebsd-stable mailing list