If you are one of those growing tired of my mail don't read it, just
delete it. Save us both some aggravation. If you really want to
help and not insult, then read on. Blame Trent for this opening
paragraph.
I have gone back through the book, 3 times, following it exactly
with no deviations of any kind. I have done everything the book
says to do. I have not missed any step that is in the book. I have
been very careful and deliberate in following the book to the
letter. I have read the info about compiling from source several
times. I have reviewed the bash man page dozens of times. I am not
asking anyone to hold my hand. I have used all the information that
has been made available to do this process and I am still getting
the error.
This is the only time and place I get an error. I don't get any
other errors or warnings of any kind.
I have arrived at the exact same place as before with an error when
running this:
gcc -dumpspecs | sed '[EMAIL PROTECTED]/lib/ld-linux.so.2@/tools&@g' \
> `dirname $(gcc -print-libgcc-file-name)`/specs
sed: can't
read /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/specs:
No such file or directory
running 'which gcc' prints /tools/bin/gcc
echo $PATH
PATH=/tools/bin:/bin:/usr/bin
the specs file is still here:
/mnt/lfs/sources/gcc-build/gcc/specs
The following are the steps I have done every time. Where is it that
I was supposed to do something and didn't? Yes I made sure I did
every one of these steps below.
cd to $LFS/sources
tar -xf the binutils file
cd binutils-2.17
mkdir -v ../binutils-build
cd ../binutils-build
CC="gcc -B/usr/bin/" ../binutils-2.17/configure \
--prefix=/tools --disable-nls --disable-werror
make
make install
make -C ld clean
make -C ld LIB_PATH=/tools/lib
cp -v ld/ld-new /tools/bin
cd ..
tar -xf the gcc file
cd gcc-4.1.2
mkdir ../gcc-build
cd ../gcc-build
CC="gcc -B/usr/bin/" ../gcc-4.1.2/configure --prefix=/tools \
--with-local-prefix=/tools --disable-nls --enable-shared \
--enable-languages=c
make bootstrap
make install
ln -vs gcc /tools/bin/cc
cd ..
tar -xf the linux-2.6.22.5 file
cd linux-2.6.22.5
make mrproper
make headers_check
make INSTALL_HDR_PATH=dest headers_install
cp -rv dest/include/* /tools/include
cd ..
tar -xf the glibc file
cd glibc-2.5.1
mkdir ../glibc-build
cd ../glibc-build
../glibc-2.5.1/configure --prefix=/tools \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --with-binutils=/tools/bin \
--without-gd --with-headers=/tools/include \
--without-selinux
make
make check
mkdir -v /tools/etc
touch /tools/etc/ld.so.conf
make install
mv -v /tools/bin/{ld,ld-old}
mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
mv -v /tools/bin/{ld-new,ld}
ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld
gcc -dumpspecs | sed '[EMAIL PROTECTED]/lib/ld-linux.so.2@/tools&@g' \
`dirname $(gcc -print-libgcc-file-name)`/specs
Where is this specs file supposed to be?
--
Stealth
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page