I've built GCC4-20050721 up through chapter 6 "readjusting toolchain".
When, as recommended, I compile dummy.c and running readelf -l on it,
everything appears normal, but the executable is in fact un-runnable:

[lfs chroot src]# ./a.out
bash: ./a.out: No such file or directory
[lfs chroot src]# ldd a.out
/usr/bin/ldd: line 124: ./a.out: No such file or directory
[lfs chroot src]# /lib/ld-2.3.5.so a.out
a.out: error while loading shared libraries: a.out: cannot open shared object
 file: No such file or directory

I've been unable to track down what's wrong.  What should I look for?
The host system is Debian-testing.

[lfs chroot src]# uname -a
Linux lear35 2.6.12.3 #1 Wed Jul 20 15:44:59 PDT 2005 i686 unknown unknown
 GNU/Linux
[lfs chroot src]# /lib/libc-2.3.5.so
GNU C Library stable release version 2.3.5, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.0.1.
Compiled on a Linux 2.6.12 system on 2005-07-21.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.


There were some probably unrelated errors in the glibc testsuite:

[lfs chroot src]# grep Error glibc-ch6-checklog
make[3]: *** [/usr/src/glibc-build/math/test-float.out] Error 1
make[3]: *** [/usr/src/glibc-build/math/test-double.out] Error 1
make[3]: *** [/usr/src/glibc-build/math/test-ifloat.out] Error 1
make[3]: *** [/usr/src/glibc-build/math/test-idouble.out] Error 1
make[2]: *** [math/tests] Error 2
make[3]: [/usr/src/glibc-build/posix/annexc.out] Error 1 (ignored)
make[1]: *** [check] Error 2


-- 
"Life's not fair, but the root password helps." -- BOFH
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to