Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2007 15:13:48 +0530
From:      Sharad Chandra <sharadc@niksun.com>
To:        "FreeBSD Hackers" <freebsd-hackers@freebsd.org>
Subject:   gcc -m32 option on amd64.
Message-ID:  <200707271513.48639.sharadc@niksun.com>

next in thread | raw e-mail | index | archive | help
Hi guys,

I am trying gcc -m32 on freebsd 6.1 amd64 env, but it does not seems to be 
working. i also installed /usr/port/lang/linux-libgcc/ but did not help
what i did is=>
echo "main () {}" > t.c; gcc -m32 t.c
/usr/bin/ld: skipping 
incompatible /usr/local/lib/gcc/x86_64-portbld-freebsd6.1/4.2.0/gcc/x86_64-portbld-freebsd6.1/4.2.0/libgcc.a 
when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status

how can we make this working?

Thanks
Sharad Chandra



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707271513.48639.sharadc>