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

Thomas David Rivers rivers at dignus.com
Wed Mar 9 20:49:01 UTC 2011


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

which I try to get this output:

FreeBSD 8.2-RELEASE
  -m32                        Generate 32bit i386 code
/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


So - I'm wondering what the proper approach is on amd64 to build 
32-bit applications?

	- Thanks! -
	- Dave Rivers -

--
rivers at dignus.com                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com





More information about the freebsd-stable mailing list