pc@linux-vvmq:~/Programming/tests> gcc -m32 test.c
/usr/lib64/gcc/x86_64-suse-linux/4.6/…/…/…/…/x86_64-suse-linux/bin/ld: i386:x86-64 architecture of input file /usr/lib64/gcc/x86_64-suse-linux/4.6/crtbegin.o' is incompatible with i386 output /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: i386:x86-64 architecture of input file
/usr/lib64/gcc/x86_64-suse-linux/4.6/crtend.o’ is incompatible with i386 output
collect2: ld returned 1 exit status
test.c
int main(int argc, char **argv){}
I was trying to compile the Google dart source code, and it only supports 32bit builds but my machine has 64bit Opensuse 12.1 installed. I think I got everything working except the aforementioned error, which I have no idea how to fix. Any help appreciated, I don’t even know why it would look into a lib64 folder in the first place.
In the process of getting it to work, I have installed these: glibc-devel glibc-devel-32bit libgcc46-32bit libstdc++46-devel-32bit