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 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:

arm-linux-gcc  -shared  -Wl,-dynamic-linker=/opt/xdvl/arm-linux-glibc/2.3.2/lib/ -Wl,-z,combreloc \
  -x c /dev/null -o /mnt/disk3/home/npat/ian/infra/xdvl/unpacked/xdvl-arm-bin2.13.2-gcc3.2.3-glc2.3.2/work/glibc-build/ -Wl,--verbose -v 2>&1 \
| sed -n -f scripts/output-format.sed > /mnt/disk3/home/npat/ian/infra/xdvl/unpacked/xdvl-arm-bin2.13.2-gcc3.2.3-glc2.3.2/work/glibc-build/
rm -f /mnt/disk3/home/npat/ian/infra/xdvl/unpacked/xdvl-arm-bin2.13.2-gcc3.2.3-glc2.3.2/work/glibc-build/
mv -f /mnt/disk3/home/npat/ian/infra/xdvl/unpacked/xdvl-arm-bin2.13.2-gcc3.2.3-glc2.3.2/work/glibc-build/ /mnt/disk3/home/npat/ian/infra/xdvl/unpacked/xdvl-arm-bin2.13.2-gcc3.2.3-glc2.3.2/work/glibc-build/
(echo '/* GNU ld script';\
 echo '   Use the shared library, but some functions are only in';\
 echo '   the static library, so try that secondarily.  */';\
 cat /mnt/disk3/home/npat/ian/infra/xdvl/unpacked/xdvl-arm-bin2.13.2-gcc3.2.3-glc2.3.2/work/glibc-build/; \
 echo 'GROUP ( /opt/xdvl/arm-linux-glibc/2.3.2/lib/' \
      ')' \
) > /opt/xdvl/arm-linux-glibc/2.3.2/lib/
mv -f /opt/xdvl/arm-linux-glibc/2.3.2/lib/ /opt/xdvl/arm-linux-glibc/2.3.2/lib/

The contents of "" (found in the glibc-build directory) are:

*** BUG in libc/scripts/output-format.sed *** elf32-bigarm,elf32-littlearm

Could this be due to a buggy sed?

sed --version
  GNU sed version 3.02

ldd `which sed` => /lib/ (0x2aac8000)
  /lib/ => /lib/ (0x2aaab000)

ls -l /lib/

  /lib/ ->*

Thanks again

Recaping for those tuned-in lately:

I was trying to cross-compile GLIB-2.3.2 tagering arm-linux (and
hosted on a i386 linux machine). I used a recently built
cross-toolchain targeting arm-linux, comprising of binutils 2.13.2 and
a minimal GCC-3.2.3. Initially the assembler chocked at some point. I
applied the patch mentioned in the quoted text above and...

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
  -- Benjamin Franklin, Historical Review of Pennsylvania, 1759.

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