Greetings:
First I would like to state that I was able to successfully compile
Binutils.
In section 5.5.1 page 36; after the tar commands we are supposed to do
the following:
lfs@c-68-36-199-213:/mnt/lfs/sources/gcc-4.8.1$ for file in \
> $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
do cp -uv $file{,.orig} sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
> -e 's@/usr@/tools@g' $file.orig > $file echo ' #undef
STANDARD_STARTFILE_PREFIX_1 #undef STANDARD_STARTFILE_PREFIX_2 #define
STANDARD_STARTFILE_PREFIX_1 "/tools/lib/" #define
STANDARD_STARTFILE_PREFIX_2 ""' >> $file touch $file.orig done
I get the following error: bash: syntax error near unexpected token `>'
So I thought to put it in a script:
#!/bin/sh
for file in \
$(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
do
cp -uv $file{,.orig}
sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools@g' \
-e 's@/usr@/tools@g,$file.orig > $file
echo '
#undef STANDARD_STARTFILE_PREFIX_1
#undef STANDARD_STARTFILE_PREFIX_2
#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"
#define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
touch $file.orig
done
I get the following error repeated 28 times: sed: -e expression #2, char
16: unknown option to `s'
Any assistance would be greatly appreciated.
William
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page