RE: Cross compiling 32 bit
> On 4/8/06, Jason Gauthier <jgauthier@lastar.com> wrote:
> > Greetings,
> >
> > My first experience with debian, and amd64. Can someone tell me
> > what packages I need to cross compile 32 bit apps? I've tried for
> > awhile, but I just can't figure it out. I know there are several.
> AFAIK:
> lib32gcc1, libc6-dev-i386, lib32stdc++6,lib32z1-dev Is there
> anything else?
> What about applications requiring libsdl? compiling in a chroot?
>
Thanks,
I installed all of those. (I was missing a couple)
But I still cannot compile 32bit apps:
jgauthier:/home/jgauthier# gcc -m32 ./test.c
./test.c: In function \u2018main\u2019:
./test.c:2: warning: return type of \u2018main\u2019 is not
\u2018int\u2019
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../libc.so when searching for
-lc
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../libc.a when searching for
-lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when
searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching
for -lc/usr/bin/ld: skipping incompatible /usr/lib/libc.so when
searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for
-lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
What else do I need to do?
Reply to: