This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc 2.3.2 targeting arm-linux, failed to cross-compile.

On Wed, May 14, 2003 at 04:20:02PM +0300, Nick Patavalis wrote:
> On Wed, May 14, 2003 at 05:37:44PM +0800, Hu, Boris wrote:
> > > 
> > > On Tue, May 13, 2003 at 05:54:48PM +0800, Hu, Boris wrote:
> > > > linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
> > > > ENTRY(name) --> ENTRY(name); 
> > > > It is fixed in Daniel Jacobowitz patch.
> > 
> Thanks! I applied the patch, and rebuilt everything. GLIBC now builds,
> *seemingly*, ok; but when I try to compile a full cross-gcc-3.2.3,
> directing it to use the newly compiled target glibc, I get the
> following error:
> /opt/xdvl/toolchain/bin2.13.2-gcc3.2.3-glibc2.3.2/bin/arm-linux-ld:/opt/xdvl/toolchain/bin2.13.2-gcc3.2.3-glibc2.3.2/arm-linux/lib/ file format not recognized; treating as linker script
> /opt/xdvl/toolchain/bin2.13.2-gcc3.2.3-glibc2.3.2/bin/arm-linux-ld:/opt/xdvl/toolchain/bin2.13.2-gcc3.2.3-glibc2.3.2/arm-linux/lib/ parse error
> And obviously the contents of my new "" are buggy:
> /* GNU ld script
>    Use the shared library, but some functions are only in
>    the static library, so try that secondarily.  */
> *** BUG in libc/scripts/output-format.sed *** elf32-bigarm,elf32-littlearm
> GROUP ( /opt/xdvl/arm-linux-glibc/2.3.2/lib/ /opt/xdvl/arm-linux-glibc/2.3.2/lib/libc_nonshared.a )
> Searching the build-output logs produced when building GLIBC, for
> "output-format.sed" I found the following relevant stuff:

Bizarrely, this is a problem with the way that glibc parses the way
gcc invokes ld.  It expects there to be an -EL switch, and there isn't.

I just remove the line from  It doesn't actually need to have
an OUTPUT_FORMAT anyway.

Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]