chroot.libgcc

Colin Kemp colin at greenballenterprises.net
Tue Feb 27 15:27:24 PST 2007


On Feb 27, 2007, at 4:06 PM, Ramsebner Gerhard wrote:

> Hi,
> I got stuck with glibc in chapter 6 of LFS6.2.
> I'm running a copy of LFS6.1 from another machine with an  
> default.config
> kernel 2.6.20.1 and didn't experience any problems till now. But  
> maybe this
> is an issue. So all I ask you is to have a quick look if there is any
> obvious mistake before I restart with a proper 2.6.16.27 kernel.
> Thanks a lot!
>
>  ---
> Errors at compile time (glibc-check-log):
>
> math: ldouble, ildoubl
> nptl: mutex8, cond7, cond8, once3, once4, key3, basic3, basic4,  
> join1, ...
> rt: mqueue8
>
>  ---
> install stage fails with:
>
> CC="gcc" /usr/bin/perl scripts/test-installation.pl /usr/src/glibc/ 
> src/
> /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux- 
> gnu/bin/ld:
> dynamic-linker=/lib/ld-linux.so.2: No such file: No such file or  
> directory
> collect2: ld returned 1 exit status
> Execution of gcc failed!
> The script has found some problems with your installation!
> ...
> make[1]: *** [install] Error 1
> make[1]: Leaving directory '/usr/src/glibc/glibc-2.3.6'
> make: *** [install] Error 2
>
>  ---
> $
> /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux- 
> gnu/bin/ld
>  --verbose | grep SEARCH
> SEARCH_DIR("/tools/i686-pc-linux-gnu/lib"); SEARCH_DIR("/tools/lib");
> $ echo "main(){}" > mydummy.c; cc -o mya.out mydummy.c; readelf -l  
> mya.out |
> grep interpreter
> [Requesting program interpreter: /tools/lib/ld-linux.so.2]
>
>
> -- 
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
The most obvious thing i see here is that your ld-linux.so.2 is still  
being searched for in /tools, but glibc is looking for it in /lib.  
Did you remember to make the /tools to / symlink at the beginning of  
the build? or perhaps the chroot command isn't quite right?

----------------
Colin Kemp

GreenBall Enterprises
colin at greenballenterprises.net

Web Hosting
www.greenballenterprises.net
webhosting at greenballenterprises.net





More information about the lfs-support mailing list