You need to tell it which compiler to use as well. Otherwise it
defaults to
`gcc' which is of course the native compiler.
Also, `--target' is meaningless for glibc because it's not a
compiler tool.
Configure was probably ignoring that option and again defaulting to
a native
build.
Try something like this, assuming `arm-linux-gcc' is in your PATH:
$ CC=arm-linux-gcc ./configure arm-linux --enable-add-ons
--prefix=whatever
Phil,
I ran ...
# CC=arm-linux-gcc ./configure arm-linux --build=i686-pc-linux-gnu
--prefix=/usr/local/arm/glibc/arm-linux-glibc -enable-add-ons
and it gave me this error...
checking installed Linux kernel header files... TOO OLD!
configure: error: GNU libc requires kernel header files from
Linux 2.0.10 or later to be installed before configuring.
The kernel header files are found usually in /usr/include/asm and
/usr/include/linux; make sure these directories use files from
Linux 2.0.10 or later. This check uses <linux/version.h>, so
make sure that file was built correctly when installing the kernel header
files. To use kernel headers not from /usr/include/linux, use the
configure option --with-headers.
So I searched for 'version.h' ...
[/]# find . -name "version.h" -type f
./home/chagas/egcs/egcs-1.1.1/gcc/f/version.h
./home/chagas/glibc/glibc-2.0.111/version.h
./home/chagas/linux-2.2.0/linux/arch/i386/math-emu/version.h
./usr/src/linux-2.0.36/include/linux/version.h
and ran ...
# CC=arm-linux-gcc ./configure arm-linux --build=i
686-pc-linux-gnu --prefix=/usr/local/arm/glibc/arm-linux-glibc
-enable-add-ons --with-headers=/usr/src/linux-2.0.36/include
This time I got this error...
include -isystem /usr/src/linux-2.0.36/include -D_LIBC_REENTRANT -include
../inc
lude/libc-symbols.h -DASSEMBLER -o syscall.o
../sysdeps/unix/syscall.S: Assembler messages:
../sysdeps/unix/syscall.S:28: Error: Can not represent SWI relocation in
this ob
ject file format (0)
make[1]: *** [syscall.o] Error 1
make[1]: Leaving directory `/home/chagas/glibc/glibc-2.0.111/misc'
make: *** [misc/subdir_lib] Error 2
Which leads me to believe I have the wrong headers... Is that that case?
Where should I get the headers from?
Any ideas?
Thanks,
Jason
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]