This is the mail archive of the crossgcc@sources.redhat.com 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] |
Hi, As I have been trying to build crosstool chain for "target=arm-linux" on "host=i686-pc-mingw32". I have picked up pre-built Glibc for the same target. 1) Binutils-2.11.2 -> Installed successfully. Option used, ../binutils-2.11.2/configure --target=arm-linux --prefix=/c/MinGW/msys/home/cinstall_armlinux 2) Gcc-2.95.3 configured successfully. Option used, ../gcc-2.95.3/configure --host=i686-pc-mingw32 --target=arm-linux --prefix=/c/MinGW/msys/home/cinstall_armlinux --enable-languages=c --with-headers=/c/MinGW/msys/home/cinstall_armlinux/arm-linux/include --disable-nls --enable-thread=posix --enable-shared --with-gnu-as --with-as=/c/MinGW/msys/home/cinstall_armlinux/bin/arm-linux-as --with-gnu-ld --with-ld=/c/MinGW/msys/home/cinstall_armlinux/bin/arm-linux-ld 3) While installing GCC, I get the message-> " configure: error: installation or configuration problem: C compiler cannot create executables." When I compile a sample program as: $ arm-linux-gcc sample.c, I get following errors: ************************** C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGSaaaa.s: Assembler messages: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGSaaaa.s:1: Error: invalid character '@' in mnemonic C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGSaaaa.s:11: Warning: .type pseudo-op used outside of .def/.endef ignored. C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGSaaaa.s:11: Warning: rest of line ignored; first ignored character is `m' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGSaaaa.s:13: Error: invalid character '@' in mnemonic C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGSaaaa.s:14: Error: invalid character '@' in mnemonic C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGSaaaa.s:15: Error: too many memory references for `mov' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGSaaaa.s:16: Error: no such instruction: `stmfd sp!,{fp,ip,lr,pc}' .. .. C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGSaaaa.s:29: Warning: rest of line ignored; first ignored character is `m' ************************** When I do the following steps: $ arm-linux-gcc -S sample.c $ arm-linux-as sample.s -o sample.o $ $ arm-linux-ld a.o -lc ./cinstall_armlinux/lib/gcc-lib/arm-linux/2.95.3/crtbegin.o ./cinstall_armlinux/arm-linux/lib/crt1.o ./cinstall_armlinux/arm-linux/lib/crti.o ./cinstall_armlinux/arm-linux/lib/crtn.o ./cinstall_armlinux/lib/gcc-lib/arm-linux/2.95.3/crtend.o I get following errors: ************************************** ./cinstall_armlinux/arm-linux/lib\libc.so.6: undefined reference to `_dl_lazy@GLIBC_2.1.1' ./cinstall_armlinux/arm-linux/lib\libc.so.6: undefined reference to `_dl_dst_substitute@GLIBC_2.1.1' ./cinstall_armlinux/arm-linux/lib\libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_2.2' ./cinstall_armlinux/arm-linux/lib\libc.so.6: undefined reference to `_dl_relocate_object@GLIBC_2.0' ./cinstall_armlinux/arm-linux/lib\libc.so.6: undefined reference to `_dl_clktck@GLIBC_2.2' ./cinstall_armlinux/arm-linux/lib\libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_2.0' .. ..SIMILAR ENTRIES REMOVED TO KEEP THE LIST SHORT .. ./cinstall_armlinux/arm-linux/lib\libc.so.6: undefined reference to `_dl_init@GLIBC_2.2' ./cinstall_armlinux/arm-linux/lib\libc.so.6: undefined reference to `_dl_lookup_symbol_skip@GLIBC_2.0' ./cinstall_armlinux/arm-linux/lib\libc.so.6: undefined reference to `_dl_fpu_control@GLIBC_2.1' ./cinstall_armlinux/arm-linux/lib\libc.so.6: undefined reference to `_dl_global_scope_alloc@GLIBC_2.1' ************************************** I feel that the above two erros are related as both talks about the charater "@". Also say when I do: $ arm-linux-nm libc.so.6 | grep _dl_lazy@GLIBC_2.1.1 (Notice single '@') ..I get Nothing On doing: $ arm-linux-nm libc.so.6 | grep _dl_lazy@@GLIBC_2.1.1 ..I get U _dl_lazy@@GLIBC_2.1.1 (Notice double '@') Kindly assist me in this regard. I couldn't find any help through Internet also. Any help would be appreciated. Thanks p.s: when I do the same step on Cygwin to build the tool chain, everything build perfectly fine. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |