This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hello friends,
My compiler is built but it is generating binaries only for 64
bit machines. When i use -m32 switch it gives me error as follows.
[katiyar@nasvm bin]$ ./x86_64-unknown-linux-gnu-gcc -m64 -o hello32 hello.c
[katiyar@nasvm bin]$ ./x86_64-unknown-linux-gnu-gcc -m32 -o hello64 hello.c
/home/katiyar/crosstool_gcc/gcc-3.3.3-glibc-2.3.2/x86_64-unknown-linux-gnu/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.3/../../../../x86_64-unknown-linux-gnu/bin/ld:
skipping incompatible
/home/katiyar/crosstool_gcc/gcc-3.3.3-glibc-2.3.2/x86_64-unknown-linux-gnu/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.3/./libgcc.a
when searching for -lgcc
/home/katiyar/crosstool_gcc/gcc-3.3.3-glibc-2.3.2/x86_64-unknown-linux-gnu/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.3/../../../../x86_64-unknown-linux-gnu/bin/ld:
skipping incompatible
/home/katiyar/crosstool_gcc/gcc-3.3.3-glibc-2.3.2/x86_64-unknown-linux-gnu/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.3/libgcc.a
when searching for -lgcc
/home/katiyar/crosstool_gcc/gcc-3.3.3-glibc-2.3.2/x86_64-unknown-linux-gnu/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.3/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lgcc
collect2: ld returned 1 exit status
Where do i need to change in the crosstool to make it work for both
the architectures. I have edited the --disable-multilibs and made it
--enable-multilibs
Thanks in advance
--
Thanks & Regards,
********************************************
Manish Katiyar
Ozone 2, SP Infocity (Software Park),
New Survey #208 Manjari Stud Farms Ltd.,
Phursungi Village, Haveli Taluka, Saswad Road,
Hadapsar, Pune - 412308, India
***********************************************
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |