This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi, I'm trying to build a Cross-Development Environment for for the StrongARM processor in Pentium/Linux host environment. I use binutils-2.10, gcc-2.95.2, glibc-2.1.3 and kernel-2.2.16. Here are the steps I have followed: 1. Installed binutils 2. Compiled and create the gcc for arm (arm-linux-gcc). 3. Created the kernel headers (linux/version.h). 4. Now, I'am trying to install glibc (with crypt and linuxthreads) on the machine. Here is the error message I get during compiling glibc: arm-linux-gcc -nostdlib -nostartfiles -r -o /home/lzg/gnu/build-lib/csu/crt1.o / home/lzg/gnu/build-lib/csu/start.o /home/lzg/gnu/build-lib/csu/abi-note.o /home/ lzg/gnu/build-lib/csu/init.o /home/lzg/target/arm/arm-linux/bin/ld: unrecognised emulation mode: elf32arm Supported emulations: armelf_linux armelf_linux26 armelf collect2: ld returned 1 exit status make[2]: *** [/home/lzg/gnu/build-lib/csu/crt1.o] Error 1 make[2]: Leaving directory `/home/lzg/gnu/glibc-2.1.3/csu' make[1]: *** [csu/subdir_lib] Error 2 make[1]: Leaving directory `/home/lzg/gnu/glibc-2.1.3' make: *** [all] Error 2 So I edit the /home/lzg/target/arm/lib/gcc-lib/arm-linux/2.95.2/specs, replaced elf32arm with armelf_linux (Is it right ?), and continue the compilation. but I get annother error message soon: arm-linux-gcc -shared -Wl,-O1 -o /home/lzg/gnu/build-lib/db/libdb1.so -Wl,-dy-linux-glibc/lib/ld-linux.so.2 -B/home/lzg/gnu/build-lib/csu/ -Wl,-soname=libdbgnu/build-lib -L/home/lzg/gnu/build-lib/math -L/home/lzg/gnu/build-lib/elf -L/hoild-lib/nis -L/home/lzg/gnu/build-lib/db2 -L/home/lzg/gnu/build-lib/rt -L/home/lld-lib/linuxthreads -Wl,-rpath-link=/home/lzg/gnu/build-lib:/home/lzg/gnu/build-lzg/gnu/build-lib/nss:/home/lzg/gnu/build-lib/nis:/home/lzg/gnu/build-lib/db2:/hd-lib/resolv:/home/lzg/gnu/build-lib/linuxthreads -Wl,--whole-archive /home/lzg//build-lib/elf/interp.os /home/lzg/gnu/build-lib/libc.so /home/lzg/target/arm/lib/gcc-lib/arm-linux/2.95.2/libgcc.a(_divsi3.o): In functi_divsi3.o(.text+0x0): multiple definition of `__divsi3' /home/lzg/target/arm/lib/gcc-lib/arm-linux/2.95.2/libgcc.a(_divsi3.o)(.text+0x0)/home/lzg/target/arm/lib/gcc-lib/arm-linux/2.95.2/libgcc.a(_dvmd_lnx.o): In func_dvmd_lnx.o(.text+0x0): multiple definition of `__div0' /home/lzg/target/arm/lib/gcc-lib/arm-linux/2.95.2/libgcc.a(_dvmd_lnx.o)(.text+0x/home/lzg/target/arm/lib/gcc-lib/arm-linux/2.95.2/libgcc.a(_modsi3.o): In functi_modsi3.o(.text+0x0): multiple definition of `__modsi3' /home/lzg/target/arm/lib/gc ___________________________________________________________________ 网易[电脑教程] 内容超全 下载、解疑、学习应有尽有 http://school.163.com 网易新闻频道,不但新,更要update您的判断力! http://news.163.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |