Re: GLIBC Error when building trun on 64 bit only.

"Gilles Espinasse" <[email protected]>
Newsgroups gmane.comp.security.ipcop.devel
Message-ID <0ba601cbc1dc$41682020$f9b5a8c0@pii350>
----- Original Message ----- 
From: "David W Studeman" <[email protected]>
To: <[email protected]>
Sent: Tuesday, February 01, 2011 1:24 AM
Subject: [IPCop-devel] GLIBC Error when building trun on 64 bit only.


> Hello all! Lately I have been getting this error while trying to build on
64
> bit. This is in the base build. This also does not happen when building on
> my 32 bit Debian box. Here is the interrupt log:
>
> + cd /usr/src/lfs
> + linux32 make -f glibc LFS_BASEDIR=/usr/src install
> ====================================== Installing glibc-2.11.3 ...
> Install started; saving file list to /usr/src/lsalr ...
> /bin/sh: /tools_i486/bin/xz: No such file or directory
> tar: This does not look like a tar archive
> tar: Exiting with failure status due to previous errors
> make: *** [/usr/src/files_i486/02_base/glibc-2.11.3] Error 2
>
> -- 
> Dave
> http://www.raqcop.com
>
>
The xz build error on toolchain 64-bits build has been fixed a few days ago.
I have build yesterday from a 32-bits and a 64-bits distrib.
But I first rebuild the toolchain (./make.sh clean && ./make.sh toolchain)

I haven't yet incremented the toolchain package name and will do once I
finished cleaning the env creation on toolchain.

That a long time we have xz compiled on toolchain, so I don't know what
exactly happen.
Could you try to look with ldd at xz inside the shell

./make.sh shell
[chroot-i486] root:/$ ldd /tools_i486/bin/xz
        linux-gate.so.1 =>  (0x00c55000)
        libpthread.so.0 => /tools_i486/lib/libpthread.so.0 (0x00cce000)
        libc.so.6 => /tools_i486/lib/libc.so.6 (0x00488000)
        /tools_i486/lib/ld-linux.so.2 (0x002e9000)

Then try to check if xz work with
[chroot-i486] root:/$ /tools_i486/bin/xz --version
xz (XZ Utils) 5.0.0
liblzma 5.0.0

That's curious I didn't see liblzma as a dependency of xz.
but I see the same with
[chroot-i486] root:/$ readelf -d /tools_i486/bin/xz | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]

Gilles


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.