bin/139146 still not right in FreeBSD 8.2 (-m32 on amd64)?

Josh Carroll josh.carroll at gmail.com
Wed Mar 9 20:52:54 UTC 2011


On Wed, Mar 9, 2011 at 12:15 PM, Thomas David Rivers <rivers at dignus.com> wrote:
>
> Just installed a fresh 8.2-stable on a brand-spanking-new 64-bit
> machine...
>
> But, when I try to build 32-bit programs I get problems linking,
> and I stumbled onto PR bin/139146.
>
> The PR mentions this quick test:
>
>  uname -sr && echo "int main () { }" > t.c && gcc -v --help 2>&1 | grep m32 && gcc -m32 t.c

Add -B/usr/lib32 to the gcc command line, e.g.:

echo "int main () { }" > t.c && gcc -v --help 2>&1 | grep m32 && gcc
-m32 -B/usr/lib32 t.c

Then it should work.

Josh


More information about the freebsd-stable mailing list