Hi Philip:
Thank you very much for your response.
I solved the problem by using a configure option
--with-headers=/usr/local/arm/arm-linux/include in re-compiling c and c++.
My purpose is to build a toolchain for strong arm with big endian. I did
following:
built binutils-2.95.0.29 with configure --target=arm-linux
built gcc for "c" with configure --target=arm-linux
built glibc with configure arm-linux and put compile option:
arm-linux-gcc -mbig-endian
rebuilt gcc for c and c++.
But when I tried to use the toolchain to compile a program like:
arm-linux-gcc -mbig-endian -c -o test test.c
I got error messages:
/usr/local/arm/arm-linux/lib/libc.s0.6: could not symbols: Invalid
operation
This result means collect2 ( may be arm-linux-ld ) can not read library.
But if I complied the glibc without -mbig-endian will be little endian so
that I do not think the result binary file will be a big endian.
I go back to your web paper and a post message from Erik Mouw. I found I
might build a toolcahin using big endia.
I configured the binutils-2.95.0.29:
%.\configure --target=armv4b-unknow-linux --prefix=/usr/local/arm
% make
% make install
This is OK.
I copied inux-2.2.12 headers linux-2.2.12/include/asm-arm and
linux-2.2.12/include/linux to the /usr/local/arm/include
I built gcc-2.95.2:
% .\configure --target=armv4b-unknow-linux --prefix=/usr/local/arm
% make LANGUAGES="c"
I got a lot of error messages such as:
No such 386 instruction 'dividend'
No such 386 instruction 'divisor'
I could not figure out what wrong with this configuration and make.
Would you please let me know how can I fix this problem.
Also by the way, Is it possible to build linux kernel using newLib?
Thanks a lot.
David Meng
-----Original Message-----
From: Philip Blundell [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 27, 2000 5:51 AM
To: root
Cc: [EMAIL PROTECTED]
Subject: Re: Error in BUILDING GLIBC
In message <[EMAIL PROTECTED]>, root writes:
>I am trying to build Glibc versions 2.1.1, 2.1.2, and 2.1.3 using
>binutils-2.9.5.0.29 and egcs-1.1.2 cross compiler on i686-pc
>but every time it failed with the same point with similer error like
Are you sure this happens with glibc 2.1.3? Earlier versions had this
problem
but it should be fixed now.
p.
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for
++
++ kernel-related discussions.
++
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for ++
++ kernel-related discussions. ++