Gents, I am trying to do a "gcc -m32" on a x86_64 box. gcc -m32 /tmp/jj.c /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status This is the error I get. I did a "yum install glib.i386" successfully. there is no "yum install glib-devel.i386". How can i get a "gcc -m32" compile on my x86_64? THanks, Jerry
On Mon, Nov 27, 2006 at 01:05:22PM -0500, Jerry Geis wrote:> Gents, > I am trying to do a "gcc -m32" on a x86_64 box. > gcc -m32 /tmp/jj.c > /usr/bin/ld: crt1.o: No such file: No such file or directory > collect2: ld returned 1 exit status > This is the error I get. > I did a "yum install glib.i386" successfully. > there is no "yum install glib-devel.i386". > How can i get a "gcc -m32" compile on my x86_64?try setarch i386 gcc -m32 -- Matthew Miller mattdm at mattdm.org <http://mattdm.org/> Boston University Linux ------> <http://linux.bu.edu/>
>On Mon, Nov 27, 2006 at 01:05:22PM -0500, Jerry Geis wrote: >>/ Gents,/>>/ I am trying to do a "gcc -m32" on a x86_64 box. />>/ gcc -m32 /tmp/jj.c />>/ /usr/bin/ld: crt1.o: No such file: No such file or directory />>/ collect2: ld returned 1 exit status />>/ This is the error I get. />>/ I did a "yum install glib.i386" successfully. />>/ there is no "yum install glib-devel.i386". />>/ How can i get a "gcc -m32" compile on my x86_64?>> />try>setarch i386 gcc -m32That did not do it either.... My jj.c program is basically hello world. #include <stdio.h> int main(int argc, char *argv[]) { printf("Hello world\n"); } when I run "setarch i386 gcc -m32 jj.c" I still get. setarch i386 gcc -m32 jj.c /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status Am I missing something? THanks, Jerry
Jerry Geis wrote:> Gents, > > I am trying to do a "gcc -m32" on a x86_64 box. > > gcc -m32 /tmp/jj.c > /usr/bin/ld: crt1.o: No such file: No such file or directory > collect2: ld returned 1 exit status > > This is the error I get. > > I did a "yum install glib.i386" successfully. > there is no "yum install glib-devel.i386". > > How can i get a "gcc -m32" compile on my x86_64? > > THanks, > > Jerryyum install glibc-devel.i386 you were missing the "c" (glibc, not glib). HTH, Kay