Until chapter 5.31 changing ownership, all ok.
$ readelf -l /tools/bin/gcc | grep interpreter
[Requesting program interpreter: /tools/lib/ld-linux.so.2]
After it
lfs:/mnt/lfs/sources$ su
Password:
root:/mnt/lfs/sources# echo $LFS
/mnt/lfs
root:/mnt/lfs/sources# chown -R root:root $LFS/tools
root:/mnt/lfs/sources# echo 'main(){}' > dummy.c
root:/mnt/lfs/sources# cc dummy.c
root:/mnt/lfs/sources# readelf -l a.out | grep ': /tools'
root:/mnt/lfs/sources#
I then
root:/mnt/lfs/sources# chown -R lfs:lfs $LFS/tools
root:/mnt/lfs/sources# echo 'main(){}' > dummy.c
root:/mnt/lfs/sources# cc dummy.c
root:/mnt/lfs/sources# readelf -l a.out | grep ': /tools'
root:/mnt/lfs/sources#
I again
root:/mnt/lfs/sources# su - lfs
/dev/pts/3: Operation not permitted
lfs:~$ echo 'main(){}' > dummy.c
lfs:~$ cc dummy.c
lfs:~$ readelf -l a.out | grep ': /tools'
[Requesting program interpreter: /tools/lib/ld-linux.so.2]
lfs:~$
I followed ahead as lfs user although.
lfs:/mnt/lfs$
But using root (su -c 'command') when permission denied to lfs, as to mknod,
mount, chroot ...
And so I came to chapter 6.5 with
I have no name!:/# echo 'main(){}' > dummy.c
I have no name!:/# cc dummy.c
I have no name!:/# readelf -l a.out | grep ': /tools'
[Requesting program interpreter: /tools/lib/ld-linux.so.2]
I have no name!:/#
After several pages, command su
root:/#
Still [Requesting program interpreter: /tools/lib/ld-linux.so.2]
I set locales only to en_US and pt_BR, both to 8859-1 and UTF-8.
Everything going until chapter 6.12.1 GCC-4.1.2
The book says to give several sed commands before to say to mkdir ../gcc-build.
But without umpacked gcc-4.1.2 the sed commands are impossible, give a error
some as "no such ... file".
I then made ../gcc-build, as lfs user on a konqueror session of host system, and
unpacked gcc-4...bz2 into. After this sed commands was ok, into gcc-build.
Perhaps even into gcc-4.1.2, I don't remember.
"make" command on /gcc-build seemed ok, but make -k check stops at:
root:/gcc-build# make -k check
make[1]: Entering directory `/gcc-build'
make[2]: Entering directory `/gcc-build/fixincludes'
autogen -T .././gcc-4.1.2/fixincludes/check.tpl .././gcc-4.1.2/fixincludes/inclh
ack.def
make[2]: autogen: Command not found
make[2]: *** [check] Error 127
make[2]: Leaving directory `/gcc-build/fixincludes'
make[1]: *** [check-fixincludes] Error 2
make[2]: Entering directory `/gcc-build/gcc'
Making a new config file...
echo "set tmpdir /gcc-build/gcc/testsuite" >> ./tmp0
test -d testsuite || mkdir testsuite
test -d testsuite/gcc || mkdir testsuite/gcc
(rootme=`${PWDCMD-pwd}`; export rootme; \
srcdir=`cd .././gcc-4.1.2/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
cd testsuite/gcc; \
rm -f tmp-site.exp; \
sed '/set tmpdir/ s|testsuite|testsuite/gcc|' \
< ../../site.exp > tmp-site.exp; \
/bin/sh ${srcdir}/../move-if-change tmp-site.exp site.exp; \
EXPECT=expect ; export EXPECT ; \
if [ -f ${rootme}/../expect/expect ] ; then \
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \
export TCL_LIBRARY ; fi ; \
runtest --tool gcc )
WARNING: Couldn't find the global config file.
Test Run By root on Sat Oct 6 22:35:09 2007
Native configuration is i686-pc-linux-gnu
=== gcc tests ===
Schedule of variations:
unix
Running target unix
Using /tools/share/dejagnu/baseboards/unix.exp as board description file for tar
get.
Using /tools/share/dejagnu/config/unix.exp as generic interface file for target.
Using /gcc-build/gcc-4.1.2/gcc/testsuite/config/default.exp as tool-and-target-s
pecific interface file.
Running /gcc-build/gcc-4.1.2/gcc/testsuite/gcc.c-torture/compile/compile.exp ...
How is this?
Is the book split?
And how I return to LFS enviromment after reboot here?
Dr. Elias Zoby
http://www.geocities.com/eczoby
___________________________________________________________________________________
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
tarifas muito baratas esperando por você. Aproveite!
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page