On 09/04/2016 01:49 PM, Sumit Kokal wrote:
Hii sir,
first in pass-1 glibc make and make install successfully done, when m

echo 'int main(){}' > dummy.c $LFS_TGT-gcc dummy.c readelf -l a.out |
grep ': /tools'

this commands den following output is come
mv -f /mnt/lfs/sources/glibc-2.24/build/elf/stubsT
/mnt/lfs/sources/glibc-2.24/build/elf/stubs
make[2]: Leaving directory '/mnt/lfs/sources/glibc-2.24/elf'
(sed '/^@/d' include/stubs-prologue.h; LC_ALL=C sort
/mnt/lfs/sources/glibc-2.24/build/csu/stubs
/mnt/lfs/sources/glibc-2.24/build/iconv/stubs
/mnt/lfs/sources/glibc-2.24/build/locale/stubs
/mnt/lfs/sources/glibc-2.24/build/localedata/stubs
/mnt/lfs/sources/glibc-2.24/build/iconvdata/stubs
/mnt/lfs/sources/glibc-2.24/build/assert/stubs
/mnt/lfs/sources/glibc-2.24/build/ctype/stubs
/mnt/lfs/sources/glibc-2.24/build/intl/stubs
/mnt/lfs/sources/glibc-2.24/build/catgets/stubs
/mnt/lfs/sources/glibc-2.24/build/math/stubs
/mnt/lfs/sources/glibc-2.24/build/setjmp/stubs
/mnt/lfs/sources/glibc-2.24/build/signal/stubs
/mnt/lfs/sources/glibc-2.24/build/stdlib/stubs
/mnt/lfs/sources/glibc-2.24/build/stdio-common/stubs
/mnt/lfs/sources/glibc-2.24/build/libio/stubs
/mnt/lfs/sources/glibc-2.24/build/dlfcn/stubs
/mnt/lfs/sources/glibc-2.24/build/malloc/stubs
/mnt/lfs/sources/glibc-2.24/build/string/stubs
/mnt/lfs/sources/glibc-2.24/build/wcsmbs/stubs
/mnt/lfs/sources/glibc-2.24/build/timezone/stubs
/mnt/lfs/sources/glibc-2.24/build/time/stubs
/mnt/lfs/sources/glibc-2.24/build/dirent/stubs
/mnt/lfs/sources/glibc-2.24/build/grp/stubs
/mnt/lfs/sources/glibc-2.24/build/pwd/stubs
/mnt/lfs/sources/glibc-2.24/build/posix/stubs
/mnt/lfs/sources/glibc-2.24/build/io/stubs
/mnt/lfs/sources/glibc-2.24/build/termios/stubs
/mnt/lfs/sources/glibc-2.24/build/resource/stubs
/mnt/lfs/sources/glibc-2.24/build/misc/stubs
/mnt/lfs/sources/glibc-2.24/build/socket/stubs
/mnt/lfs/sources/glibc-2.24/build/sysvipc/stubs
/mnt/lfs/sources/glibc-2.24/build/gmon/stubs
/mnt/lfs/sources/glibc-2.24/build/gnulib/stubs
/mnt/lfs/sources/glibc-2.24/build/wctype/stubs
/mnt/lfs/sources/glibc-2.24/build/manual/stubs
/mnt/lfs/sources/glibc-2.24/build/shadow/stubs
/mnt/lfs/sources/glibc-2.24/build/gshadow/stubs
/mnt/lfs/sources/glibc-2.24/build/po/stubs
/mnt/lfs/sources/glibc-2.24/build/argp/stubs
/mnt/lfs/sources/glibc-2.24/build/crypt/stubs
/mnt/lfs/sources/glibc-2.24/build/nptl/stubs
/mnt/lfs/sources/glibc-2.24/build/rt/stubs
/mnt/lfs/sources/glibc-2.24/build/conform/stubs
/mnt/lfs/sources/glibc-2.24/build/debug/stubs
/mnt/lfs/sources/glibc-2.24/build/mathvec/stubs
/mnt/lfs/sources/glibc-2.24/build/libidn/stubs
/mnt/lfs/sources/glibc-2.24/build/nptl_db/stubs
/mnt/lfs/sources/glibc-2.24/build/inet/stubs
/mnt/lfs/sources/glibc-2.24/build/resolv/stubs
/mnt/lfs/sources/glibc-2.24/build/nss/stubs
/mnt/lfs/sources/glibc-2.24/build/hesiod/stubs
/mnt/lfs/sources/glibc-2.24/build/sunrpc/stubs
/mnt/lfs/sources/glibc-2.24/build/nis/stubs
/mnt/lfs/sources/glibc-2.24/build/nscd/stubs
/mnt/lfs/sources/glibc-2.24/build/streams/stubs
/mnt/lfs/sources/glibc-2.24/build/login/stubs
/mnt/lfs/sources/glibc-2.24/build/elf/stubs) >
/mnt/lfs/sources/glibc-2.24/build/stubs.h
if test -r /tools/include/gnu/stubs-64.h && cmp -s
/mnt/lfs/sources/glibc-2.24/build/stubs.h /tools/include/gnu/stubs-64.h; \
then echo 'stubs.h unchanged'; \
else /usr/bin/install -c -m 644
/mnt/lfs/sources/glibc-2.24/build/stubs.h /tools/include/gnu/stubs-64.h; fi
rm -f /mnt/lfs/sources/glibc-2.24/build/stubs.h
make[1]: Leaving directory '/mnt/lfs/sources/glibc-2.24'
root@sumi-k:/mnt/lfs/sources/glibc-2.24/build# echo 'int main(){}' > dummy.c
*root@sumi-k:/mnt/lfs/sources/glibc-2.24/build# $LFS_TGT-gcc dummy.c
x86_64-lfs-linux-gnu-gcc: command not found*

You should have stopped here. You can't just continue if you get errors. You need to determine the cause of the problem before moving on.

However, I already see the problem (or at least one problem) - you're running this as root instead of the lfs user. Run "rm -rf /tools/*" then go back to the beginning of Chapter 5, and do everything as the lfs user until you're told to do otherwise.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to