-m32 broken on bi-arch amd64 systems?

Garrett Cooper yanefbsd at gmail.com
Mon Dec 22 21:59:38 PST 2008

Hi guys,
    I think I may have found an issue today with our bi-endian
structure, and I wanted to make sure whether or not it was an already
known issue (-m32 is broken for gcc with lib32/libgcc.a):

[root at fbsd-7-test]# gcc -o boo boo.c # Compiles
[root at fbsd-7-test]# gcc -m32 -o boo boo.c
/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
[root at fbsd-7-test]# file /usr/lib32/libgcc_s.so.1
/usr/lib32/libgcc_s.so.1: ELF 32-bit LSB shared object, Intel 80386,
version 1 (FreeBSD), dynamically linked, stripped
[root at fbsd-7-test]# uname -a
FreeBSD fbsd-7-test.gateway.2wire.net 7.1-PRERELEASE FreeBSD
7.1-PRERELEASE #0: Sun Nov 23 16:19:09 UTC 2008
root at fbsd-7-test.gateway.2wire.net:/usr/obj/usr/src/sys/STARR  amd64

    I wish I had my amd64 CURRENT machine in front of me to confirm
this, but I don't.
    Please keep me CC'ed as I am not subscribed to either amd64@ or stable at .

More information about the freebsd-amd64 mailing list