On Thu, 13 Jan 2000 16:12:38 +0900, Hiroshi Ishii wrote:
> I'm trying to compile glibc-2.1.2, but met trouble.
>
> Error message is;
> -----------
> make -C csu subdir_lib
> make[1]: Entering directory `/usr/local/src/glibc-2.1.2/csu'
> arm-linux-gcc -nostdlib -nostartfiles -r -o crt1.o start.o abi-note.o init.o
> /local2/armdevtest-gcc-2.95/arm-linux/bin/ld: unrecognised emulation mode:
> elf32arm
> Supported emulations: armelf_linux armelf_linux26 armelf
> collect2: ld returned 1 exit status
> make[1]: *** [crt1.o] Error 1
> make[1]: Leaving directory `/usr/local/src/glibc-2.1.2/csu'
> make: *** [csu/subdir_lib] Error 2
> -----------
>
> "arm-linux-ld --version" is
> "GNU ld version 2.9.5 (with BFD 2.9.5.0.19)"
>
> Please give me advice.
You're probably trying to compile glibc-2.1.2 with an incompatible
binutils/gcc combination. Gcc 2.95.2 needs binutils-2.9.5.0.19 + Phil's
binutils patch or binutils-2.9.5.0.22 (or newer). If you use Chris
Rutter's hints, it should work. I made myself a complete toolchain (from
scratch) a couple of days ago, with the following sources:
- binutils 2.9.5.0.22 from H.J. Lu's site.
- Linux 2.2.12 with patch-2.2.12-rmk1.gz and diff-2.2.12-rmk1-np12.gz
- gcc-2.95.2-core with Phil's gcc-2.95.2-diff-991022.gz patch
- glibc-2.1.2 with glibc-crypt-2.1 and glibc-linuxthreads-2.1.2
The only problem is that Phil's gcc patch fails at four places (two
ChangeLogs and two files not in gcc-2.95.2-core), but that's not a real
problem because the resulting compiler works fine.
Erik
--
LART. 250 MIPS under one Watt.
http://www-ict.its.tudelft.nl/~erik/open-source/LART/
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for ++
++ kernel-related discussions. ++