Hi all.
I am a newer to build a Cross-compiler LFS,I follow exactly the step of this website to install eglibc-2.13:
http://cross-lfs.org/view/CLFS-1.2.0...ls/eglibc.html
But When I come to "make install", there is an error:
make[4]: Entering directory `/home/klj/cross-tools/eglibc-2.13/string'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/home/klj/cross-tools/eglibc-2.13/string'
make subdir=time -C ../time ..=../ objdir=/home/klj/cross-tools/eglibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-setitimer.os'
make[4]: Entering directory `/home/klj/cross-tools/eglibc-2.13/time'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/home/klj/cross-tools/eglibc-2.13/time'
make[3]: Leaving directory `/home/klj/cross-tools/eglibc-2.13/elf'
make[2]: Leaving directory `/home/klj/cross-tools/eglibc-2.13/elf'
/usr/bin/install -c -m 644 /home/klj/cross-tools/eglibc-build/libc.a /tools/lib/libc.a
/usr/bin/install: cannot remove `/tools/lib/libc.a': Permission denied
make[1]: *** [/tools/lib/libc.a] Error 1
make[1]: Leaving directory `/home/klj/cross-tools/eglibc-2.13'
make: *** [install] Error 2
Then I change to root account to make install, another error come:
mv: `/tools/libexec/getconf/.new' and `/tools/libexec/getconf/.new' are the same file
mv: `/tools/libexec/getconf/.new' and `/tools/libexec/getconf/.new' are the same file
mv: `/tools/libexec/getconf/.new' and `/tools/libexec/getconf/.new' are the same file
make[2]: *** [/tools/libexec/getconf] Error 1
make[2]: Leaving directory `/home/klj/cross-tools/eglibc-2.13/posix'
make[1]: *** [posix/subdir_install] Error 2
make[1]: Leaving directory `/home/klj/cross-tools/eglibc-2.13'
make: *** [install] Error 2
I can't figure out how to solve it. Since I am a new hand,please help me with it.