This is the mail archive of the
mailing list for the glibc project.
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/libc.so: 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/libc.so:4: parse error
> And obviously the contents of my new "libc.so" 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/libc.so.6 /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 libc.so. It doesn't actually need to have
an OUTPUT_FORMAT anyway.
MontaVista Software Debian GNU/Linux Developer