Hallo,
I just ran into a problem after installing glibc in chapter 6.9 (LFS6.6 x86_64).
All the programs, compiled so far after chrooting (really only the compiled ones) refuse to run, each printing the output
Code:
root:/# localedef
bash: /usr/bin/localedef: No such file or directory
(localedef as an example)
It is definitly there:
Code:
root:/# ls -l /usr/bin
total 2080
-rwxr-xr-x 1 root root 3388 Apr 10 08:14 catchsegv
-rwxr-xr-x 1 root root 74108 Apr 10 08:14 gencat
-rwxr-xr-x 1 root root 46989 Apr 10 08:14 getconf
-rwxr-xr-x 1 root root 68605 Apr 10 08:14 getent
-rwxr-xr-x 1 root root 213291 Apr 10 08:14 iconv
-rwxr-xr-x 1 root root 5659 Apr 10 08:14 ldd
-rwxr-xr-x 1 root root 110451 Apr 10 08:14 locale
-rwxr-xr-x 1 root root 1240773 Apr 10 08:14 localedef
-rwxr-xr-x 1 root root 6473 Apr 10 08:14 mtrace
-rwxr-xr-x 1 root root 26247 Apr 10 08:14 pcprofiledump
lrwxrwxrwx 1 root root 15 Apr 6 15:28 perl -> /tools/bin/perl
-rwxr-xr-x 1 root root 222827 Apr 10 08:14 rpcgen
-rwxr-xr-x 1 root root 71398 Apr 10 08:14 sprof
-rwxr-xr-x 1 root root 7131 Apr 10 08:14 tzselect
-rwxr-xr-x 1 root root 5320 Apr 10 08:14 xtrace
The complete amount of toolchain-programs is doing their jobs quite well (also in chroot), so I do not think I completely failed in compiling gcc in chapter 5.10, as they seem to be host independent.
In addition to this the compilation of glibc worked without any problems (except the posix/annexc test)
When used from the host-distribution they run quite well:
Code:
$ /media/LFS/usr/bin/localedef
»localedef --help« oder »localedef --usage« gibt weitere Informationen.
I do not know how to get around this, although I am quite sure the problem is the dynamic linker.
I am looking forward to your answers!

Thanks for all replies!